/* =========================================================
   BLOC 1 — BASE GLOBALE
   ========================================================= */

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

html {
    font-size: 16px;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background: rgba(0,0,0,0.85);
    color: #222;
    overflow-x: hidden;
}

html, body {
    overflow-x: hidden;
}


*, *::before, *::after {
    box-sizing: border-box;
}

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


.page-wrapper {
    width: 100%;
    background: rgba(0,0,0,0.8);
    padding-top: 5px;
    padding-bottom: 5px;
    position: static;
    z-index: auto;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



.legal-page {
    width: 96%;
    margin: 20px auto;

    background: #ffffff;
    color: #222;

    padding: 40px;

    border-radius: 12px;

    border-left: 4px solid #425abe;

    max-width: none;
}

div.legal-page section.section-1 p {
   margin: 10px !important;
}

div.legal-page section.section-1 h2 {
   margin: 10px !important;
}

.legal-image {
    float: right;

    width: 32%;
    max-width: 420px;
    min-width: 220px;

    margin: 0 10px 25px 30px;

    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 10px;

    box-shadow:
        0 6px 16px rgba(0,0,0,0.18),
        0 12px 28px rgba(0,0,0,0.10);

    display: block;
}
@media (max-width: 900px) {

    .legal-image {
        float: none;

        display: block;

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

        margin: 20px auto;
    }

}

/* Empêche le contenu suivant de remonter sous l'image */

.legal-clear {
    clear: both;
}

.legal-page h1,
.legal-page h2,
.legal-page p,
.legal-page li {
    color: #222;
}


/* =========================================================
   BLOC 2 — ANIMATIONS
   ========================================================= */

.fade-in {
    opacity: 0;
    animation: fadeIn 0.7s ease-out forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}

.fade-up {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.7s ease-out forwards;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.fade-down {
    opacity: 0;
    transform: translateY(-15px);
    animation: fadeDown 0.7s ease-out forwards;
}
@keyframes fadeDown {
    to { opacity: 1; transform: translateY(0); }
}

.fade-left {
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeLeft 0.7s ease-out forwards;
}
@keyframes fadeLeft {
    to { opacity: 1; transform: translateX(0); }
}

.fade-right {
    opacity: 0;
    transform: translateX(20px);
    animation: fadeRight 0.7s ease-out forwards;
}
@keyframes fadeRight {
    to { opacity: 1; transform: translateX(0); }
}

.fade-zoom {
    opacity: 0;
    transform: scale(0.95);
    animation: fadeZoom 0.7s ease-out forwards;
}
@keyframes fadeZoom {
    to { opacity: 1; transform: scale(1); }
}

.fade-soft {
    opacity: 0;
    transform: translateY(8px);
    animation: fadeSoft 0.6s ease-out forwards;
}
@keyframes fadeSoft {
    to { opacity: 1; transform: translateY(0); }
}

/* Délais */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }

/* Animation de section */
.section-fade {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInSection 0.6s ease-out forwards;
}

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

/* =========================================================
   BLOC 3   MENU (PC)
   ========================================================= */

.hamburger {
    display: none;
}

.menu-links {
    display: none;
}

.main-menu {
    width: 100%;
    background: rgba(0,0,0,0.75);
    padding: 12px 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50;
}

.main-menu ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    margin: 0 50px;
    padding: 0 80px;
}

.main-menu ul li a {
    color: white;
    font-size: 1.35rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: 0.25s ease;
}

.main-menu ul li a::before,
.menu-links li a::before {
    content: "> ";
    color: white;
    font-weight: bold;
}

.main-menu ul li a.active,
.menu-links li a.active {
    color: #00aaff;
    font-weight: 700;
}

.main-menu ul li a.active::before,
.menu-links li a.active::before {
    color: #00aaff;
}

.main-menu ul li a:hover {
    filter: brightness(260%);
    text-shadow:
        0 0 10px rgba(255,255,255,1),
        0 0 20px rgba(255,255,255,0.9),
        0 0 35px rgba(255,255,255,0.8),
        0 0 55px rgba(255,255,255,0.7);
}

/* =========================================================
   BLOC 3   MENU (Mobile)
   ========================================================= */

@media (max-width: 900px) {

    .main-menu {
        display: none;
    }

    .hamburger {
        display: block;
        position: fixed;
        top: 12px;
        right: 15px;
        z-index: 10000;
        background: rgba(0,0,0,0.75);
        color: white;
        border: 2px solid white;
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 1.8rem;
        cursor: pointer;
    }

    .menu-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(0,0,0,0.90);
        padding: 1em 0;
        border-radius: 0 0 10px 10px;
        text-align: center;
        z-index: 9998;
        transform: translateY(-10px);
        opacity: 0;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .menu-links.open {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .menu-links li {
        padding: 0.8em 0;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .menu-links li:last-child {
        border-bottom: none;
    }

    .menu-links li a {
        color: white;
        text-decoration: none;
        font-size: 1.4rem;
    }
}
/* =========================================================
   BLOC 4 — HEADER (PC)
   ========================================================= */

.site-header {
    position: relative;
    background-image: url('../images/header.jpg');
    background-size: cover;
    background-position: center top;
    min-height: 650px;
    width: 100%;
}

/* Ligne logo + accessibilité */
.header-second-line {
    position: absolute;
    top: 80px;
    left: 40px;
    width: calc(100% - 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 80px;
    border: 3px solid white;
    border-radius: 6px;
    box-shadow:
        8px 8px 18px rgba(0,0,0,0.75),
        4px 4px 10px rgba(0,0,0,0.55),
        2px 2px 4px rgba(0,0,0,0.45);
}


.accessibility button {
    font-size: 1.3rem;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(0,0,0,0.65);
    border: 2px solid white;
    color: white;
    cursor: pointer;
    transition: 0.2s ease;
}

.accessibility button:hover {
    filter: brightness(200%);
    box-shadow:
        0 0 10px rgba(255,255,255,0.9),
        0 0 20px rgba(255,255,255,0.7),
        0 0 30px rgba(255,255,255,0.5);
}

/* Overlay du header — corrigé */
.header-overlay {
    position: absolute;
    bottom: 3em;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    max-width: 900px;
    background: rgba(0,0,0,0.75);
    padding: 1em;
    border-radius: 10px;
    border: 1px solid white;
    text-align: center;

    opacity: 0;
    animation: headerOverlayFade 0.8s ease-out forwards;
    animation-delay: 0.4s;
}


@keyframes headerOverlayFade {
    to {
        opacity: 1;
        transform: translateX(-50%);
    }
}

.header-title {
    font-size: 2.2rem;
    line-height: 1.4;
    color: white;
}

/* =========================================================
   BLOC 4 — HEADER (Mobile)
   ========================================================= */

@media (max-width: 900px) {

    .site-header {
        min-height: 300px;
        background-position: center;
    }

.header-second-line {
    top: 12px;
    left: 0;
    width: 100%;
    padding: 0 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
    pointer-events: auto;          /* ← ajoute cette ligne */
}

.header-second-line .logo {
    pointer-events: auto;          /* ← pour que le logo reste cliquable si besoin */
}

    .logo img {
        height: 60px;
        border-width: 2px;
    }

    .header-overlay {
        bottom: 2em;
        width: 85%;
        padding: 0.6em;
        border-radius: 10px;
        background: rgba(0,0,0,0.70);
    }

    .header-title {
        font-size: 1.1rem;
        line-height: 1.25;
    }
}


/* =========================================================
   BLOC 5 — SECTION MISSION
   ========================================================= */

.mission-section {
    width: 94%;
    margin: 0 auto;
    margin-top: 0;
    background: #f7f7f7;
    border-radius: 12px;
    padding: 40px 20px;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.25);
}

/* Titre comparatif */
.mission-compare-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: 600;
    background: rgba(66, 90, 190, 1);
    padding: 12px 20px;
    border-radius: 8px;

    opacity: 0;
    animation: titleFade 0.6s ease-out forwards;
}
@keyframes titleFade {
    to { opacity: 1; }
}

/* Grille principale */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Cartes RMUTA / MRC — animations uniformisées */
.mission-logo-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 12px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.05);
    min-height: 260px;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;

    opacity: 0;
    transform: translateY(10px);
    animation: cardFadeUniform 0.8s ease-out forwards;
}
@keyframes cardFadeUniform {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mission-logo {
    max-width: 140px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.25));
}

.mission-role-text {
    font-size: 1.2rem;
    color: #333;
}

/* Bloc texte Mission */
.mission-text {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
    border-left: 4px solid #425abe;
}

.mission-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
    border-bottom: 3px solid #425abe;
    padding-bottom: 6px;
}

.mission-text p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #333;
}

.mission-highlight {
    background: #e8ecff;
    padding: 10px 15px;
    border-left: 4px solid #425abe;
    font-weight: bold;
    margin: 15px 0;
}

/* Fond autobus */
.mission-logos {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
    border-radius: 12px;
    overflow-x: hidden;
}

.mission-logos::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/fond-mission2.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(20%) brightness(1.4) blur(2px);
    opacity: 0.7;
    z-index: 0;
    border-radius: 12px;
}

/* =========================================================
   MISSION — VERSION MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

   .mission-logos {
        gap: 15px;
        padding: 10px;
    }

    .mission-logo-card {
        padding: 15px;
    }

    .mission-logo {
        max-width: 90px;
    }

    .mission-text {
        padding: 20px;
    }
}

/* =========================================================
   BLOC 6 — BANNIÈRE SERVICES
   ========================================================= */

.services-banner {
    width: 100%;
    height: 260px;
    margin: 5px auto 5px auto;
    border-radius: 0px;
    overflow: hidden;

    background-image: url('../images/services-banner.jpg');
    background-size: cover;
    background-position: center 25%;

    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    position: relative;
}

/* Overlay corrigé (ne couvre plus toute la hauteur) */
.services-banner-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    background: rgba(0,0,0,0.55);
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid white;

    width: 80%;
    max-width: 900px;
    text-align: center;

    opacity: 0;
    animation: bannerOverlayFade 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

@keyframes bannerOverlayFade {
    to {
        opacity: 1;
        transform: translateX(-50%);
    }
}

.services-banner-overlay h2 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
}

/* =========================================================
   BANNIÈRE SERVICES — VERSION MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .services-banner {
        height: 180px;
    }

    .services-banner-overlay {
        width: 90%;
        padding: 10px 14px;
    }

    .services-banner-overlay h2 {
        font-size: 1.4rem;
    }
}

/* =========================================================
   BLOC 7 — SECTION SERVICES
   ========================================================= */

.services-section {
    width: 94%;
    margin: 5px auto;
    background: #425abe;
    padding: 30px 20px;
    border-radius: 10px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.services-inner {
    width: 94%;
    margin: 0 auto;
    padding: 20px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* =========================
   CARTES DE SERVICE
   ========================= */

.service-card {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.4);
    border-left: 4px solid rgba(0,0,0,0.35);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);

    display: flex;
    flex-direction: column;
    gap: 20px;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.service-card h4 {

    color: #425abe;

    margin: 0;

}

.service-button {

    display: inline-block;

    align-self: center;

    padding: 12px 24px;

    background: #425abe;

    color: white;

    text-decoration: none;

    font-weight: 600;

    border-radius: 8px;

}

.service-button:hover {

    background: #31449f;

}

/* Icône */
.service-icon {
    width: 60px;
    height: 60px;

    min-width: 60px;
    min-height: 60px;

    flex-shrink: 0;

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

.service-header h3 {
    flex: 1;
}

.service-icon img {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    display: block;
}


/* Titre */
.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

/* Texte */
.service-content p {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

/* =========================
   CARTES EXPANDABLES
   ========================= */

.expandable {
    overflow: visible;
    transition: all 0.3s ease;
}

/* Header de la carte */
.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Bouton + / - */
.expand-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
    transition: transform 0.2s ease;
}

.expand-btn .minus {
    display: none;
}

/* Contenu caché */
.service-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Quand la carte est ouverte */
.expandable.open .service-content {
    max-height: 2000px;
    opacity: 1;
}

.expandable.open .expand-btn .plus {
    display: none;
}

.expandable.open .expand-btn .minus {
    display: inline;
}

/* =========================================================
   SECTION SERVICES — VERSION MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;

    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-content p {
        font-size: 1.1rem;
    }

}

/* =========================================================
   BLOC 8 — BANNIÈRE DEVENIR MEMBRE
   ========================================================= */

.membership-banner {
    width: 100%;
    margin: 0px auto 0px auto;
    height: 260px;
    border-radius: 0px;
    overflow: hidden;

    background-image: url('../images/devenirMembre.jpg');
    background-size: cover;
    background-position: center;

    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    position: relative;
}

/* Overlay corrigé (ne couvre plus toute la hauteur) */
.membership-banner .services-banner-overlay {
    position: absolute;
    bottom: 20px;
    transform: translateX(-50%);

    background: rgba(0,0,0,0.55);
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid white;

    width: 80%;
    max-width: 900px;
    text-align: center;

    opacity: 0;
    animation: bannerOverlayFade 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.membership-banner .services-banner-overlay h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

/* =========================================================
   BANNIÈRE DEVENIR MEMBRE — VERSION MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .membership-banner {
        height: 180px;
    }

    .membership-banner .services-banner-overlay {
        width: 90%;
        padding: 10px 14px;
    }

    .membership-banner .services-banner-overlay h2 {
        font-size: 1.4rem;
    }
}

/* =========================================================
   BLOC 9 — SECTION DEVENIR MEMBRE
   ========================================================= */

.member-section {
    width: 94%;
    margin: 5px auto;
    padding: 40px 20px;

    background: #ffffff;
    color: #000;
    border-radius: 10px;

    box-shadow: 0 0 12px rgba(0,0,0,0.12);
    border-left: 4px solid #425abe; /* Style Mission */
}

/* Texte d’introduction */
.section-intro {
    max-width: 100%;
    text-align: justify;
    padding: 0 10px;
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Grille */
.member-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Cartes — réutilisation de mission-logo-card mais sans animations conflictuelles */
.member-grid .mission-logo-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
    padding: 25px;
    border-radius: 10px;
    text-align: center;

    box-shadow: 0 0 12px rgba(0,0,0 ,0.12);
    border: 1px solid rgba(0,0,0,0.05);
    border-left: 4px solid #425abe;
    min-height: 260px;

    opacity: 0;
    transform: translateY(10px);
    animation: memberCardFade 0.8s ease-out forwards;
}

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

/* Icônes */
.member-grid .mission-logo img {
    max-width: 128px;
    margin-bottom: 15px;
}

/* Titres */
.member-grid h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Paragraphes */
.member-grid p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Liste des avantages */
.member-benefits {
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.6;
    padding-left: 20px;
}

/* =========================================================
   SECTION DEVENIR MEMBRE — VERSION MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .member-section {
        padding: 30px 15px;
    }

    .member-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .member-grid .mission-logo img {
        max-width: 100px;
    }

    .member-grid h3 {
        font-size: 1.3rem;
    }

    .member-grid p,
    .member-benefits {
        font-size: 1.1rem;
    }

    p.section-intro {
    text-align: left;
}
}

/* =========================================================
   BLOC 9.1 — TOUT SAVOIR SUR LE TRANSPORT
   ========================================================= */

.savoir-section {

    width: 96%;
    margin: 30px auto;

    background: #ffffff;

    color: #222;

    padding: 40px;

    border-radius: 12px;

    border-left: 4px solid #425abe;

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

    min-height: 500px; /* TEST TEMPORAIRE */

}

@media (max-width: 900px) {

    .savoir-section {

        width: 96%;

        padding: 20px;

    }

}

.savoir-intro {
    color: #222;
    padding: 25px;
}

.savoir-intro p {
    color: #222;
    font-size: 1.15rem;
    line-height: 1.6;
}

.savoir-intro-wrapper {

    display: flex;
    gap: 20px;

    align-items: flex-start;

    margin-bottom: 30px;

    width: 100%;
}

@media (max-width: 900px) {

    .savoir-intro-wrapper {

        display: block;

    }

     .savoir-intro {

        width: 100%;

        max-width: 100%;

        margin: 0;

        padding: 0;

    }

    .savoir-intro-image {

        width: 100% !important;

        max-width: 100% !important;

        height: auto;

        margin: 5px 0;

        order: -1;
    }

}


.savoir-intro {

    flex: 1;

    min-width: 0;
}

.savoir-intro-image {

    width: 35%;

    border: 1px solid #000;

    display: block;

}

.retour-sommaire {
    margin-top: 10px;
    margin-bottom: 10px;
    text-align:center;
}

.retour-sommaire a {

    text-decoration: none;

    color: #425abe;

    font-weight: 600;

    font-size: 1.2rem;

    margin-top: 40px;

    opacity: .85;

}

.retour-sommaire a:hover {

    text-decoration: underline;

}

.savoir-sommaire {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 25px;
    margin-top: 10px;

}

.savoir-sommaire a:hover {
    transform: translateX(3px);
}

.savoir-sommaire a {

    display: block;

    padding: 14px 18px;

    background: #ffffff;

    color: #222;

    text-decoration: none;

    border-left: 4px solid #425abe;

    border-radius: 8px;

    box-shadow: 0 2px 6px rgba(0,0,0,0.10);

    transition: 0.2s ease;

}

.savoir-sommaire a:hover {

    transform: translateY(-2px);

    background: #f5f7ff;

}

@media (max-width: 900px) {

    .savoir-sommaire {

        grid-template-columns: 1fr;

    }

}

.savoir-content {

    margin-top: 30px;

    padding-top: 0;

    display:none;

   border-left: 5px solid #425abe;
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {

    .savoir-content {
    text-align: left;
    }

}

.savoir-content h3 {

    color: #425abe;

    font-size: 2rem;

    margin-bottom: 25px;

    padding-bottom: 10px;


}

.savoir-content.open{

    display:block;

}

.savoir-content.open {

    display: block;

    background: #ffffff;

    border-radius: 14px;

    padding: 30px;

    margin-top: 30px;

    box-shadow: 0 4px 18px rgba(0,0,0,.12);

}

@keyframes fadeInTitle {

    from {

        opacity: 0;
        transform: translateY(-40px);

    }

    to {

        opacity: 1;
        transform: translateY(0);

    }

}

.savoir-content.open h3 {

    animation: fadeInTitle 1.5s ease-out;

}

@keyframes fadeInImage {

    from {
        opacity: 0;
        transform: scale(.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.savoir-content.open img {

    animation: fadeInImage .9s ease-out;
    animation-delay: .2s;
    animation-fill-mode: both;

}
.savoir-note {

    background: #f4f6ff;

    border-left: 5px solid #425abe;

    border-top: 1px solid #425abe;

    border-right: 1px solid #425abe;

    border-bottom: 1px solid #425abe;

    border-radius: 12px;

    padding: 25px 30px;

    margin: 35px 0;

    box-shadow: 0 2px 10px rgba(0,0,0,.05);

}

.savoir-note strong {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 1.2rem;

    color: #425abe;

    margin-bottom: 15px;

}

.savoir-note strong::before {

    content: "💡";

}



.high-contrast .savoir-note {

    background: #dfe8ff !important;

    border-left: 5px solid #425abe;
}

.infographie {

    display: block;

    width: 100%;

    max-width: 1200px;

    margin: 25px auto;

    border: 1px solid #dcdcdc;

}

.savoir {

    float: right;

    width: 32%;

    max-height: 800px;

    object-fit: cover;

        border: 8px solid white;

        box-shadow: 0 4px 14px rgba(0,0,0,.15);

    margin: 0 0 20px 25px;

}

.savoir-centre {

    display: block;

    width: 100%;

    max-width: 650px;

    margin: 25px auto;

    border: 1px solid #ccc;

}

@media (max-width: 900px) {

    .savoir-hide {
        display: block;
    }

    .savoir {

        float: none;

        display: block;

        width: 100%;

        max-width: 100%;

        max-height: none;

        margin: 20px auto;

    }

}

.territoire-table {

    width: 100%;

    border-collapse: collapse;

    margin: 20px 0;

}

.territoire-table th {

    background: #425abe;

    color: white;

    padding: 12px;

    text-align: left;

}

.territoire-table td {

    border: 1px solid #dcdcdc;

    padding: 12px;

    vertical-align: top;

}

.tarifs-table {

    width: 100%;

    border-collapse: collapse;

    margin: 25px 0;


}

.tarifs-table th {

    background: #425abe;

    color: white;

    padding: 12px;

    text-align: center;

}

.tarifs-table td {

    border: 1px solid #dcdcdc;

    padding: 12px;

    text-align: center;

}

.tarifs-table td:first-child {

    text-align: left;

    font-weight: 600;

}

.tarifs-table tr:nth-child(even) {

    background: #f5f7ff;

}

.documents-grid {

    display: flex;

    justify-content: center;

    gap: 40px;

    flex-wrap: wrap;

    margin: 30px 0;

}

.document-card {

    width: 220px;

    text-align: center;

}

.document-card a {

    text-decoration: none;

    display: block;

}

.document-card img {

    width: 100%;

    height: auto;

    border-radius: 8px;

    box-shadow: 0 2px 10px rgba(0,0,0,.15);

    border: 1px solid black;

}

.document-card p {

    margin-top: 12px;

    font-weight: 600;

    color: #425abe;

    line-height: 1.4;

}

.coordonnees-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    margin: 30px 0;

}

@media (max-width: 1100px) {

    .coordonnees-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media (max-width: 600px) {

    .coordonnees-grid {

        grid-template-columns: 1fr;

    }

}

.telephone-card {

    background: #ffffff;

    border-radius: 12px;

    padding: 20px;

    text-align: center;

    border-left: 4px solid #425abe;

    box-shadow: 0 4px 14px rgba(0,0,0,0.18);

}

.telephone-card h4 {

    margin-top: 0;

    margin-bottom: 12px;

    color: #425abe;

}

.telephone-card .telephone {

    font-size: 1.15rem;

    font-weight: 700;

    margin: 0;

    white-space: nowrap;

}

.sommaire-categorie {

    margin-bottom: 40px;

    background-color: #425abe;

    padding: 10px;

    border-radius : 10px;

    border: 1px solid black;

}

.sommaire-categorie h3 {

    color: #FFFFFF;

    margin-bottom: 25px;

    font-weight: 700;

    text-align: center;

    letter-spacing: 1.5px;

    margin-bottom: 25px;

}


.sommaire-grid {

    display: grid;

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

    gap: 15px;

    margin-top: 20px;

}

.sommaire-card {

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 85px;

    padding: 15px;

    background: #ffffff;

    border-radius: 12px;

    border-left: 4px solid #000000;

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

    text-decoration: none;

    color: #000000;

    font-weight: 300;

    text-align: center;

}

.sommaire-card:hover {

    transform: translateY(-2px);

}

.etat-service-wrapper {

    background: #425abe;

    padding: 40px;

    border-radius: 14px;

    margin: 50px 0;

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

}

.etat-service-wrapper h3 {

    color: white;

}

#documents-utiles {
    margin-top: clamp(2rem, 5vw, 5rem);
}

#documents-utiles h3,
#etat-service h3,
#coordonnees-importantes h3 {

    color: #425abe;

    text-align: center;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 30px;

}

#documents-utiles,
#coordonnees-importantes {

    border-left: 6px solid #425abe;

    border-radius: 10px;

    padding: 30px;

    background: white;

    box-shadow: 0 4px 14px rgba(0,0,0,.08);

}

#etat-service h3 {

    color: white;

    text-align: center;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 30px;

}

/* =========================================================
   BLOC 9.2 — EQUIPE
   ========================================================= */

.equipe-section {

    width: 94%;
    margin: 5px auto;
    background: #425abe;
    padding: 40px 20px;
    border-radius: 12px;

}

.equipe-card {

    background: #ffffff;

    padding: 30px;

    border-radius: 12px;

    margin-bottom: 30px;

    box-shadow: 0 4px 14px rgba(0,0,0,.15);

    border-left: 4px solid #000000;

    font-size: 1.15rem;
    line-height: 1.7;

}

.equipe-card h3 {

    font-size: 1.8rem;

    color: #425abe;

    text-align: center;

    margin-bottom: 30px;

}

.equipe-photo {

    width: 100%;

    border-radius: 12px;

    margin-bottom: 15px;

    border: 1px solid black;
}

.photo-caption {

    text-align: center;

    font-style: italic;

    color: #666;

    margin-bottom: 25px;

}

.ca-table {

    width: 100%;

    border-collapse: collapse;

    margin-top: 25px;

}

.ca-table th {

    background: #425abe;

    color: white;

    padding: 12px;

}

.ca-table td {

    padding: 12px;

    border: 1px solid #ddd;

}

.ca-table tr:nth-child(even) {

    background: #f5f7ff;

}

.employe-wrapper {

    display: flex;

    gap: 25px;

    align-items: flex-start;

}

.employe-photo {

    width: 180px;
    max-width: 180px;

    border-radius: 12px;

    border: 3px solid #425abe;

    box-shadow: 0 4px 14px rgba(0,0,0,.15);

}

.employe-text {

    flex: 1;

}

.employe-text p {
    text-align: justify;
}

.employe-text h4 {

    color: #425abe;

    margin-top: 0;

    margin-bottom: 5px;

}

@media (max-width: 900px) {

    .employe-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .employe-text h4,
    .fonction {
        text-align: center;
    }

    .employe-text p {
        text-align: left;
    }

}

.fonction {

    font-weight: 700;

    margin-bottom: 20px;

}

@media (max-width: 900px) {

    .employe-wrapper {

        flex-direction: column;

        align-items: center;

        text-align: center;

    }

}

/* =========================================
   PAGE CONTACT
   ========================================= */

.contact-section {

    width: 96%;

    margin: 20px auto;

    background: #425abe;

    border-radius: 5px;

}

.contact-section h3 {

    font-size: 1.6rem;
    text-align: center;
    padding-top: 14px;
   color: white;

}

.contact-card {

    background: white;

    color: black;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    padding: 10px;
    border-left: 5px solid #425abe;
    font-size: 1.15em;

}

.contact-grid {

    display:grid;

    grid-template-columns: repeat(4, minmax(250px, 400px));

    justify-content:center;

    gap:20px 20px;

    color: black;

    border-radius: 10px;

}

.contact-grid div {
       background-color: rgba(66,90,190,0.2);
       padding: 10px;
       border-radius: 10px;
}

.contact-grid h4 {

    font-size: 1.3rem;
    margin: 8px;


}

.contact-card h3 {

    font-size: 1.6rem;
    text-align: center;
    color: black;

}

.contact-grid p {

    margin: 0px;

}

.contact-grid a {

    color: #425abe;

    text-decoration: none;

}

.contact-grid a:hover {

    text-decoration: underline;

}

.contact-note {

  
   margin-left: auto;

    margin-right: auto;

    padding: 20px;

    text-align: center;

    border-radius: 10px;

   width: 90%;

}

.contact-note p {

  
   margin-top: 0;
   margin-bottom: 0;


}

@media (max-width: 900px) {

    .contact-grid {

        grid-template-columns: 1fr;

    }

}

.contact-image {
    float: right;

    width: 35%;


    margin: 10px;

    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 10px;

    box-shadow:
        0 6px 16px rgba(0,0,0,0.18),
        0 12px 28px rgba(0,0,0,0.10);

    display: block;
    border: 1px solid black;
}
@media (max-width: 900px) {

    .contact-image {
        display: none;
    }

}
/* =========================================================
   BLOC X : FORMULAIRE CONTACT
   ========================================================= */

.contact-form {

    margin-top: 25px;

}

.contact-form-card {

    background: #425abe;

    color: white;

}

.contact-form-card h3,
.contact-form-card p,
.contact-form-card label {

    color: white;

}

.form-group {

    margin-bottom: 25px;

}

.form-group label {

    display: block;

    margin-bottom: 10px;

    font-weight: 600;

    color: white;

}

.form-group input,
.form-group textarea {

    width: 50%;

    padding: 14px;

    border: 1px solid black;

    border-radius: 8px;

    font-size: 1rem;

    font-family: inherit;

}

@media (max-width: 900px) {

.form-group input,
.form-group textarea {

    width: 100%;

    }

}

.form-group textarea {

    resize: vertical;

}

.contact-form-card .contact-button {

    background: white;

    color: #425abe;

    border: 2px solid black;

    font-weight: 700;

    border-radius: 5px;

    padding: 5px;

    margin-bottom: 10px;

    box-shadow: 0 4px 14px rgba(0,0,0,.15);

}

.contact-button:hover {

    background: transparent;

    color: white;

    border: 2px solid white;

}

.hidden-field {

    display: none;

}

.success-message {

    background: #d4edda;
    color: #155724;

    padding: 15px;

    border-radius: 8px;

    margin-bottom: 20px;

}

.error-message {

    background: #f8d7da;
    color: #721c24;

    padding: 15px;

    border-radius: 8px;

    margin-bottom: 20px;

}

/* =========================================================
   BLOC 10 — ACCESSIBILITÉ (Bouton flottant + boîte)
   ========================================================= */

.accessibility-box-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid white;
    cursor: pointer;
    z-index: 9999;
    font-size: 1rem;
    transition: 0.2s ease;
}

.accessibility-box-toggle.compact {
    width: 60px !important;
    height: 60px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000 !important;
    border: 2px solid white !important;
    color: white !important;
    line-height: 1;
    box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.accessibility-box-toggle.open {
    background: rgba(255,50,50,0.85);
}

.accessibility-box {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: rgba(0,91,187,0.92);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid white;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    cursor: move;
}

.accessibility-box button {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.accessibility-box button:hover {
    background: rgba(255,255,255,0.2);
}

/* =========================================================
   BLOC 11 — CONTRASTE INTELLIGENT (Option B)
   ========================================================= */
.high-contrast .savoir-note p,
.high-contrast .savoir-note li,
.high-contrast .savoir-note strong,
.high-contrast .contact-card p,
.high-contrast .contact-card h4
{
    color: #000000 !important;
}

.high-contrast {
    color: #fff !important;
}

.high-contrast .contact-form-card p {
    color: #fff !important;
}

/* Sections blanches deviennent gris foncé */
.high-contrast section,
.high-contrast .mission-section,
.high-contrast .services-section,
.high-contrast .member-section {
    background-color: #1a1a1a !important;
    color: #fff !important;
}

/* Liens */
.high-contrast a {
    color: #00aaff !important;
    text-decoration: underline !important;
}

/* Images */
.high-contrast img {
    filter: brightness(90%) contrast(120%) !important;
}

/* Boutons */
.high-contrast button {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

/* Containers */
.high-contrast .container {
    background: #1a1a1a !important;
    color: #fff !important;
}

/* Footer */
.high-contrast .footer-col {
    background: #1a1a1a !important;
    border-color: #333 !important;
    color: #fff !important;
}

.high-contrast .footer-col h3 {
    color: #ffffff !important;
}

.high-contrast .footer-col a {
    color: #00aaff !important;
}

/* Titres + texte */
.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast h4,
.high-contrast h5,
.high-contrast h6,
.high-contrast p,
.high-contrast li {
    color: #ffffff !important;
}

/* Séparateurs */
.high-contrast hr {
    border-color: #555 !important;
}

/* Cartes en mode contraste */
.high-contrast .service-card,
.high-contrast .mission-logo-card,
.high-contrast .mission-text {

    background: #2b2b2b !important;

    color: #ffffff !important;

    border: 1px solid #666 !important;

}

.high-contrast .expand-btn {
    color: #ffffff !important;
}

.high-contrast .mission-highlight {
    background: #e8ecff !important;
    color: #000000 !important;
}

.high-contrast .mission-highlight * {
    color: #000000 !important;
}

/* =========================================================
   BLOC 12 — FOOTER (PC)
   ========================================================= */

.site-footer {
    background: rgba(0,0,0,0.9);
    color: #e0e0e0;
    padding: 40px 20px;
    margin-top: 0px;

    opacity: 0;
    transform: translateY(20px);
    animation: footerReveal 0.9s ease-out forwards;
    animation-delay: 0.5s;
}

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

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    text-align: center;
}

.footer-logo {
    height: 80px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.footer-col h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.footer-col a {
    display: block;
    color: #cfcfcf;
    text-decoration: none;
    margin: 6px 0;
    transition: 0.25s ease;
}

.footer-col a:hover {
    color: #00aaff;
    text-decoration: underline;
    text-shadow:
        0 0 6px rgba(0,170,255,0.6),
        0 0 12px rgba(0,170,255,0.4);
}

/* Icône Facebook */
.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.fb-svg {
    width: 50px;
    height: 50px;
    fill: #ffffff;
    transition: 0.25s ease;
    margin-top: 10px;
}

.footer-social:hover .fb-svg {
    fill: #00aaff;
    transform: scale(1.15);
}


.footer-copy {
    margin-top: 20px;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Séparateurs PC */
@media (min-width: 901px) {
    .footer-col {
        padding-right: 20px;
    }
    .footer-col:not(:last-child) {
        border-right: 1px solid #425abe;
    }
}

/* =========================================================
   FOOTER — VERSION MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .footer-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
        align-items: center;
    }

    .footer-col {
        background: #ffffff;
        color: #222;
        padding: 20px;
        border-radius: 12px;
        border: 1px solid #ddd;
        width: 100%;
        max-width: 500px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        text-align: left !important;
    }

    .footer-col h3 {
        margin-bottom: 15px;
        font-size: 1.4rem;
        color: #333;
    }

    .footer-col a {
        color: #425abe;
        font-size: 1.2rem;
        margin: 8px 0;
        text-decoration: none;
    }

    .footer-logo {
        height: 70px;
        margin: 0 auto 20px auto;
        display: block;
    }


  
}

@media (max-width: 900px) {
    .main-menu ul,
    .header-second-line,
    .menu-links,
    .mission-grid,
    .services-grid,
    .member-grid {
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 900px) {

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

}

@media (max-width: 900px) {
    .main-menu ul {
        margin: 0;
        padding: 0;
    }
}



