

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#eef4fb;
}

header{
    background:#004a99;
    color:white;
    text-align:center;
    padding:40px;
}

header h1{
    font-size:42px;
}

header h2{
    font-weight:normal;
}

main{
    width:90%;
    max-width:1200px;
    margin:auto;
    padding:30px;
}

.chapitre{

    background:white;
    border-radius:15px;

    margin-bottom:25px;

    padding:20px;

    box-shadow:0px 0px 12px rgba(0,0,0,0.15);

}

.chapitre h2{

    color:#004a99;

}

.chapitre a{

    display:inline-block;

    margin:8px;

    padding:10px 20px;

    background:#1e88e5;

    color:white;

    text-decoration:none;

    border-radius:8px;

}

.chapitre a:hover{

    background:#1565c0;

}

footer{

    background:#003366;

    color:white;

    text-align:center;

    padding:20px;

}
.carrousel{
    width:100%;
    height:420px;
    overflow:hidden;
    background:#dbeafe;
}

.slider{
    display:flex;
    width:900%;
    height:100%;
    animation:carrousel9 90s infinite;
}

.slider img{
    width:11.1111%;
    height:100%;
    object-fit:cover;
}

@keyframes carrousel9{
    0%{transform:translateX(0);}
    10%{transform:translateX(0);}

    11%{transform:translateX(-11.1111%);}
    21%{transform:translateX(-11.1111%);}

    22%{transform:translateX(-22.2222%);}
    32%{transform:translateX(-22.2222%);}

    33%{transform:translateX(-33.3333%);}
    43%{transform:translateX(-33.3333%);}

    44%{transform:translateX(-44.4444%);}
    54%{transform:translateX(-44.4444%);}

    55%{transform:translateX(-55.5555%);}
    65%{transform:translateX(-55.5555%);}

    66%{transform:translateX(-66.6666%);}
    76%{transform:translateX(-66.6666%);}

    77%{transform:translateX(-77.7777%);}
    87%{transform:translateX(-77.7777%);}

    88%{transform:translateX(-88.8888%);}
    98%{transform:translateX(-88.8888%);}

    100%{transform:translateX(0);}

}

.titre-principal{
    text-align:center;
    padding:45px 20px 35px;
}

.petit-titre{
    font-size:28px;
    font-weight:700;
    letter-spacing:5px;
    color:#1e88e5;
    margin-bottom:10px;
    text-transform:uppercase;
}

.grand-titre{

    font-family: Arial, Helvetica, sans-serif;

    font-size:90px;

    font-weight:900;

    text-transform:uppercase;

    letter-spacing:5px;

    background:linear-gradient(
        to bottom,
        #ffffff 0%,
        #b9e8ff 15%,
        #38bdf8 35%,
        #0284c7 60%,
        #075985 100%
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

    text-shadow:
        0px 1px 0px #ffffff,
        0px 2px 0px #9fdcff,
        0px 3px 0px #7bc9ff,
        0px 4px 0px #4eaef2,
        0px 5px 6px rgba(0,0,0,0.35);

filter:drop-shadow(0 0 18px rgba(0,180,255,0.35));

}

.grand-titre{

    animation:apparitionTitre 1.5s ease;
}

@keyframes apparitionTitre{

    from{
        opacity:0;
        transform:translateY(-20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}



.mise-en-page{
    width:92%;
    max-width:1400px;
    margin:auto;
    display:grid;
    grid-template-columns:300px 1fr;
    gap:30px;
    padding:30px 0;
}

.presentation{
    background:white;
    border-radius:18px;
    padding:25px;
    box-shadow:0 0 15px rgba(0,0,0,0.15);
    line-height:1.6;
    position:sticky;
    top:20px;
    height:max-content;
}

.presentation h2{
    color:#003366;
    margin-top:0;
}

.chapitres{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
    gap:25px;
}

.carte{
    background:white;
    border-radius:18px;
    overflow:hidden;
    text-decoration:none;
    color:#003366;
    box-shadow:0 0 15px rgba(0,0,0,0.15);
    transition:transform 0.25s, box-shadow 0.25s;
}

.carte:hover{
    transform:translateY(-6px);
    box-shadow:0 8px 25px rgba(0,0,0,0.25);
}

.carte img{
    width:100%;
    height:150px;
    object-fit:cover;
    display:block;
}

.carte h2{
    font-size:20px;
    padding:15px;
    margin:0;
    text-align:center;
}

@media(max-width:850px){
    .mise-en-page{
        grid-template-columns:1fr;
    }

    .presentation{
        position:static;
    }

    .titre-principal h1{
        font-size:36px;
    }

    .titre-principal h2{
        font-size:28px;
    }
}



.header-chapitre{
    background:linear-gradient(135deg,#003366,#0077ff);
    color:white;
    text-align:center;
    padding:35px 20px 45px;
}

.header-chapitre h1{
    font-size:56px;
    margin:20px 0 10px;
    text-transform:uppercase;
}

.header-chapitre p{
    font-size:22px;
    margin:0;
}

.retour{
    display:inline-block;
    color:white;
    text-decoration:none;
    background:rgba(255,255,255,0.18);
    padding:10px 18px;
    border-radius:30px;
    font-weight:bold;
}

.retour:hover{
    background:rgba(255,255,255,0.30);
}

.page-chapitre{
    width:92%;
    max-width:1250px;
    margin:auto;
    padding:35px 0;
}

.infos-chapitre{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:15px;
    margin-bottom:35px;
}

.infos-chapitre div{
    background:white;
    padding:18px;
    border-radius:15px;
    text-align:center;
    font-weight:bold;
    color:#003366;
    box-shadow:0 0 12px rgba(0,0,0,0.12);
}

.liste-fiches{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
}

.bloc-fiche{
    background:white;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 0 15px rgba(0,0,0,0.15);
    transition:transform 0.25s, box-shadow 0.25s;
}

.bloc-fiche:hover{
    transform:translateY(-6px);
    box-shadow:0 8px 25px rgba(0,0,0,0.25);
}

.bloc-fiche img{
    width:100%;
    height:160px;
    object-fit:cover;
    display:block;
}

.bloc-fiche h2{
    color:#003366;
    font-size:26px;
    margin:18px 18px 5px;
}

.bloc-fiche p{
    margin:0 18px 18px;
    color:#333;
}

.boutons-fiche{
    display:flex;
    gap:10px;
    padding:0 18px 20px;
}

.boutons-fiche a{
    flex:1;
    text-align:center;
    padding:12px 8px;
    border-radius:10px;
    color:white;
    text-decoration:none;
    font-weight:bold;
}

.btn-exo{
    background:#1e88e5;
}

.btn-exo:hover{
    background:#1565c0;
}

.btn-corrige{
    background:#28a745;
}

.btn-corrige:hover{
    background:#1e7e34;
}

.menu-principal{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(0,51,102,0.95);
    backdrop-filter:blur(8px);
    color:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 40px;
    box-shadow:0 4px 15px rgba(0,0,0,0.25);
}

.logo-site{
    font-size:22px;
    font-weight:900;
    letter-spacing:1px;
}

.liens-menu{
    display:flex;
    gap:22px;
}

.liens-menu a{
    color:white;
    text-decoration:none;
    font-weight:bold;
    padding:8px 12px;
    border-radius:8px;
    transition:background 0.25s;
}

.liens-menu a:hover{
    background:rgba(255,255,255,0.2);
}

@media(max-width:700px){
    .menu-principal{
        flex-direction:column;
        gap:10px;
        padding:12px 20px;
    }

    .liens-menu{
        flex-wrap:wrap;
        justify-content:center;
    }
}

.contact-mail{

    display:inline-block;
    margin-top:12px;
    padding:12px 18px;

    background:linear-gradient(135deg,#0077ff,#00b7ff);

    color:white;

    text-decoration:none;

    border-radius:12px;

    font-weight:bold;

    transition:0.3s;

    box-shadow:0 5px 15px rgba(0,119,255,0.30);

}

.contact-mail:hover{

    transform:translateY(-3px);

    box-shadow:0 8px 22px rgba(0,119,255,0.50);

}

.jujunior{

    text-align:center;

    margin-top:60px;

    margin-bottom:15px;

}

.jujunior img{

    width:180px;

    transition:0.35s;

}

.jujunior img:hover{

    transform:scale(1.08) rotate(-4deg);

}

.niveau-defi{
    margin:0 18px 18px;
    padding:10px;
    background:#fff8d6;
    color:#7a5600;
    border-radius:10px;
    font-weight:bold;
    text-align:center;
}


@media(max-width:700px){

    body{
        overflow-x:hidden;
    }

    header{
        padding:0;
    }

    .carrousel{
        height:220px;
    }

    .titre-principal{
        padding:28px 12px 20px;
    }

    .petit-titre{
    font-size:14px;
    letter-spacing:1px;

    }

      .grand-titre{
        font-size:32px;
    }

    

    .mise-en-page{
        width:94%;
        display:block;
        padding:20px 0;
    }

    .presentation{
        position:static;
        margin-bottom:25px;
        padding:20px;
    }

    .chapitres{
        grid-template-columns:1fr;
        gap:18px;
    }

    .carte img{
        height:130px;
    }

    .header-chapitre{
        padding:25px 15px 35px;
    }

    .header-chapitre h1{
        font-size:34px;
        line-height:1.1;
    }

    .header-chapitre p{
        font-size:17px;
    }

    .page-chapitre{
        width:94%;
        padding:25px 0;
    }

    .infos-chapitre{
        grid-template-columns:1fr;
    }

    .liste-fiches{
        grid-template-columns:1fr;
    }

    .boutons-fiche{
        flex-direction:column;
    }

    footer{
        font-size:14px;
        padding:18px 10px;
    }
}


.animation-accueil {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
}

.animation-accueil h2 {
  text-align: center;
}

.animation-accueil p {
  text-align: center;
  margin-bottom: 20px;
}

.animation-accueil iframe {
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}




/* ===== Terminale spécialité : ajouts V1 ===== */
.carte-fantome{
    display:none !important; /* retirer cette ligne pour afficher les rubriques futures */
}

.ressource-meta{
    font-size:0.92rem;
    opacity:0.78;
    margin-top:-4px;
}

.btn-cours{
    background:#5b4fc7;
    color:white;
}

.btn-audio{
    background:#e58b20;
    color:white;
}

.btn-formulaire{
    background:#14866d;
    color:white;
}

.boutons-fiche a{
    text-decoration:none;
}

/*
===========================================================
AJOUTER UNE RESSOURCE
Copier/coller un bloc <article class="bloc-fiche">...</article>
dans la section voulue du fichier de chapitre, puis modifier :
- le titre
- l'image
- les liens PDF / MP3
===========================================================
*/


/* ===== V2 : interface simplifiée + zones préparées ===== */
.soutien-futur{ display:none !important; }
.boutons-soutien{ display:flex; gap:10px; flex-wrap:wrap; }
.btn-soutien{ display:inline-block; padding:10px 14px; border-radius:10px; background:#1e88e5; color:#fff; text-decoration:none; font-weight:700; }

.decouvertes-accueil{
    width:92%; max-width:1400px; margin:25px auto 45px; padding:28px; box-sizing:border-box;
    background:white; border-radius:20px; box-shadow:0 8px 24px rgba(0,0,0,.10);
}
.decouvertes-accueil > h2{ text-align:center; color:#004a99; font-size:32px; margin:0 0 8px; }
.intro-decouvertes{ text-align:center; margin:0 0 24px; color:#4b5563; }
.grille-decouvertes{ display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
.decouverte-carte{ background:#f5f9ff; border:1px solid #dbeafe; border-radius:16px; padding:18px; text-align:center; display:flex; flex-direction:column; }
.decouverte-icone{ font-size:38px; margin-bottom:6px; }
.decouverte-carte h3{ color:#004a99; margin:5px 0 8px; font-size:19px; }
.decouverte-carte p{ color:#4b5563; line-height:1.45; flex:1; }
.btn-decouverte{ display:inline-block; margin-top:8px; padding:10px 12px; border-radius:10px; background:#1e88e5; color:white; text-decoration:none; font-weight:700; }
.btn-decouverte:hover{ background:#1565c0; }
@media(max-width:1050px){ .grille-decouvertes{grid-template-columns:repeat(2,1fr);} }
@media(max-width:620px){ .grille-decouvertes{grid-template-columns:1fr;} .decouvertes-accueil{width:94%;padding:18px;} }
