/* ============================================
   SEGAMY - Feuille de styles principale
   Theme WordPress sur-mesure
   ============================================ */


/* ============================================
   1. VARIABLES CSS
   ============================================ */

:root {
    /* Couleurs principales */
    --color-bg-primary: #38617B;
    --color-bg-header: #38617B;
    --color-bg-footer: #38617B;
    --color-bg-section-grey: #E2E1E1;
    --color-accent: #C0392B;
    --color-accent-hover: #A93226;
    --color-text-dark: #827F7F;
    --color-text-body: #555555;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-footer: rgba(255, 255, 255, 0.5);
    --color-text-rgpd: rgba(255, 255, 255, 0.6);

    /* Drapeau francais (couleurs issues du logo SVG) */
    --color-flag-blue: #2C4C9B;
    --color-flag-white: #E2E1E1;
    --color-flag-red: #CE1A1C;
    --color-flag-navy: #2C4C9B;

    /* Typographie */
    --font-family: Verdana, Geneva, sans-serif;
    --font-size-h1: clamp(2rem, 5vw, 3.5rem);
    --font-size-h2: clamp(1.5rem, 3vw, 2.2rem);
    --font-size-h3: clamp(1.1rem, 2vw, 1.1rem);
    --font-size-body: clamp(0.875rem, 1.2vw, 1rem);
    --font-size-small: 0.8rem;
    --font-size-nav: 1.1rem;
    --line-height-body: 1.65;

    /* Layout */
    --container-max: 1400px;
    --container-padding: clamp(1rem, 3vw, 3rem);
    --section-padding: clamp(3rem, 6vw, 6rem);

    /* Header */
    --header-height-desktop: 100px;
    --header-height-mobile: 70px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;

    /* Boutons */
    --btn-radius: 25px;
    --btn-padding: 12px 32px;

    /* Top bar (country selector) */
    --topbar-height: 0px;

    /* Z-index */
    --z-topbar: 110;
    --z-header: 100;
    --z-mobile-menu: 200;
    --z-loader: 9999;
}


/* ============================================
   1b. FONT-FACE
   ============================================ */

@font-face {
    font-family: 'Brokman';
    src: url('../fonts/Brokman_W00_Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


/* ============================================
   2. RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    color: #333333;
    background-color: #FFFFFF;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Empecher le scroll quand le menu mobile est ouvert */
body.menu-open {
    overflow: hidden;
}

/* Empecher le scroll quand le loader est actif */
body.loader-active {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* Accessibilite : focus visible */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}


/* ============================================
   3. TYPOGRAPHIE
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    line-height: 1.2;
}

h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    text-transform: uppercase;
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--color-accent);
}

h3 {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: inherit;
}

p {
    margin-bottom: 1rem;
    color: #555555;
}

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

strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

blockquote {
    font-style: italic;
    padding-left: 1.5rem;
    border-left: 3px solid var(--color-accent);
    margin: 1.5rem 0;
    color: var(--color-text-secondary);
}


/* ============================================
   4. LAYOUT & GRILLE
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

/* Grille 2 colonnes generique */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* Grille pleine largeur sans conteneur */
.grid-2--full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}


/* ============================================
   5a. TOP BAR (COUNTRY SELECTOR)
   ============================================ */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--topbar-height);
    background-color: #2d5068;
    z-index: var(--z-topbar);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 clamp(1.5rem, 4vw, 5rem);
    display: none;
}

.topbar__lang-list {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.topbar__lang-item {
    display: flex;
    align-items: center;
}

.topbar__lang-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
    padding: 4px 0;
}

.topbar__lang-link:hover,
.topbar__lang-link:focus {
    color: #FFFFFF;
}

.topbar__lang-link.is-active {
    color: #FFFFFF;
    pointer-events: none;
}

.topbar__flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

.topbar__separator {
    width: 1px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.25);
}


/* ============================================
   5b. HEADER & NAVIGATION
   ============================================ */

.site-header {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    width: 100%;
    height: var(--header-height-mobile);
    background-color: var(--color-bg-header);
    z-index: var(--z-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 4vw, 5rem);
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Logo */
.site-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header__logo img {
    height: 40px;
    width: auto;
}

/* Navigation desktop */
.site-header__nav {
    display: none;
}

.site-header__nav ul,
.site-header__nav-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1.5rem, 3vw, 3rem);
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-header__nav li {
    text-align: center;
}

.site-header__nav a {
    font-family: 'Brokman', Verdana, Geneva, sans-serif;
    font-size: var(--font-size-nav);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    position: relative;
    padding-bottom: 10px;
    transition: opacity var(--transition-fast);
    display: inline;
}

.site-header__nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 0;
    background: linear-gradient(
        to right,
        var(--color-flag-blue) 0%,
        var(--color-flag-blue) 33.33%,
        var(--color-flag-white) 33.33%,
        var(--color-flag-white) 66.66%,
        var(--color-flag-red) 66.66%,
        var(--color-flag-red) 100%
    );
    transition: width 0.4s ease;
}

.site-header__nav a:hover,
.site-header__nav a:focus {
    opacity: 0.8;
}

/* Indicateur drapeau sous l'item actif (gere uniquement par JS) */
.site-header__nav a.is-active-section::after {
    width: 90px;
}

/* Header apres scroll */
.site-header--scrolled {
    background-color: rgba(56, 97, 123, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: calc(var(--z-mobile-menu) + 1);
    position: relative;
    background: none;
    border: none;
    padding: 0;
}

.hamburger__line {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: transform var(--transition-medium), opacity var(--transition-medium);
    transform-origin: center;
}

/* Hamburger ouvert -> croix */
.hamburger.is-active .hamburger__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ============================================
   6. MENU MOBILE
   ============================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-mobile-menu);
    background-color: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--header-height-mobile) + var(--topbar-height));
    transform: translateX(100%);
    transition: transform var(--transition-medium);
    overflow-y: auto;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

/* Bouton fermer (croix) dans le menu mobile */
.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: calc(var(--z-mobile-menu) + 2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mobile-menu__close::before,
.mobile-menu__close::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: background-color var(--transition-fast);
}

.mobile-menu__close::before {
    transform: rotate(45deg);
}

.mobile-menu__close::after {
    transform: rotate(-45deg);
}

.mobile-menu__close:hover::before,
.mobile-menu__close:hover::after {
    background-color: var(--color-accent);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-menu__home {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
}

.mobile-menu__home:hover,
.mobile-menu__home:focus {
    color: var(--color-accent);
}

.mobile-menu__home-icon {
    width: 32px;
    height: 32px;
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu__nav a {
    font-family: 'Brokman', Verdana, Geneva, sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    text-align: center;
    transition: color var(--transition-fast);
    position: relative;
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a:focus {
    color: var(--color-accent);
}

/* Indicateur actif du menu mobile (gere uniquement par JS) */
.mobile-menu__nav a.is-active-section {
    color: var(--color-accent);
}

.mobile-menu__nav a.is-active-section::after {
    content: '';
    display: block;
    margin: 10px auto 0;
    width: 90px;
    height: 3px;
    background: linear-gradient(
        to right,
        var(--color-flag-blue) 0%,
        var(--color-flag-blue) 33.33%,
        var(--color-flag-white) 33.33%,
        var(--color-flag-white) 66.66%,
        var(--color-flag-red) 66.66%,
        var(--color-flag-red) 100%
    );
}


/* ============================================
   7. LOADER / SPLASH SCREEN
   ============================================ */

.site-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-loader);
    background-color: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1.2s ease;
    pointer-events: all;
}

.site-loader.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.site-loader__content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-loader__logo {
    max-width: 90%;
    width: 600px;
    opacity: 0;
    animation: loaderFadeIn 1s ease 0.3s forwards;
}

@keyframes loaderFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* ============================================
   8. HERO
   ============================================ */

.hero {
    position: relative;
    padding-top: calc(var(--header-height-mobile) + var(--topbar-height));
    background-color: var(--color-bg-primary); /* fallback si pas d'image */
    overflow: hidden;
}

.hero__picture {
    display: block;
    width: 100%;
    line-height: 0;
}

.hero__img {
    display: block;
    width: 100%;
    height: auto;
}

.hero__title-wrapper {
    position: absolute;
    top: calc(var(--header-height-mobile) + var(--topbar-height));
    left: 0;
    right: 0;
    text-align: center;
    padding: 1.5rem var(--container-padding);
    z-index: 2;
}

.hero__title {
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 400;
    font-size: var(--font-size-h1);
    margin: 0;
    font-family: 'Brokman', sans-serif;
}

/* Logo en bas du hero */
.hero__logo-wrapper {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.hero__logo {
    max-width: 280px;
    width: 50%;
    height: auto;
}


/* ============================================
   8b. SECTION LOGO / TAGLINE
   ============================================ */

.section-logo {
    background-color: var(--color-bg-primary);
    padding: clamp(3rem, 6vw, 5rem) var(--container-padding);
    text-align: center;
    color: var(--color-text-primary);
}

.section-logo__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.section-logo__image {
    max-width: 400px;
    width: 80%;
}

.section-logo__img {
    width: 100%;
    height: auto;
}

.section-logo__tagline {
    font-size: var(--font-size-h2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
    margin: 0;
}


/* ============================================
   9. SECTIONS DE CONTENU
   ============================================ */

/* Offset pour les ancres avec header fixe */
.section-alternee[id] {
    scroll-margin-top: calc(var(--header-height-mobile) + var(--topbar-height));
}

/* Section alternee (home) */
.section-alternee {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.section-alternee__image {
    width: 100%;
    overflow: hidden;
    order: 2;
}

.section-alternee__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 300px;
}

/* Texte a gauche (defaut) = fond BLANC, texte SOMBRE */
.section-alternee__content {
    padding: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 1;
    background-color: #FFFFFF;
    color: var(--color-text-dark);
}

/* Texte a droite (reverse = image gauche) = fond GRIS #E2E1E1 */
.section-alternee--reverse .section-alternee__content {
    background-color: var(--color-bg-section-grey);
    color: var(--color-text-dark);
}

.section-alternee__title {
    color: var(--color-accent);
    font-size: var(--font-size-h2);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
}

.section-alternee__text {
    color: var(--color-text-body);
    margin-bottom: 1.5rem;
}

.section-alternee__text p {
    margin-bottom: 1rem;
}

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

.section-alternee__text h3 {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-alternee__text h3:first-child {
    margin-top: 0;
}

/* Separateur drapeau apres le titre */
.section-alternee__separator {
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-alternee__cta {
    margin-top: 1rem;
    margin: 0 auto;
}

/* Sous-titre (h3) dans les sections */
.section-alternee__subtitle {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
}

/* Liste a puces dans les sections */
.section-alternee__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.section-alternee__list-item {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-body);
    line-height: 1.6;
}

.section-alternee__list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

.section-alternee__list-item:last-child {
    margin-bottom: 0;
}

/* Images empilees (2 images dans une colonne) */
.section-alternee__image-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
}

.section-alternee__image-stack img {
    width: 100%;
    height: 50%;
    object-fit: cover;
    display: block;
    flex: 1;
}


/* --- Texte blanc UNIQUEMENT sur les sections a fond colore --- */
.section-logo,
.page-about__content,
.page-contact__form-wrapper,
.site-footer,
.mobile-menu {
    color: var(--color-text-primary);
}

.page-about__content p,
.page-contact__form-wrapper p,
.site-footer p {
    color: var(--color-text-secondary);
}

.page-about__content h3 {
    color: var(--color-text-primary);
}

/* Sections alternees : texte SOMBRE (fond blanc ou gris clair) */
.section-alternee__content p {
    color: var(--color-text-body);
}

.section-alternee__content h3 {
    color: var(--color-text-dark);
}

/* Page 404 sur fond blanc : texte sombre */
.page-404 {
    color: #333333;
}

.erreur-404__titre {
    color: #333333;
}

.erreur-404__message {
    color: #555555;
}


/* ============================================
   10. COMPOSANTS (boutons, drapeau, cards)
   ============================================ */

/* --- Bouton CTA --- */
.btn,
.btn-cta {
    display: inline-block;
    background-color: #38617B;
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--btn-padding);
    border-radius: var(--btn-radius);
    border: 2px solid #38617B;
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
}

.btn:hover,
.btn:focus,
.btn-cta:hover,
.btn-cta:focus {
    background-color: #2D5068;
    border-color: #2D5068;
}

/* Bouton rouge sur fond colore (QSN, contact, footer, sections bleues) */
.page-about__content .btn-cta,
.page-contact__form-wrapper .btn-cta,
.section-logo .btn-cta,
.mobile-menu .btn-cta {
    background-color: #CD1719;
    border-color: #CD1719;
}

.page-about__content .btn-cta:hover,
.page-about__content .btn-cta:focus,
.page-contact__form-wrapper .btn-cta:hover,
.page-contact__form-wrapper .btn-cta:focus,
.section-logo .btn-cta:hover,
.section-logo .btn-cta:focus,
.mobile-menu .btn-cta:hover,
.mobile-menu .btn-cta:focus {
    background-color: #B01315;
    border-color: #B01315;
}

/* --- Bouton outline (contact, envoyer) --- */
.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 40px;
    border-radius: 0;
    border: 2px solid var(--color-text-primary);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: var(--color-text-primary);
    color: var(--color-bg-primary);
}

/* --- Separateur drapeau francais --- */
.flag-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flag-separator--center {
    display: flex;
    justify-content: center;
}

.flag-separator__stripe {
    display: block;
    width: 50px;
    height: 6px;
}

.flag-separator__stripe--blue {
    background-color: var(--color-flag-blue);
}

.flag-separator__stripe--white {
    background-color: var(--color-flag-white);
}

.flag-separator__stripe--red {
    background-color: var(--color-flag-red);
}

/* Drapeau large (bas de page contact) */
.flag-separator--large .flag-separator__stripe {
width: 70px;
    height: 10px;
}

@media (max-width: 767px) {
    .flag-separator--large .flag-separator__stripe {
        width: 40px;
        height: 7px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .flag-separator--large .flag-separator__stripe {
    width: 50px;
        height: 10px;
    }
}

/* --- Cards generiques --- */
.card {
    background-color: var(--color-bg-header);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card__image {
    width: 100%;
    overflow: hidden;
}

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

.card__content {
    padding: 1.5rem;
}

.card__title {
    font-size: var(--font-size-h3);
    margin-bottom: 0.5rem;
}

.card__text {
    color: var(--color-text-secondary);
    font-size: var(--font-size-body);
}


/* ============================================
   11. PAGE QUI SOMMES-NOUS
   ============================================ */

.page-about {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: calc(100vh - var(--header-height-mobile) - var(--topbar-height));
    background-color: var(--color-bg-primary);
}

.page-about__image {
    width: 100%;
    overflow: hidden;
    order: 1;
}

.page-about__image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-about__content {
    padding: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 2;
    color: var(--color-text-primary);
    padding-top: 10px !important;
}

.page-about__title {
    color: var(--color-text-primary); /* BLANC - conforme maquette QSN */
    font-size: clamp(1.4rem, 2.1vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    text-align: center;
}

.page-about__separator {
    margin: 0 auto;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
}

.page-about__text {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.page-about__text p {
    margin-bottom: 1rem;
}

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

.page-about__quote {
    font-style: italic;
    margin: .5rem 0;
    padding-left: 0;
    border-left: none;
    line-height: 1.8;
    margin-top: .5rem !important;
}

.page-about__subtitle {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.page-about__intro {
    margin-bottom: 1.5rem;
}

.page-about__values {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.page-about__value {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.page-about__value::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

.page-about__value:last-child {
    margin-bottom: 0;
}

.page-about__value-keyword {
    font-weight: 700;
    color: var(--color-text-primary);
}

.page-about__quote--conclusion {
    margin-top: 1.5rem;
}

.page-about__signature {
    text-align: right;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: 1rem;
}

.page-about__cta {
    margin-top: 1.5rem;
    margin: 0 auto;
}


/* ============================================
   12. PAGE CONTACT & FORMULAIRE
   ============================================ */

.page-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: calc(100vh - var(--header-height-mobile) - var(--topbar-height));
    background-color: var(--color-bg-primary);
}

.page-contact__form-wrapper {
    padding: clamp(2rem, 4vw, 3rem);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    order: 1;
}

.page-contact__image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    order: 2;
    min-height: 250px;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    background-position: 30% 80%;
}

.page-contact__image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, var(--color-bg-primary) 0%, transparent 70%);
    pointer-events: none;
}

.page-contact__logo-overlay {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 600px;
    opacity: 0.8;
    pointer-events: none;
    text-align: center;
    z-index: 2;
}

/* Titre formulaire */
.page-contact__title {
    color: white;
    font-size: var(--font-size-h2);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
}

.page-contact__separator {
    margin-bottom: 2rem;
    text-align: center;
}

/* Formulaire */
.form-contact {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-contact__group {
    display: flex;
    flex-direction: column;
}

.form-contact__label {
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: var(--font-size-body);
    margin-bottom: 0.5rem;
}

.form-contact__input,
.form-contact__textarea {
    width: 100%;
    background-color: #FFFFFF;
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: var(--font-family);
    color: #333333;
    border-radius: 4px;
    transition: box-shadow var(--transition-fast);
}

.form-contact__input {
    height: 48px;
}

.form-contact__textarea {
    min-height: 200px;
    resize: vertical;
}

.form-contact__input::placeholder,
.form-contact__textarea::placeholder {
    color: #999999;
}

.form-contact__input:focus,
.form-contact__textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.3);
}

/* Ligne double (nom / prenom, etc.) */
.form-contact__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

/* reCAPTCHA */
.form-contact__recaptcha {
    margin: 1rem 0;
}

/* Bouton envoyer */
.form-contact__submit {
    align-self: center;
    margin-top: 0.5rem;
}

/* Texte RGPD */
.form-contact__rgpd {
    font-size: var(--font-size-small);
    color: var(--color-text-rgpd);
    line-height: 1.5;
    margin-top: 0.5rem;
}

.form-contact__rgpd a {
    color: var(--color-text-rgpd);
    text-decoration: underline;
}

.form-contact__rgpd a:hover {
    color: var(--color-text-primary);
}

/* Messages de statut du formulaire */
.form-contact__message {
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: var(--font-size-body);
    line-height: 1.5;
}

.form-contact__message p {
    margin: 0;
    color: inherit;
}

.form-contact__message--success {
    background-color: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.4);
    color: #2ecc71;
}

.form-contact__message--error {
    background-color: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #e74c3c;
}

/* Etat d'erreur sur les champs */
.form-contact__input--error,
.form-contact__textarea--error,
.champ--erreur {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.4);
}

/* Etat valide sur les champs */
.champ--valide {
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.3);
}

/* Message d'erreur inline sous les champs */
.champ-erreur-message {
    display: block;
    color: #e74c3c;
    font-size: var(--font-size-small);
    margin-top: 0.35rem;
    line-height: 1.4;
}

/* reCAPTCHA en erreur */
.recaptcha--erreur {
    border: 2px solid #e74c3c;
    border-radius: 4px;
    padding: 2px;
}

/* Tagline dans la colonne visuelle */
.page-contact__visual-tagline {
    font-size: var(--font-size-h3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
    text-align: center;
    margin-top: 1.5rem;
}

/* Logo dans la colonne visuelle */
.page-contact__visual-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}


/* ============================================
   13. FOOTER
   ============================================ */

.site-footer {
    background-color: var(--color-bg-footer);
    padding: 2rem var(--container-padding);
    text-align: center;
    color: var(--color-text-footer);
}

.site-footer__content {
    max-width: var(--container-max);
    margin: 0 auto;
}

.site-footer__text {
    font-size: var(--font-size-small);
    color: var(--color-text-footer);
    line-height: 1.6;
}

.site-footer__links {
    display: inline;
}

.site-footer__link {
    color: var(--color-text-footer);
    transition: color var(--transition-fast);
}

.site-footer__link:hover,
.site-footer__link:focus {
    color: var(--color-text-primary);
}

.site-footer__separator {
    margin: 0 0.25rem;
    color: var(--color-text-footer);
}


/* ============================================
   13b. PAGE 404
   ============================================ */

.page-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height-mobile) - var(--topbar-height));
}

.erreur-404 {
    text-align: center;
    padding: clamp(2rem, 6vw, 5rem) var(--container-padding);
}

.erreur-404__code {
    display: block;
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.erreur-404__titre {
    font-size: var(--font-size-h1);
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.erreur-404__message {
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.erreur-404__bouton {
    margin-top: 1rem;
}

@media (min-width: 1024px) {
    .page-404 {
        min-height: calc(100vh - var(--header-height-desktop) - var(--topbar-height));
    }
}


/* ============================================
   14. UTILITAIRES
   ============================================ */

/* Visually hidden (accessible) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Texte */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.text-bold { font-weight: 700; }
.text-white { color: var(--color-text-primary); }
.text-accent { color: var(--color-accent); }
.text-secondary { color: var(--color-text-secondary); }

/* Espacement */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.pt-header { padding-top: calc(var(--header-height-mobile) + var(--topbar-height)); }

/* Affichage */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flex utilitaires */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* Image cover */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Largeurs */
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Overflow */
.overflow-hidden { overflow: hidden; }


/* ============================================
   15. RESPONSIVE TABLETTE (min-width: 768px)
   ============================================ */

@media (min-width: 768px) {

    /* Header */
    .site-header__logo img {
        height: 30px;
    }

    /* Hero */
    .hero__title {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .hero__logo {
        max-width: 350px;
        width: 40%;
    }

    /* Formulaire : lignes doubles */
    .form-contact__row {
        grid-template-columns: 1fr 1fr;
    }

    /* Page contact : grille */
    .page-contact__form-wrapper {
        padding: clamp(2.5rem, 5vw, 4rem);
    }

    .page-contact__image-wrapper {
        min-height: 350px;
    }

    /* Section logo : agrandir */
    .section-logo__image {
        max-width: 500px;
        width: 60%;
    }

    .section-logo__tagline {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }

    /* Sections alternees : ameliorer l'image */
    .section-alternee__image img {
        min-height: 400px;
    }

    /* Page about : image sans crop */
    .page-about__image img {
        height: auto;
    }
}


/* ============================================
   16. RESPONSIVE DESKTOP (min-width: 1024px)
   ============================================ */

@media (min-width: 1024px) {

    /* Header desktop */
    .site-header {
        height: var(--header-height-desktop);
    }

    .site-header__logo img {
        height: 40px;
    }

    /* Afficher navigation desktop, masquer hamburger */
    .site-header__nav {
        display: block;
        padding: 20px;
        line-height: normal;
    }
    .hamburger {
        display: none;
    }

    /* Masquer le menu mobile (securite) */
    .mobile-menu {
        display: none;
    }

    /* Hero */
    .hero {
        padding-top: calc(var(--header-height-desktop) + var(--topbar-height));
    }

    .hero__title-wrapper {
        top: calc(var(--header-height-desktop) + var(--topbar-height));
        padding: 2rem var(--container-padding);
    }

    .hero__logo {
        max-width: 850px;
        width: 30%;
    }

    .hero__logo-wrapper {
        bottom: 2rem;
    }

    /* Offset ancres desktop */
    .section-alternee[id] {
        scroll-margin-top: calc(var(--header-height-desktop) + var(--topbar-height));
    }

    /* Padding-top header utilitaire */
    .pt-header {
        padding-top: calc(var(--header-height-desktop) + var(--topbar-height));
    }

    /* Sections alternees : 2 colonnes */
    .section-alternee {
        grid-template-columns: 1fr 1fr;
    }

    .section-alternee__image {
        order: unset;
    }

    .section-alternee__content {
        order: unset;
        padding: clamp(2.5rem, 4vw, 4rem);
    }

    .section-alternee__image img {
        min-height: unset;
        height: 100%;
    }

    /* Sections paires : inverser (image gauche, texte droite) */
    .section-alternee--reverse .section-alternee__image {
        order: 1;
    }

    .section-alternee--reverse .section-alternee__content {
        order: 2;
    }

    /* Sections impaires : texte gauche, image droite (defaut) */
    .section-alternee:not(.section-alternee--reverse) .section-alternee__content {
        order: 1;
    }

    .section-alternee:not(.section-alternee--reverse) .section-alternee__image {
        order: 2;
    }

    /* Page Qui sommes-nous : 2 colonnes */
    .page-about {
        grid-template-columns: 1fr 1fr;
        min-height: calc(100vh - var(--header-height-desktop) - var(--topbar-height));
    }

    .page-about__image {
        order: 1;
    }

    .page-about__image img {
        height: auto;
    }

    .page-about__content {
        order: 2;
        padding: clamp(3rem, 5vw, 5rem);
    }

    /* Page Contact : 2 colonnes ~55/45 */
    .page-contact {
        grid-template-columns: 55fr 45fr;
        min-height: calc(100vh - var(--header-height-desktop) - var(--topbar-height));
    }

    .page-contact__form-wrapper {
        order: 1;
        padding: clamp(3rem, 5vw, 5rem);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .page-contact__image-wrapper {
        order: 2;
    }

    .page-contact__image-wrapper {
        min-height: 100vh;
    }

    /* Footer */
    .site-footer {
        padding: 2rem var(--container-padding);
    }
}


/* ============================================
   16b. RESPONSIVE NAV (1024px - 1479px)
   ============================================ */

@media (min-width: 1024px) and (max-width: 1516px) {

    .site-header__logo img {
        height: 28px;
    }

    .site-header__nav {
        padding: 20px 30px;
        line-height: 1;
    }

    .site-header__nav a {
        font-size: 0.9rem;
    }
}

/* Centrer la navigation a partir de 1261px */
@media (min-width: 1261px) {
    .site-header__nav ul,
    .site-header__nav-list {
        justify-content: center;
    }
}

@media (min-width: 1517px) and (max-width: 1919px) {

    .site-header__logo img {
        height: 32px;
    }

    .site-header__nav {
        padding: 20px 30px;
        line-height: 1;
    }

    .site-header__nav a {
        font-size: 1rem;
    }
}


/* ============================================
   17. RESPONSIVE LARGE (min-width: 1440px)
   ============================================ */

@media (min-width: 1440px) {

    /* Header */
    .site-header__logo img {
        height: 40px;
    }

    .site-header__nav ul {
        gap: 2.5rem;
    }

    /* Sections alternees : padding plus genereux */
    .section-alternee__content {
        padding: 4rem 5rem;
    }

    /* Page about : padding genereux */
    .page-about__content {
        padding: 5rem 6rem;
    }

    /* Page contact : padding genereux */
    .page-contact__form-wrapper {
        padding: 5rem 6rem;
    }
}


/* ============================================
   18. ANIMATIONS
   ============================================ */

/* --- Fade in depuis le bas --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Fade in depuis la gauche --- */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Fade in depuis la droite --- */
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Scale in --- */
.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Delais d'animation --- */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- Animations keyframes additionnelles --- */

/* Pulse subtil pour les CTA */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Slide down pour les elements du header */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   18b. BLOCS FLEXIBLE CONTENT
   ============================================ */

/* --- Bloc Texte seul --- */


.bloc-texte-seul__titre {
    font-size: var(--font-size-h2);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.bloc-texte-seul__separator {
    margin-bottom: 1.5rem;
}

.bloc-texte-seul__contenu {
    line-height: var(--line-height-body);
}

.bloc-texte-seul__contenu p {
    margin-bottom: 1rem;
}

.bloc-texte-seul__contenu p:last-child {
    margin-bottom: 0;
}

.bloc-texte-seul--centree .bloc-texte-seul__titre,
.bloc-texte-seul--centree .bloc-texte-seul__separator,
.bloc-texte-seul--centree .bloc-texte-seul__contenu {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bloc-texte-seul--centree .bloc-texte-seul__titre {
    text-align: center;
}

.bloc-texte-seul--centree .bloc-texte-seul__separator {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* --- Bloc Citation --- */
.bloc-citation {
    background-color: var(--color-bg-primary);
}

.bloc-citation--fonce {
    background-color: var(--color-bg-header);
}

.bloc-citation__blockquote {
    border-left: 4px solid var(--color-accent);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
    margin: 0;
    font-style: italic;
}

.bloc-citation__texte {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.bloc-citation__auteur {
    text-align: right;
}

.bloc-citation__auteur cite {
    font-weight: 700;
    color: var(--color-text-primary);
    font-style: normal;
}

/* --- Bloc Appel a l'action --- */
.bloc-appel-action {
    background-color: var(--color-bg-primary);
}

.bloc-appel-action--fonce {
    background-color: var(--color-bg-header);
}

.bloc-appel-action__titre {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.bloc-appel-action__separator {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.bloc-appel-action__description {
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.bloc-appel-action__cta {
    margin-top: 0.5rem;
}

/* --- Bloc Galerie d'images --- */
.bloc-galerie {
    background-color: var(--color-bg-primary);
}

.bloc-galerie__titre {
    font-size: var(--font-size-h2);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.bloc-galerie__separator {
    margin-bottom: 1.5rem;
}

.bloc-galerie__grid {
    display: grid;
    gap: clamp(0.5rem, 1.5vw, 1rem);
}

.bloc-galerie__grid--2-cols {
    grid-template-columns: repeat(1, 1fr);
}

.bloc-galerie__grid--3-cols {
    grid-template-columns: repeat(1, 1fr);
}

.bloc-galerie__grid--4-cols {
    grid-template-columns: repeat(2, 1fr);
}

.bloc-galerie__item {
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
}

.bloc-galerie__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-medium);
}

.bloc-galerie__item:hover .bloc-galerie__img {
    transform: scale(1.03);
}

/* --- Bloc Liste de valeurs --- */
.bloc-liste-valeurs {
    background-color: var(--color-bg-primary);
}

.bloc-liste-valeurs__titre {
    font-size: var(--font-size-h2);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.bloc-liste-valeurs__separator {
    margin-bottom: 1.5rem;
}

/* Responsive tablette : galerie */
@media (min-width: 768px) {
    .bloc-galerie__grid--2-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .bloc-galerie__grid--3-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .bloc-galerie__grid--4-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .bloc-galerie__img {
        height: 300px;
    }
}

/* Responsive desktop : galerie */
@media (min-width: 1024px) {
    .bloc-galerie__grid--2-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .bloc-galerie__grid--3-cols {
        grid-template-columns: repeat(3, 1fr);
    }

    .bloc-galerie__grid--4-cols {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* --- Preference utilisateur : animations reduites --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in,
    .fade-in-left,
    .fade-in-right,
    .scale-in {
        opacity: 1;
        transform: none;
    }

    .site-loader__logo {
        opacity: 1;
        animation: none;
    }

    .mobile-menu {
        transition: none;
    }
}

.cmplz-cookiebanner{
    z-index: 50!important;
}