@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

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

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

/* ========================= LAYOUT ========================= */

.contenu {
    width: 100%;
    max-width: 1200px;
    padding: 50px 30px;
    margin: 0 auto;
}

/* ========================= TYPOGRAPHIE ========================= */

body {
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.6;
    color: #111;
    background-color: #FAFAFA;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Titres */

h2 {
    font-size: 32px;
    margin-bottom: 16px;
    text-shadow: 0 3px 4px rgba(0,0,0,0.15);
}

h3 {
    font-size: 24px;
    margin-bottom: 12px;
    text-shadow: 0 3px 4px rgba(0,0,0,0.25);
}

/* Texte */
p {
    font-size: 16px;
    margin-bottom: 12px;
}

a {
    text-decoration: none;
    color: white;
}

ul {
    list-style: none;
}

/* ========================= UTILITAIRES ========================= */

.entete {
    color: #C69214;
    text-shadow: 0 3px 4px rgba(0,0,0,0.10);
}

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

.btn {
    display: inline-block;
    background-color: #5F84A6;
    color: white;
    max-width: 200px;
    text-align: center;
    font-weight: 600;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-shadow: 0 3px 4px rgba(0,0,0,0.30);
    box-shadow: 0 3px 4px rgba(0,0,0,0.30);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: #D9D9D9;
}

/* ========================= CARTE ========================= */

.liste-carte {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.carte {
    display: flex;
    align-items: center;
    gap: 50px;
    width: 100%;
}

.carte_texte {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.carte_media {
    flex: 1;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.carte_media img {
    width: 100%;
    max-width: 600px;
    height: 450px;
    object-fit: cover;
    object-position: center center;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.20);
}

/* Cadrage des photos instruments (page Activités) */
.liste-carte .carte:nth-child(1) .carte_media img { object-position: center 42%; }
.liste-carte .carte:nth-child(2) .carte_media img { object-position: center 48%; }
.liste-carte .carte:nth-child(3) .carte_media img { object-position: center 58%; }
.liste-carte .carte:nth-child(4) .carte_media img { object-position: center 28%; }

.a-propos .carte_media img { object-position: center 35%; }
.tarifs .carte_media img { object-position: center 40%; }

.carte_info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.carte_info span {
    padding: 8px;
    border: #111 solid 1px;
    border-radius: 10px;
    font-size: 13px;
    margin-right: 5px;
    box-shadow: 0 3px 4px rgba(0,0,0,0.20);
}


/* ========================= FOOTER ========================= */

footer {
    background-color: #263544;
    color: rgba(255,255,255,0.85);
}

footer .contenu {
    padding-top: 60px;
    padding-bottom: 30px;
}

footer .logo {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 22px;
}

footer p {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    line-height: 1.7;
}

.footer__desc {
    padding-left: 8px;
    border-left: 3px solid #C69214;
}

footer a {
    color: rgba(255,255,255,0.85);
    transition: color 0.2s ease;
}

footer a:hover {
    color: #C69214;
}

.footer__top {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
    gap: 50px;
    align-items: start;
    width: 100%;
}

.footer__left {
    max-width: 400px;
    padding-left: 16px;
}

.footer__right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
}

.footer__col {
    min-width: 0;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.footer__col h3 {
    font-size: 15px;
    font-weight: 700;
    color: #C69214;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    text-shadow: none;
}

.footer__email {
    display: inline-block;
    max-width: 150px;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.reseau {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 14px;
    margin-top: 14px;
}

.reseau__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.12);
    color: white;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.reseau__link:hover {
    background-color: #C69214;
    color: white;
    transform: translateY(-2px);
}

.reseau__icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer__bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer__legal-btn {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer__legal-btn:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #C69214;
    color: #C69214;
}

.footer__bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.50);
    margin-bottom: 0;
}

/* ========================= MENTIONS LÉGALES ========================= */

.legal {
    background-color: #FAFAFA;
}

.legal__titre {
    font-size: 32px;
    margin-bottom: 32px;
    color: #263544;
    text-shadow: none;
}

.legal__bloc {
    background: white;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.legal__bloc h2 {
    font-size: 20px;
    color: #4A6A8A;
    text-shadow: none;
    margin-bottom: 12px;
}

.legal__bloc p:last-child {
    margin-bottom: 0;
}

.legal__bloc .lien {
    word-break: break-word;
}

.legal__retour {
    margin-top: 12px;
}

.mention .contenu h1 {
    font-size: 40px;
    margin-bottom: 50px;
}

.mention .contenu h2 {
    font-size: 30px;
}

.mention .contenu p {
    margin-bottom: 30px;
}

/* ========================= HEADER & HERO ========================= */

.site-header {
    position: relative;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

header:has(.menu.ouvert) {
    z-index: 200;
}

.hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(400px, 55vh, 600px);
    margin-top: -68px;
    padding: 100px 30px 60px;
    background-color: #263544;
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
      background: rgba(0, 0, 0, 0.35);
}

.hero-banner--accueil {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-banner__titre {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0;
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

header .logo {
    font-size: 25px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    flex-shrink: 1;
    min-width: 0;
    line-height: 1.3;
}

.menu ul {
    display: flex;
    gap: 30px;
}

.menu a {
    color: white;
    font-size: 20px;
    font-weight: 500;
    transition: color 0.2s;
}

.menu a:hover {
    color: #B8860B;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger.actif span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger.actif span:nth-child(2) {
    opacity: 0;
}
.burger.actif span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ========================= RESPONSIVE ========================= */

/* --- Grand écran réduit (≤1200px) --- */
@media (max-width: 1200px) {

    .contenu {
        padding: 45px 24px;
    }

    .carte {
        gap: 36px;
    }

    .liste-carte {
        gap: 70px;
    }

    .tarifs .contenu {
        gap: 36px;
    }
}

/* --- Tablette paysage (≤1024px) --- */
@media (max-width: 1024px) {

    h2 { font-size: 28px; }

    .legal__titre {
        font-size: 28px;
    }

    .contenu {
        padding: 40px 24px;
    }

    /* Cartes : empilées, image en haut */
    .carte {
        flex-direction: column;
        gap: 28px;
        align-items: stretch;
    }

    .carte .carte_texte { order: 2; }
    .carte .carte_media { order: 1; }

    .carte_media img {
        max-width: 100%;
        height: 300px;
        margin: 0 auto;
        object-position: center center;
        border-radius: 10px;
    }

    .liste-carte {
        gap: 56px;
    }

    .liste-cours {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .cours {
        width: 100%;
    }

    /* Ateliers : 2 colonnes */
    .atelier_media {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .atelier_media img {
        height: 210px;
    }

    /* Équipe */
    .liste-prof {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }

    /* Tarifs */
    .tarifs .contenu {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .forfait {
        max-width: 100%;
    }

    .forfait_header {
        min-height: auto;
        padding: 26px;
    }

    .description_forfait {
        padding: 26px;
    }

    /* Footer */
    .footer__top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer__left {
        max-width: 100%;
    }

    .footer__right {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    /* Contact : formulaire et adresse en colonne */
    .formulaire-adresse .contenu {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* --- Tablette portrait / grand mobile (≤768px) --- */
@media (max-width: 768px) {

    h2 { font-size: 24px; }
    h3 { font-size: 18px; }
    p  { font-size: 15px; }

    .legal__titre {
        font-size: 24px;
    }

    .legal__bloc {
        padding: 20px 22px;
    }

    .contenu {
        padding: 36px 20px;
    }

    /* Header */
    header {
        padding: 14px 20px;
    }

    .hero-banner {
        min-height: clamp(300px, 45vh, 420px);
        margin-top: -62px;
        padding: 90px 20px 48px;
    }

    .hero-banner--accueil {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    header .logo {
        font-size: 17px;
        max-width: calc(100% - 48px);
    }

    .burger {
        display: flex;
        flex-shrink: 0;
        margin-left: auto;
    }

    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #5E5E5E;
        padding: 16px 20px 22px;
        border-top: 1px solid rgba(255,255,255,0.15);
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    }

    .menu.ouvert {
        display: block;
    }

    .menu ul {
        flex-direction: column;
        gap: 4px;
    }

    .menu a {
        font-size: 16px;
        display: block;
        padding: 12px 8px;
        border-radius: 6px;
    }

    .menu a:hover {
        background-color: rgba(255,255,255,0.08);
    }

    /* Cartes */
    .carte {
        gap: 22px;
    }

    .carte_media img {
        height: 260px;
        object-position: center center;
    }

    .liste-carte {
        gap: 48px;
    }

    /* Cours : 1 colonne */
    .liste-cours {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cours {
        aspect-ratio: 16 / 10;
        min-height: 200px;
    }

    /* Ateliers */
    .atelier_media {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .atelier_media img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .atelier_texte {
        padding-bottom: 28px;
    }

    /* Équipe */
    .liste-prof {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .professeur_media img {
        height: 180px;
    }

    /* Tarifs */
    .forfait_header {
        padding: 22px;
    }

    .description_forfait {
        padding: 22px;
    }

    .prix span {
        min-width: unset;
    }

    .prix strong {
        font-size: 22px;
    }

    /* Footer */
    .footer__top {
        gap: 32px;
    }

    .footer__right {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer__col--social {
        grid-column: 1 / -1;
    }

    .reseau {
        justify-content: flex-start;
    }

    footer .contenu {
        padding-top: 48px;
    }

    .footer__left {
        padding-left: 12px;
    }

    /* Contact */
    .formulaire-adresse .contenu {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .formulaire,
    .adresse {
        padding: 26px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .carte_map {
        min-height: 260px;
        aspect-ratio: 4 / 3;
    }

    /* Bouton retour haut */
    #topBtn {
        width: 44px;
        height: 44px;
        font-size: 22px;
        bottom: max(16px, env(safe-area-inset-bottom));
        right: max(16px, env(safe-area-inset-right));
    }
}

/* --- Petit mobile (≤480px) --- */
@media (max-width: 480px) {

    h2 { font-size: 21px; }
    h3 { font-size: 17px; }

    .legal__titre {
        font-size: 21px;
    }

    .legal__bloc {
        padding: 18px 16px;
    }

    .contenu {
        padding: 28px 16px;
    }

    header {
        padding: 12px 16px;
    }

    header .logo {
        font-size: 14px;
    }

    .carte_media img {
        height: 210px;
        object-position: center center;
    }

    .liste-carte {
        gap: 40px;
    }

    .cours {
        aspect-ratio: 16 / 9;
        min-height: 180px;
    }

    .atelier_media img {
        height: 190px;
    }

    /* Équipe : 1 colonne */
    .liste-prof {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .professeur_media img {
        height: 220px;
    }

    /* Tarifs */
    .remise {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 16px;
    }

    .remise span {
        min-width: unset;
        font-size: 26px;
    }

    .forfait_header {
        padding: 20px 18px;
    }

    .description_forfait {
        padding: 20px 18px;
    }


    /* Boutons tactiles pleine largeur */
    .btn {
        max-width: 100%;
        width: 100%;
        padding: 12px 20px;
    }

    /* Footer */
    .footer__right {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer__col--social {
        grid-column: auto;
    }

    .footer__legal {
        flex-direction: column;
        gap: 10px;
    }

    .footer__legal-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .footer__left {
        padding-left: 10px;
    }

    footer .contenu {
        padding-top: 36px;
        padding-bottom: 22px;
    }

    .footer__bottom {
        margin-top: 28px;
        padding-top: 20px;
    }

    .footer__bottom p {
        font-size: 12px;
        line-height: 1.6;
    }

    /* Contact */
    .formulaire,
    .adresse {
        padding: 22px 16px;
        border-radius: 10px;
    }

    .carte_map {
        min-height: 220px;
    }

    .formulaire input,
    .formulaire textarea {
        font-size: 16px;
    }

}

/* ========================= DYNAMIQUE ========================= */

.animate-all section,
.animate-all article,
.animate-all div {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-all section.visible,
.animate-all article.visible,
.animate-all div.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .animate-all section,
    .animate-all article,
    .animate-all div {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

#topBtn {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #263544;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 90;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, background-color 0.2s ease;
}

#topBtn:hover {
    transform: scale(1.1);
}
