/* ===== HERO GUIDE ===== */
.hero-guide {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 30px;
}

/* ===== SECTIONS ===== */
.section-container {
    padding: 80px 20px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.section-container h2 {
    font-size: 2.4rem;
    font-weight: 800;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.section-container p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ===== HIGHLIGHT ===== */
.highlight-guide {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    margin: 0 auto 80px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.highlight-guide h2 {
    margin-bottom: 15px;
    font-size: 2rem;
    color: #fff;
}

.highlight-guide p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 25px;
}


/* 📱 Mobile layout */
@media (max-width: 768px) {

  /* Conteneur de section */
  .section-container {
    padding: 16px 14px;
    border-radius: 14px;
  }

  /* === Carte "Guide parfait" === */
  .highlight-guide {
    padding: 18px 16px;
  }

  .highlight-guide h2 {
    font-size: clamp(1.1rem, 4.5vw, 1.25rem);
    text-align: center;
    margin-bottom: 10px;
  }

  .highlight-guide > p {
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 14px;
    opacity: .95;
  }

  .guide-points {
    display: grid;
    grid-template-columns: 1fr;   /* 1 colonne sur mobile */
    gap: 10px;
    margin-bottom: 16px;
  }

  .guide-points .point {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: clamp(.95rem, 3.8vw, 1rem);
    line-height: 1.35;
    padding: 10px 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
  }

  /* CTA */
  .cta-btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 999px;
  }

  .disabled-btn {
    opacity: .9;
    pointer-events: none;
  }

  /* === Si tu utilises le bloc Pack ressources ailleurs === */
  #pack-ressources .pack-card {
    display: grid;
    grid-template-columns: 1fr;   /* 1 colonne */
    gap: 16px;
    text-align: left;             /* ou center si tu préfères */
  }

  #pack-ressources .pack-title {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  #pack-ressources .pack-list li {
    font-size: .95rem;
    line-height: 1.35;
  }

  #pack-ressources .pack-right .cta-btn {
    width: 100%;
  }
}

/* Petits écrans très étroits */
@media (max-width: 360px) {
  .guide-points .point { font-size: .9rem; padding: 9px 10px; }
  .cta-btn { font-size: .95rem; padding: 11px 12px; }
}



.guide-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 30px;
}

.guide-points .point {
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-points .point::before {
    content: "✔";
    color: #4dff89;
    font-weight: 700;
}

/* ===== CTA ===== */
.cta-btn {
    display: inline-block;
    background: linear-gradient(90deg, gold, #ffdd57);
    color: #24243e;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}
.cta-btn:hover {
    transform: scale(1.08);
    background: linear-gradient(90deg, #ffdd57, gold);
}

/* ===== GRID CARDS ===== */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.card {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.card p {
    color: #ddd;
    margin-bottom: 20px;
}

/* Badge sur carte */
.badge-circle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #1e1b2e;
    font-weight: bold;
    font-size: 12px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    transition: transform 0.3s ease;
}
.card:hover .badge-circle {
    transform: scale(1.15);
}

/* ===== LINKS ===== */
.links {
    margin-top: 30px;
    font-size: 1.1rem;
}
.links a {
    color: #ffd700;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
}
.links a:hover {
    color: #fff06c;
}

/* ===== PDF VIEWER ===== */
.pdf-container {
    position: relative;
    height: 500px;
    overflow-y: scroll;
    border: 2px solid #ffd700;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 15px;
}
.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.pdf-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.pdf-overlay.hidden { display: none; }
.pdf-overlay .overlay-content {
    text-align: center;
    color: #fff;
}
.pdf-overlay .overlay-content p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}
.modal-content {
    background: #fff;
    color: #333;
    padding: 25px;
    border-radius: 14px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    position: relative;
    transform: rotateY(90deg);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}
.modal.show .modal-content {
    transform: rotateY(0deg);
    opacity: 1;
}
.modal.hide .modal-content {
    transform: rotateY(90deg);
    opacity: 0;
}
.modal-content h3 {
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 14px;
}
.close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 22px;
    color: #666;
    cursor: pointer;
}
.close:hover { color: #000; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-guide { min-height: 70vh; padding: 40px 20px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .section-container { padding: 60px 15px; }
    .grid-cards { gap: 25px; }
    .pdf-container { height: 300px; }
    .section-container h2 { font-size: 2rem; }
    .cta-btn { font-size: .9rem; padding: 12px 24px; }
}
@media (max-width: 480px) {
    .pdf-container { height: 250px; }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-content p { font-size: .9rem; }
}
.details-btn  {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #ff7a18, #af002d);
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.details-btn :hover {
    background: linear-gradient(135deg, #af002d, #ff7a18);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
/* === MODAL style page d'accueil === */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 12, 22, 0.55);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 1000;
    padding: 24px;
}
.modal.show {
    opacity: 1;
    visibility: visible;
}

/* Bulles animées en fond */
.modal::before,
.modal::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: 0;
    animation: floatBubbles 12s infinite ease-in-out;
}
.modal::before {
    width: 400px;
    height: 400px;
    background: #ff003c;
    top: -120px;
    left: -150px;
}
.modal::after {
    width: 500px;
    height: 500px;
    background: #00bfff;
    bottom: -150px;
    right: -180px;
}

@keyframes floatBubbles {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-40px) translateX(20px); }
}

/* Contenu du modal */
.modal .modal-content {
    position: relative;
    width: min(560px, 92vw);
    background: rgba(15, 18, 34, 0.88);
    color: #fff;
    border-radius: 20px;
    padding: 24px 26px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(10px) scale(0.96);
    transition: transform .25s ease, opacity .25s ease;
    opacity: 0.98;
    z-index: 1;
    backdrop-filter: blur(12px);
}
.modal.show .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Header */
#prof-name {
    margin: 0 28px 12px;
    text-align: center;
    font-weight: 800;
    font-size: 20px;
    color: #fff;
}

/* Bouton fermer */
.modal .close {
    position: absolute;
    right: 18px;
    top: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background .18s ease, transform .12s ease;
    z-index: 2;
}
.modal .close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.03);
}

/* Corps */
#prof-details {
    padding: 6px 6px 0;
    line-height: 1.6;
}
#prof-details ul {
    margin: 6px 0 14px 18px;
}
#prof-details li {
    margin: 2px 0;
}

/* Sections titres colorées */
.section-title {
    font-weight: 800;
    margin: 14px 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title span {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
}
.section-title.green span { background: #22c55e; }
.section-title.red span { background: #ef4444; }
.section-title.yellow span { background: #f59e0b; }

/* Encadré conseil */
.advice {
    background: linear-gradient(180deg, rgba(255,184,0,.15), rgba(255,184,0,.06));
    border: 1px solid rgba(245,158,11,.25);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 10px 0 6px;
}

/* Empêcher scroll derrière la modale */
body.no-scroll {
    overflow: hidden;
}
/* ---- Pack card ---- */
#pack-ressources .pack-card{
  display:grid; grid-template-columns:1.4fr 1fr; gap:16px;
  background:rgba(16,21,37,.82); border:1px solid rgba(255,255,255,.08);
  border-radius:16px; padding:18px; box-shadow:0 20px 60px rgba(0,0,0,.35);
}
#pack-ressources .pack-title{font-size:1.25rem; font-weight:800; margin-bottom:8px}
#pack-ressources .pack-list{margin:0; padding-left:18px}
#pack-ressources .pack-list li{margin:6px 0}

#pack-ressources .pack-right{
  display:flex; flex-direction:column; gap:10px; align-items:flex-start; justify-content:center;
}

/* bouton contour */
.cta-btn.outline{
  background:transparent; color:#ffd54d; border:1px solid #ffd54d;
}
.cta-btn.outline:hover{ filter:brightness(1.1) }

/* ---- Modale générique (utilisée pour “prof” aussi) ---- */
.modal{ position:fixed; inset:0; z-index:1000; display:none; }
.modal.is-open{ display:block; }
.modal-backdrop{
  position:absolute; inset:0; background:rgba(0,0,0,.55); backdrop-filter:blur(2px);
}
.modal-box{
  position:relative; max-width:min(720px, 92vw); max-height:90vh; overflow:auto;
  margin:6vh auto 0; padding:18px; border-radius:16px;
  background:#12172a; border:1px solid rgba(255,255,255,.08); color:#eaeaea;
  box-shadow:0 30px 80px rgba(0,0,0,.55);
}
.modal-close{
  position:absolute; top:10px; right:10px;
  background:#0f1324; border:1px solid rgba(255,255,255,.12);
  color:#fff; border-radius:10px; padding:6px 10px; cursor:pointer;
}
.modal-content{ margin-top:10px }
.modal-actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:14px }

/* Empêche le scroll du fond quand une modale est ouverte */
body.lock-scroll{
  position:fixed; width:100%;
  overflow:hidden; /* Android/Chrome */
}

/* petit helper pour listes en colonnes (sommaire) */
.columns-2{
  columns:2; column-gap:18px; padding-left:18px; margin:0;
}
.columns-2 li{break-inside:avoid;}
@media (max-width:700px){ .columns-2{ columns:1 } }

/* Accessibilité focus */
.modal [data-close-modal]:focus,
[data-open-modal]:focus,
.modal-close:focus,
.cta-btn:focus { outline:2px solid #3ba0ff; outline-offset:2px; }
/* enlève les puces + l'indentation */
.no-bullets,
.no-bullets ul {
  list-style: none;      /* plus de • */
  margin: 0;             /* retire la marge par défaut */
  padding-left: 0;       /* retire l'indentation */
}

/* ceinture et bretelles pour certains navigateurs */
.no-bullets li::marker { 
  content: ""; 
}
