/* =======================================================
   RESET
======================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial,Helvetica,sans-serif;
}

/* =======================================================
   HEADER
======================================================= */

header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    padding:15px 40px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:rgba(0,0,0,.30);

    backdrop-filter:blur(8px);

    z-index:1000;

}

.logo img{

    height:70px;

}



nav a{

    color:white;

    text-decoration:none;

    font-size:18px;

    font-weight:bold;

}

nav a:hover{

    color:#ffb300;

}

/* =======================================================
   HERO
======================================================= */

#hero{

    height:100vh;

    background-image:url("img/fond.png");

    background-repeat:no-repeat;

    background-size:cover;

    background-position:center top;

    display:flex;
    justify-content:center;
    align-items:center;

    position:relative;

}
#hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.45);

}

.overlay{

    position:relative;

    z-index:10;

    text-align:center;

    color:white;

    width:90%;
padding-top:140px;
}

h1{

    font-size:40px;

    margin-bottom:15px;

}

h2{

    font-size:30px;

    font-weight:300;

}
.date{
    margin-top:30px;
    margin-bottom:4px;
    font-size:24px;
}

.edition{
    margin-top:0;
    margin-bottom:40px;   /* espace avant les boutons */
    font-size:18px;
    color:white;
    font-weight:300;
    opacity:.9;
}

/* =======================================================
   BOUTONS
======================================================= */

.buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}
.btn{

    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    padding:10px 18px;

    min-height:48px;

    font-size:15px;

    font-weight:600;

    color:white;
    text-decoration:none;

    border-radius:25px;

}
.btn{

    color:white;

    text-decoration:none;

}
.btn:hover{

    transform:translateY(-4px);

}

.blue{

    background:#0094ff;

}

.green{

    background:#2ecc71;

}

.orange{

    background:#ff6b00;

}

/* =======================================================
   MOBILE
======================================================= */

@media(max-width:900px){

header{

    padding:15px;

    flex-direction:column;

}

.logo img{

    height:55px;

}

nav{

    margin-top:15px;

    gap:15px;

    flex-wrap:wrap;

    justify-content:center;

}

h1{

    font-size:30px;

}

h2{

    font-size:22px;

}

.date{

    font-size:18px;

}

.buttons{

    flex-direction:column;

    align-items:center;

}

.btn{

    width:280px;

}

}
.edition{
    margin-top:2px;
    font-size:18px;
    color:white;
    font-weight:300;
    letter-spacing:1px;
    opacity:0.9;
}

/* =======================================================
   LES PARCOURS
======================================================= */

#parcours{

    padding:80px 20px;

    background:#f5f5f5;

}

#parcours h2{

    text-align:center;

    font-size:40px;

    margin-bottom:40px;

}

.parcoursGrid{

    max-width:1100px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

}

.parcoursCard{

    background:white;

    border-radius:18px;

    padding:30px;

    text-align:center;

    box-shadow:0 8px 20px rgba(0,0,0,.12);

}

.blue{

    border-top:8px solid #0094ff;

}

.green{

    border-top:8px solid #2ecc71;

}

.orange{

    border-top:8px solid #ff6b00;

}

.parcoursCard h3{

    font-size:24px;

    margin-bottom:20px;

}

.parcoursCard p{

    font-size:18px;

    margin-bottom:30px;

}

.traceBtn{

    display:inline-block;

    padding:14px 28px;

    border-radius:30px;

    color:white;

    text-decoration:none;

    font-weight:bold;
margin-top:200px;
}

.blueBtn{

    background:#0094ff;

}

.greenBtn{

    background:#2ecc71;

}

.orangeBtn{

    background:#ff6b00;

}

/* =======================================================
   PAGE PARCOURS
======================================================= */

.page{

    max-width:1200px;

    margin:20px auto 80px;

    padding:20px;

    background:transparent;

}
.page h1{

    text-align:center;

    font-size:48px;

    margin-bottom:50px;

}

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;
margin-top:0px;
}

.card{

   
  background:rgba(255,255,255,0.25);
    border-radius:18px;

     padding:15px 30px 30px 30px;

    text-align:center;

    box-shadow:0 8px 20px rgba(0,0,0,.12);

}

.card h2{

    margin-bottom:10px;

}

.card p{

    font-size:20px;

    margin:10px 0;

}

.blue{

    border-top:8px solid #0094ff;

}

.green{

    border-top:8px solid #2ecc71;

}

.orange{

    border-top:8px solid #ff6b00;

}

.blueBtn{

    background:#0094ff;

}

.greenBtn{

    background:#2ecc71;

}

.orangeBtn{

    background:#ff6b00;

}

.active{

    color:#ffb300 !important;

}

@media(max-width:768px){

    .page{

        margin-top:170px;

    }

}
/* =======================================================
   HERO PARCOURS
======================================================= */


.pageHero h1{

    font-size:56px;

    text-shadow:0 3px 10px rgba(0,0,0,.6);

}


body{

    background:
        linear-gradient(rgba(0,0,0,.20),rgba(0,0,0,.20)),
        url("img/fond.png") center 45% / cover no-repeat fixed;

}
.card p{

    font-size:18px;

}

.btn{
    position:relative;
    top:15px;
}

@media (max-width:768px){

    .pageHero{
        height:150px !important;
    }

    .page{
        margin:-60px auto 10px !important;
        padding:10px !important;
    }

    .cards{
        margin-top:0 !important;
    }

}
@media (max-width:768px){

    header{

        padding:15px;
        flex-direction:column;
        justify-content:center;
        align-items:center;
        height:auto;

    }

    .logo img{

        height:55px;

    }

}
    header nav:not(#menu){

        display:flex;
        justify-content:center;
        align-items:center;
        gap:8px;
        flex-wrap:nowrap;
        margin-top:8px;

    }
}
@media (max-width:768px){

    /* Masquer le titre */
    .pageHero h1{
        display:none;
    }

    /* Réduire le bandeau */
    .pageHero{
        height:90px !important;
    }

    /* Remonter les cartes */
    .page{
        margin:-20px auto 0 !important;
    }
}


@media (max-width:768px){

    .page{
        margin-bottom:0 !important;
        padding-bottom:0 !important;
    }

    body{
        margin:0;
        padding:0;
    }
}

@media (max-width:768px){

    .cards{

        gap:25px !important;

    }

}
@media (max-width:768px){

    .cards{
        margin-top:25px !important;
    }
}

.profilBtn{

    background:#666;
}

@media (max-width:768px){

    html,
    body{
        margin:0;
        padding:0;
        overflow-x:hidden;
    }

    .page{
        margin-bottom:0 !important;
        padding-bottom:0 !important;
    }

    .cards{
         margin-top:115px !important;
        padding-bottom:0 !important;
    }

}

@media (max-width:768px){

    body{
        overflow-y:auto;
    }

}
#menuBtn{
    display:none;
}

@media (max-width:768px){

    #menuBtn{

        display:block;

        font-size:32px;

        color:white;

        background:none;

        border:none;

        cursor:pointer;
    }
    #menu{

        display:none;

        position:absolute;

        top:70px;

        left:0;

        width:100%;

        background:rgba(0,0,0,.90);

        flex-direction:column;

        text-align:center;

        padding:20px 0;

    }

    
#menu.show{
        display:flex;

    }

}
.page h1{
    display:none;
}

#closeMenu{

    background:none;

    border:none;

    color:white;

    font-size:42px;

    font-weight:300;

    cursor:pointer;

    align-self:flex-end;

    margin-bottom:10px;

    padding:0;

    line-height:1;

}

.bandeau{

    width:100%;
    overflow:hidden;
    background:rgba(0,0,0,.30);
    padding:10px 0;
    margin-top:15px;

}

.texteDefilant{

    display:inline-block;

    white-space:nowrap;

    color:white;

    font-size:18px;

    font-weight:bold;

    padding-left:100%;

    animation:defile 18s linear infinite;

}

@keyframes defile{

    0%{
        transform:translateX(0);
    }

    100%{
        transform:translateX(-100%);
    }

}
.infoBtnBlue{
    background:#0094ff;
    color:white;
}

.infoBtnGreen{
    background:#2ecc71;
    color:white;
}

.infoBtnOrange{
    background:#ff6b00;
    color:white;
}

.afficheAccueil{

   text-align:right;   /* au lieu de center */

    margin-top:80px;    /* descend l'affiche */

    padding-right:520px; /* décale vers la droite */


}


@media (max-width:768px){

    .afficheAccueil{

        justify-content:center;
        padding-right:0;
        margin-top:20px;

    }

}
.afficheAccueil{

    text-align:right;
    margin-top:80px;
    padding-right:520px;

}

.afficheAccueil img{

    width:100px;
    height:auto;

    border-radius:15px;

    box-shadow:0 10px 30px rgba(0,0,0,.45);

    cursor:pointer;

    transition:transform .25s ease;

}

@media (max-width:768px){

    .afficheAccueil{

        text-align:center;
        padding-right:0;
        margin-top:100px;

    }

    .afficheAccueil img{

        width:80px;

    }

}

#popupAffiche{

    display:none;

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.85);

    justify-content:center;
    align-items:center;

    z-index:99999;

    cursor:pointer;

}

#popupAffiche img{

    max-width:70%;

    max-height:90%;

    border-radius:20px;

    box-shadow:0 15px 40px rgba(0,0,0,.6);

}
#popupInfos{

    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.75);

    justify-content:center;

    align-items:center;

    z-index:99999;

}

#popupContenu{

    width:90%;

    max-width:700px;

    background:white;

    border-radius:15px;

    padding:30px;

    color:#333;

}

#fermerInfos{

    float:right;

    font-size:28px;

    cursor:pointer;

}
#popupInfos{

    display:none;

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.75);

    z-index:99999;

    justify-content:center;

    align-items:center;

}

#popupContenu{

    background:white;

    color:#333;

    width:90%;

    max-width:700px;

    padding:30px;

    border-radius:15px;

    position:relative;

}

#fermerInfos{

    position:absolute;

    top:10px;

    right:15px;

    font-size:30px;

    cursor:pointer;

}

.red{
    background:#c0392b;
}

.red:hover{
    background:#e74c3c;
}

.photoOrganisation{

    display:block;
    width:100%;
    max-width:900px;
    margin:30px auto;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,.35);

}

.page{

    width:90%;
    max-width:820px;

    margin:95px auto 20px auto;

    padding:18px 24px;
background:rgba(255,255,255,0.60);

    border-radius:18px;

    box-shadow:0 8px 20px rgba(0,0,0,.30);

    font-size:14px;

}

.page h1{

    margin:0 0 12px 0;

    font-size:26px;

    text-align:center;

    color:#1b5e20;

}

.page h2{

    margin:16px 0 6px 0;

    font-size:20px;

    color:#1b5e20;

}

.page p{

    margin:5px 0;

    font-size:14px;

    line-height:1.4;

}

.page ul{

    margin:5px 0 10px 20px;

    padding-left:10px;

}

.page li{

    margin:3px 0;

    font-size:14px;

    line-height:1.4;

}
.purple{
    background:#8e44ad;
}

.qrImage{

    display:block;
    margin:25px auto;

    width:100%;
    max-width:350px;

    border-radius:15px;

    box-shadow:0 8px 25px rgba(0,0,0,.35);

}

.retour{

    text-align:right;
    margin-bottom:15px;

}

/* ---------- Taille du texte QR Code ---------- */

.page h1{

    font-size:28px;

}

.page p{

    font-size:18px;
    line-height:1.6;

}

@media (max-width:768px){

    .page h1{

        font-size:28px;

    }

    .page p{

        font-size:18px;

    }

}
@media (max-width:768px){

    .afficheAccueil{

        text-align:center;
        padding-right:0;
        margin-top:50px;

    }

    .afficheAccueil img{

        width:80px;

    }

}

@media (max-width:768px){

    .overlay{

        padding-top:110px !important;

    }

}

.actions{

    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:20px;

}

.actions .btn{

    position:static;
    width:100%;
    min-height:44px;

}
.cards .card:nth-child(2) .btn{

    margin-bottom:8px;

}

.cards .card:nth-child(2) .btn:last-child{

    margin-bottom:0;

}

.downloadBtn{

    background:#964a92;
    color:white;

}

.downloadBtn:hover{

    background:#3588a8;

}
@media (max-width:768px){

    .page{

        margin-top:80px !important;

    }

}
.retourProgramme{
    text-align:right;
    margin-bottom:-20px;
}

@media (max-width:768px){

    .retourProgramme{

        text-align:center;
        margin-top:10px;
        margin-bottom:20px;

    }

}

@media (max-width:768px){

    button[onclick*="test.html"]{

        font-size:12px !important;
        padding:6px 12px !important;
        border-radius:18px !important;
 margin-top:8px;
    }

}
/* Tous les boutons ronds avec croix */
#closeBtn,
.croixFermer,
.croixProgramme,
.parcoursClose{
    width:45px !important;
    height:45px !important;
    padding:0 !important;
    border-radius:50% !important;
    font-size:22px !important;
    line-height:45px !important;
    text-align:center !important;
}