/* ------------------------------
   RESET SIMPLE
------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f2f2f2; /* gris clair élégant */
    color: #333;
    line-height: 1.6;
    text-align: justify;
}

/* ------------------------------
   HEADER + MENU DESKTOP
------------------------------ */
.site-header {
    background: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #444;
}

.main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: 0.2s;
}

/* Liens jaunes + zoom */
.main-nav a:hover {
    color: #f1c40f;
    transform: scale(1.1);
}

/* ------------------------------
   MENU BURGER (MOBILE)
------------------------------ */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 5px;
}

/* Menu mobile caché */
.mobile-nav {
    display: none;
    background: white;
    padding: 20px;
    border-bottom: 2px solid #ddd;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* ------------------------------
   SECTIONS (cartes blanches)
------------------------------ */
.card-section {
    background: white;
    margin: 30px auto;
    padding: 25px;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

/* Titres */
h1, h2 {
    margin-bottom: 15px;
    color: #222;
}

/* ------------------------------
   BOUTON FLOTTANT (retour menu)
------------------------------ */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #f1c40f;
    color: #333;
    border: none;
    padding: 12px 15px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    display: none;
    transition: 0.3s;
}

.back-to-top:hover {
    transform: scale(1.15);
}

/* ------------------------------
   POPUP RGPD
------------------------------ */
.rgpd-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}

.rgpd-content {
    background: white;
    padding: 25px;
    max-width: 500px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

#rgpd-accept {
    margin-top: 15px;
    padding: 10px 20px;
    background: #f1c40f;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
}

/* ------------------------------
   MODE DYS (sera activé via JS)
------------------------------ */
.dys-mode {
    font-family: "OpenDyslexic", Arial, sans-serif;
    background: #faf4d3 !important;
    color: #222;
    line-height: 1.9;
    font-size: 1.1rem;
}

.dys-button {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .mobile-nav {
        display: none;
    }

    .mobile-nav.open {
        display: block;
    }
}
/* Bouton flottant DYS */
.dys-floating {
    position: fixed;
    bottom: 90px; /* au-dessus du bouton retour */
    right: 25px;
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
    transition: 0.3s;
    z-index: 999;
}

.dys-floating:hover {
    transform: scale(1.12);
    background: #2980b9;
}
/* Conteneur vidéo responsive */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
    margin-top: 20px;
}

/* Iframe qui remplit le conteneur */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.rgpd-popup {
    z-index: 9999 !important;
}
.video-container iframe {
    position: absolute;
    z-index: 1;
}
/* Conteneur des cartes */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Style des cartes */
.card-behavior {
    padding: 25px;
    border-radius: 18px;
    color: white;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.card-behavior:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* Couleurs */
.red { background: #e74c3c; }
.blue { background: #3498db; }
.green { background: #2ecc71; }
.yellow { background: #f1c40f; color: #333; }

/* Icônes */
.card-behavior .icon {
    font-size: 2.2rem;
}

/* Contenu caché */
.card-content {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-top: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    animation: fadeIn 0.4s ease;
}

/* Animation d’apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Overlay du popup */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
    z-index: 99999;
}

/* Quand le popup est actif */
.popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Contenu du popup */
.popup-content {
    background: white;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
    animation: popupFade 0.3s ease;
}

/* Animation d’apparition */
@keyframes popupFade {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Bouton fermer */
#popup-close {
    margin-top: 20px;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

#popup-close:hover {
    background: #217dbb;
}
.card-behavior {
    padding: 25px;
    border-radius: 18px;
    color: white;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
    position: relative;
}

.card-behavior.open {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Zone réponse */
.card-answer {
    margin-top: 15px;
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    display: none;
    animation: fadeIn 0.3s ease;
    font-size: 1rem;
    text-align: left;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Carte flip */
.flip-card {
    perspective: 1000px;
    cursor: pointer;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 200px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-inner {
    transform: rotateY(180deg);
}

/* Faces */
.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 18px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Face avant */
.flip-front {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Face arrière */
.flip-back {
    background: white;
    color: #333;
    transform: rotateY(180deg);
    text-align: left;
    padding: 20px;
}

/* Couleurs */
.red { background: #e74c3c; }
.blue { background: #3498db; }
.green { background: #2ecc71; }
.yellow { background: #f1c40f; color: #333; }
.strategies-section {
    margin-top: 40px;
}

.strategies-section h2 {
    text-align: center;
    margin-bottom: 25px;
}

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.strategy-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.strategy-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.strategy-card ul {
    padding-left: 20px;
}

.strategy-card li {
    margin-bottom: 8px;
}
.neuro-section {
    margin-top: 50px;
}

.neuro-section h2 {
    text-align: center;
    margin-bottom: 15px;
}

.neuro-section .intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}

.neuro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.neuro-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.neuro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.neuro-card h3 {
    margin-bottom: 10px;
}

.schema {
    background: #f7f7f7;
    padding: 10px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 10px;
    white-space: pre-wrap;
}
.video-externe {
    text-align: center;
    margin: 30px auto;
}

.video-thumbnail {
    width: 100%;
    max-width: 600px;
    border: 8px solid white;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.15), 
                0 4px 20px rgba(0,0,0,0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.video-thumbnail:hover {
    transform: scale(1.02);
}

.video-caption {
    font-size: 1rem;
    margin-top: 10px;
    color: #444;
}
.site-footer {
    text-align: center;
    padding: 20px 10px;
    margin-top: 40px;
    background: #ffffff;
    border-top: 6px solid white;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.1),
                0 -4px 12px rgba(0,0,0,0.1);
}

.site-footer p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}
.attention-box {
    background: #fff8e5;
    border-left: 6px solid #f4b400;
    padding: 20px;
    margin-top: 25px;
    border-radius: 10px;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.1),
                0 4px 12px rgba(0,0,0,0.1);
}

.attention-box h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #b87400;
}

.attention-box p {
    margin: 10px 0;
    text-align: justify;
    color: #444;
}
