* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --bleuDark: #253E86;
    --blueDark: #253E86;
    --bleuLight: #00AEEF;
    --bleuGreen: #49C5D9;
    --yellow: #FFF200;
    --green1: #8DC63F;
    --green2: #39B54A;
    --violet: #662D91;
    --violetDark: #262262;
}

body {
    font-family: "Montserrat", sans-serif;
    background: #f5f5f5;
    overflow-x: hidden;
}
p{
    font-weight: 300;
    text-align: justify;
    line-height: 1.7;
    color: #706e6e;
}

/* =========================
   NAVIGATION PRINCIPALE
   Transparente et posée sur le hero / la bannière.
   Au défilement, pages.js ajoute .est-compacte : le fond devient bleu.
========================= */

nav{
    position: absolute;          /* le nav flotte au-dessus du hero */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12%;
    padding: 10px 40px;
    height: 80px;

    background-color: transparent;
    box-shadow: none;
    transition: background-color 0.35s ease;
}
nav.est-compacte{
    background-color: var(--bleuDark);   /* lisible une fois la page défilée */
}

nav .navigation{
    display: flex;
    align-items: center;
    gap: 28px;
    height: fit-content;
}
#menu-btn{
    display: none;
    width: 30px;
    height: 30px;
}
#menu-close{
    display: none;
    cursor: pointer;
}
nav .navigation ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
nav .navigation ul li {
    list-style: none;
    margin-left: 30px;
}
nav .navigation ul li a {
    text-decoration: none;
    color: #fff;                 /* blanc sur fond sombre */
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s ease;
}
nav .navigation ul li a:hover {
    color: var(--yellow);
    border-bottom: 2px solid var(--yellow);
    transition: 0.5s ease-in-out;
}
nav img{
    width: 120px;
    height: 50px;
}
nav .navigation ul li a.active-tab,
.active-tab {
    color: var(--yellow);
    border-bottom: 2px solid var(--yellow);
}

/* =========================
   SÉLECTEUR DE LANGUE
========================= */
.lang-switch {
    position: relative;
}
.lang-switch__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    font: 600 14px "Montserrat", sans-serif;
    cursor: pointer;
    transition: box-shadow 0.25s ease;
}
.lang-switch__btn:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.lang-switch__btn:focus-visible,
.lang-switch__menu [role="option"]:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.lang-switch .fi { border-radius: 2px; }
.lang-switch__chevron { font-size: 11px; transition: transform 0.25s ease; }
.lang-switch__btn[aria-expanded="true"] .lang-switch__chevron { transform: rotate(180deg); }

.lang-switch__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    padding: 6px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    z-index: 1000;
}
.lang-switch__menu[hidden] { display: none; }
.lang-switch__menu [role="option"] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    list-style: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    cursor: pointer;
}
.lang-switch__menu [role="option"]:hover { background: #f1f3f9; }
.lang-switch__menu [role="option"][aria-selected="true"] { background: #f1f3f9; font-weight: 700; color: var(--bleuDark); }

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 550px;
    overflow: hidden;
    background: #222;
}

/*
  Chaque slide occupe exactement le même espace.
  Une seule slide possède la classe "active".
*/
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* Image de fond */
.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.06);
    transition: transform 7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide.active .hero-image {
    transform: scale(1);
}

/* Voile sombre au-dessus de l'image */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.70) 0%,
            rgba(0, 0, 0, 0.42) 50%,
            rgba(0, 0, 0, 0.15) 100%
        );
    z-index: 1;
    opacity: 0.98;
    transition: opacity 1.35s ease;
}

/* Contenu */
.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, 84%);
    height: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.hero-content-inner {
    max-width: 700px;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--yellow);
}

.hero-title {
    font-size: clamp(30px, 3vw, 4px);
    line-height: 1;
    font-weight: 800;
    text-align: center;
}

.hero-description {
    max-width: 650px;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.94);
}

/* Bouton */
.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 25px;
    background: var(--yellow);
    color: var(--bleuDark);
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
    background: var(--bleuDark);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    color: var(--yellow);
}

/* =========================
   ANIMATION DU TEXTE
========================= */

.hero-kicker,
.hero-title,
.hero-description,
.hero-button {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
}

.hero-slide.active .hero-kicker {
    animation: textIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.hero-slide.active .hero-title {
    animation: textIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.hero-slide.active .hero-description {
    animation: textIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

.hero-slide.active .hero-button {
    animation: textIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.56s forwards;
}

@keyframes textIn {
    0%   { opacity: 0; transform: translate3d(0, 28px, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* =========================
   NAVIGATION DU HERO
========================= */

.hero-nav {
    position: absolute;
    z-index: 10;
    left: 50%;
    bottom: 38px;
    transform: translateX(-50%);
    width: min(1200px, 84%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arrows {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 20px;
}

.arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.arrow:hover {
    transform: scale(1.06);
}

/* Points */
.dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.dot.active {
    width: 28px;
    border-radius: 10px;
    background: var(--yellow);
}

/* =========================
   BARRE DE PROGRESSION
========================= */

.progress {
    position: absolute;
    z-index: 20;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
}

.progress-bar {
    width: 0;
    height: 100%;
    background: var(--yellow);
}

.progress-bar.running {
    animation: progress 6s linear forwards;
}

@keyframes progress {
    from { width: 0; }
    to   { width: 100%; }
}


/* =========================
   ABOUT
========================= */

.message-dg {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.message-dg__image {
    flex: 0 0 40%;
}

.message-dg__image img {
    width: 100%;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

.message-dg__content {
    flex: 1;
}

.message-dg__content h2 {
    font-size: 28px;
    color: #111;
    margin-bottom: 30px;
}

/* Citation : ligne verticale + guillemet jaune */
.quote {
    position: relative;
    padding-left: 40px;
    border-left: 1px solid #ddd;
    margin: 0;
}

.quote__mark {
    position: absolute;
    left: -14px;
    top: -10px;
    font-size: 60px;
    line-height: 1;
    color: var(--yellow);
    background: #fff;
    padding-bottom: 10px;
}

.quote blockquote p {
    font-size: 17px;
    line-height: 1.6;
    color: #222;
    text-align: left;
    font-weight: 400;
}

.quote figcaption {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quote figcaption strong {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

.quote figcaption span {
    font-size: 12px;
    color: #777;
}

@media (max-width: 768px) {
    .message-dg {
        flex-direction: column;
        gap: 30px;
    }
    .message-dg__image {
        flex: none;
        width: 100%;
    }
}

/* =========================
   Missions
========================= */

.missions-container {
    max-width: 1200px;
    width: 100%;
    background: #ffffff;
    border-radius: 2rem;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
}

.missions-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--bleuDark);
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
    position: relative;
}

.missions-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--bleuDark);
    border-radius: 4px;
    margin-top: 0.5rem;
}

.missions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mission-card {
    background: #f9fcff;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem 1.8rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eef3f8;
    display: flex;
    flex-direction: column;
}

.mission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 40, 80, 0.08);
    border-color: #d0e2f2;
}

.mission-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    color: var(--yellow);
}

.mission-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: rgb(21, 21, 100);
}

.mission-card p {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    color: #514f4f;
}

.mission-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--bleuDark);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, gap 0.2s;
    align-self: flex-start;
    padding-bottom: 2px;
}

.mission-link:hover {
    border-bottom-color: var(--yellow);
    gap: 0.7rem;
}

.mission-link .arrow {
    display: inline-block;
    transition: transform 0.2s;
}

.mission-link:hover .arrow {
    transform: translateX(4px);
}

/* =========================
   FOOTER
========================= */
#footer {
    padding: 4vw;
    background-color: var(--bleuDark);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/icone-removebg.png');
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

#footer > * {
    position: relative;
    z-index: 1;
}

#footer .footer-col{
    padding-bottom: 40px;
}
.footer-col img{
    width: 300px;
}
#footer h3{
    color: rgb(241, 240, 245);
    padding-bottom: 20px;
    font-weight: 600;
}
#footer li{
    color: #7b838a;
    padding: 10px 0;
    font-size: 15px;
    list-style: none;
    transition: 0.3s ease-in-out;
}
#footer li:hover{
    color: rgb(241, 240, 245);
    cursor: pointer;
}
#footer p{
    color: #7b838a;
}
footer input{
    width: 220px;
    padding: 15px 12px;
    background: #334F6C;
    border: none;
    color: white;
}
footer .subscribe a{
    text-decoration: none;
    font-size: 0.9rem;
    padding: 15px 12px;
    background-color: white;
    font: 600;
}
.direct-contact {
    color: white;
    background-color: var(--yellow);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s ease;
    border-radius: 5px;
}
.direct-contact i{
    margin-left: 5px;
    font-weight: 600;
    font-size: 1.2rem;
}
.direct-contact a{
    text-decoration: none;
    color: white;
}
.direct-contact:hover{
    background-color: white;
    font-weight: 600;
}
#footer .copyright{
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}
#footer .copyright .pro-links{
    margin-top: 0px;
}
#footer .copyright .pro-links i{
    background-color: #5f7185;
    color: white;
    transition: background-color 0.3s ease;
}
#footer .copyright .pro-links i:hover{
    background-color: var(--yellow);
    color: #2c2c2c;
}
#footer .copyright p{
    color: white;
}
.pro-links i{
    text-decoration: none;
    margin-right: 10px;
    font-size: 1.2rem;
    padding: 10px;
}