/* ==========================================================================
   Trans Favo - feuille de style principale
   Reproduit le thème WordPress d'origine (Vamtam + Beaver Builder).
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
    --orange: #f89924;          /* couleur principale */
    --orange-dark: #e0851a;
    --gradient-start: #ef3b2c;  /* dégradés rouge-orange (bandeaux, badges, icônes) */
    --gradient-end: #ea9c00;
    --red: #ff3514;             /* lien de menu actif */
    --link-hover: #ed1d4c;
    --navy: #06163a;            /* titres */
    --text: #3f485d;            /* texte courant */
    --line: #ededed;
    --grey-bg: #f6f6f6;
    --footer-bg: #f8f8f8;
    --field-bg: #ebeced;
    --cream: #fff9f1;
    --brown: #905808;

    --font-title: 'Cabin', Arial, sans-serif;
    --font-text: 'Open Sans', Arial, sans-serif;

    --container: 1260px;
    --gutter: 20px;
    --ease: cubic-bezier(.25, .46, .45, .94);
}

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

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

body {
    margin: 0;
    font-family: var(--font-text);
    font-size: 14px;
    line-height: 1.57;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Les éléments qui glissent depuis les côtés (animations au défilement) ne doivent pas élargir la page,
   y compris sur mobile où le réglage du body est souvent ignoré */
.site-main { overflow-x: hidden; }
@supports (overflow-x: clip) {
    .site-main { overflow-x: clip; }
}

img,
svg { max-width: 100%; height: auto; vertical-align: middle; }
img { border: 0; }

a {
    color: #000;
    text-decoration: none;
    transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
a:hover,
a:focus-visible { color: var(--link-hover); }

p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .3em;
    font-family: var(--font-title);
    color: var(--navy);
}
h1 { font-size: 60px; line-height: 1.1; font-weight: 700; }
h2 { font-size: 44px; line-height: 1.23; font-weight: 400; }
h3 { font-size: 26px; line-height: 1.38; font-weight: 500; }
h4 { font-size: 22px; line-height: 1.36; font-weight: 400; }
h5 { font-size: 18px; line-height: 1.44; font-weight: 500; }
h6 { font-size: 14px; line-height: 1.43; font-weight: 400; color: #68696c; }
h1 b, h2 b, h3 b, h4 b, h5 b,
h1 strong, h2 strong, h3 strong, h4 strong, h5 strong { font-weight: 700; }

ul, ol { margin: 0 0 1em; padding-left: 21px; }
li { margin: 0; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
}
.container.narrow { max-width: 820px; }
.text-center { text-align: center; }
.lead { font-size: 18px; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 10px; top: -60px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--navy);
    color: #fff;
}
.skip-link:focus { top: 10px; color: #fff; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.icon { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; }

/* ---------- Boutons : forme du logo (encoche à gauche, pointe à droite) ----------
 * La forme est un masque en trois morceaux (encoche, centre, pointe) : l'angle reste identique quelle que soit
 * la largeur du bouton. Les boutons « contour » dessinent leur bordure avec les mêmes tracés.
 * Un masque supprimant l'ombre et le contour de focus, le focus clavier est signalé par un soulignement.
 */
:root {
    --btn-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 48' preserveAspectRatio='none'%3E%3Cpath d='M14,0 H6 Q0,0 2.57,5.42 L9.68,20.39 Q11.4,24 9.68,27.61 L2.57,42.58 Q0,48 6,48 H14 Z' fill='black'/%3E%3C/svg%3E");
    --btn-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 48' preserveAspectRatio='none'%3E%3Cpath d='M0,0 Q5,0 6.76,4.68 L12.6,20.26 Q14,24 12.6,27.74 L6.76,43.32 Q5,48 0,48 Z' fill='black'/%3E%3C/svg%3E");
    --btn-line-orange-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 48' preserveAspectRatio='none'%3E%3Cpath d='M14,0 H6 Q0,0 2.57,5.42 L9.68,20.39 Q11.4,24 9.68,27.61 L2.57,42.58 Q0,48 6,48 H14' fill='none' stroke='%23f89924' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    --btn-line-orange-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 48' preserveAspectRatio='none'%3E%3Cpath d='M0,0 Q5,0 6.76,4.68 L12.6,20.26 Q14,24 12.6,27.74 L6.76,43.32 Q5,48 0,48' fill='none' stroke='%23f89924' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    --btn-line-white-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 48' preserveAspectRatio='none'%3E%3Cpath d='M14,0 H6 Q0,0 2.57,5.42 L9.68,20.39 Q11.4,24 9.68,27.61 L2.57,42.58 Q0,48 6,48 H14' fill='none' stroke='%23ffffff' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    --btn-line-white-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 48' preserveAspectRatio='none'%3E%3Cpath d='M0,0 Q5,0 6.76,4.68 L12.6,20.26 Q14,24 12.6,27.74 L6.76,43.32 Q5,48 0,48' fill='none' stroke='%23ffffff' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 34px;
    font-family: var(--font-text);
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    text-align: center;
    -webkit-mask:
        var(--btn-left) left center / 14px 100% no-repeat,
        linear-gradient(#000 0 0) center / calc(100% - 26px) 100% no-repeat,
        var(--btn-right) right center / 14px 100% no-repeat;
    mask:
        var(--btn-left) left center / 14px 100% no-repeat,
        linear-gradient(#000 0 0) center / calc(100% - 26px) 100% no-repeat,
        var(--btn-right) right center / 14px 100% no-repeat;
}
.btn:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 4px; }
.btn .icon { width: 18px; height: 18px; }

/* Contour orange : bordure dessinée en arrière-plan, remplissage orange au survol */
.btn-outline {
    color: var(--orange);
    background:
        var(--btn-line-orange-left) left center / 14px 100% no-repeat,
        linear-gradient(var(--orange) 0 0) center top / calc(100% - 26px) 1px no-repeat,
        linear-gradient(var(--orange) 0 0) center bottom / calc(100% - 26px) 1px no-repeat,
        var(--btn-line-orange-right) right center / 14px 100% no-repeat;
    background-color: rgba(248, 153, 36, 0);
}
.btn-outline:hover,
.btn-outline:focus-visible { color: #fff; background-color: var(--orange); }

.btn-primary {
    color: #fff;
    background: var(--orange);
}
.btn-primary:hover,
.btn-primary:focus-visible { color: #fff; background: #000; }

.btn-white {
    color: var(--orange);
    background: #fff;
    padding: 16px 36px;
}
.btn-white:hover,
.btn-white:focus-visible { color: var(--orange); background: var(--cream); transform: translateY(-1px); }

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header {
    position: relative;
    z-index: 100;
    background: #fff;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 71px;
}

.site-logo { display: block; padding: 12px 0 11px; }
.site-logo img { display: block; width: 250px; height: 48px; }

.header-cta { padding: 16px 36px; }

.header-nav {
    border-top: 1px solid var(--line);
    background: #fff;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-item > a {
    position: relative;
    display: block;
    padding-right: 28px;
    font-size: 16px;
    line-height: 60px;
    color: #000;
}
.menu-item > a::after {
    content: '';
    position: absolute;
    left: 0; right: 28px; bottom: 0;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s var(--ease);
}
.menu-item > a:focus-visible,
.menu-item.is-current > a { color: var(--red); }
.menu-item.is-current > a::after { transform: scaleX(1); }
/* Survol réservé aux appareils avec souris : sur écran tactile, il resterait affiché après un toucher */
@media (hover: hover) {
    .menu-item > a:hover { color: var(--red); }
    .menu-item > a:hover::after { transform: scaleX(1); }
}

.menu-item-mobile-cta { display: none; }

/* Sous-menu (Logistique) */
.menu-item.has-children { position: relative; }
.menu-item.has-children > a { padding-right: 46px; }
.menu-item.has-children > a::after { right: 46px; }
.menu-item.has-children > a::before {
    content: '';
    position: absolute;
    right: 30px;
    top: 50%;
    width: 7px; height: 7px;
    margin-top: -6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s var(--ease);
}
.menu-item.has-children:hover > a::before,
.menu-item.has-children:focus-within > a::before { transform: rotate(225deg) translate(-3px, -3px); }

.submenu {
    position: absolute;
    top: 100%;
    left: -20px;
    z-index: 110;
    min-width: 240px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    background: #fff;
    border-top: 3px solid var(--orange);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.menu-item.has-children:hover > .submenu,
.menu-item.has-children:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s;
}
.submenu-item-overview { display: none; } /* « Vue d'ensemble » : mobile uniquement */
.submenu a {
    display: block;
    padding: 9px 20px;
    font-size: 15px;
    line-height: 1.4;
    color: #000;
}
.submenu a:hover,
.submenu a:focus-visible,
.submenu .is-current a { color: var(--red); }

.menu-lang {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto; /* drapeaux poussés à droite du menu */
    padding-left: 12px;
}
.menu-item.menu-lang > a { display: block; padding-right: 0; line-height: 0; }
.menu-lang a::after { display: none; }
.menu-lang img { width: 32px; height: 32px; }
.menu-lang a:hover img { transform: scale(1.08); }
.menu-lang img { transition: transform .2s var(--ease); }

/* Bouton menu mobile */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--navy);
}
.nav-toggle-box { position: relative; display: block; width: 26px; height: 18px; }
.nav-toggle-inner,
.nav-toggle-inner::before,
.nav-toggle-inner::after {
    position: absolute;
    left: 0;
    width: 26px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s, top .25s var(--ease);
}
.nav-toggle-inner { top: 8px; }
.nav-toggle-inner::before { content: ''; top: -8px; }
.nav-toggle-inner::after { content: ''; top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-inner { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-inner::before { top: 0; opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-inner::after { top: 0; transform: rotate(-90deg); }

/* ==========================================================================
   Bandeau-titre des pages intérieures
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; }

.page-hero--image {
    background-color: var(--orange);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
}
.page-hero--image .page-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: calc(50vh + 65px);
    max-height: 525px;
    min-height: 365px;
    padding-top: 40px;
    padding-bottom: 25px;
    will-change: transform, opacity;
}
/* Voile orange identique à celui intégré aux photos d'origine (pour les photos brutes) */
.page-hero--tinted::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgb(248, 151, 40) 0%,
        rgba(246, 142, 48, .95) 12%,
        rgba(238, 118, 72, .78) 32%,
        rgba(232, 100, 105, .55) 55%,
        rgba(226, 92, 135, .3) 78%,
        rgba(220, 90, 150, .08) 100%);
    pointer-events: none;
}
.page-hero-fade {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    animation: hero-fade 2s ease-in-out;
    pointer-events: none;
}
@keyframes hero-fade { from { opacity: .9; } to { opacity: 0; } }

.page-title {
    margin: 0;
    color: #fff;
    font-size: 60px;
    line-height: 1.1;
    font-weight: 700;
    overflow-wrap: break-word;
}
.page-title-line {
    width: 100px;
    height: 0;
    margin: 25px 0;
    border-top: 5px solid #fff;
    opacity: .7;
}

.page-hero--gradient { background-image: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%); }
.page-hero--gradient .page-hero-inner { padding-top: 75px; padding-bottom: 73px; }

.page-hero--plain .page-hero-inner {
    padding: 40px 0 25px;
    border-bottom: 1px solid var(--line);
}
.page-hero--plain .page-title { color: var(--navy); }
.page-hero--plain .page-title-line { border-top-color: var(--orange); opacity: 1; margin-bottom: 0; }

/* ==========================================================================
   Accueil : slider
   ========================================================================== */
.hero-slider {
    position: relative;
    height: clamp(460px, 47vw, 666px);
    overflow: hidden;
    background: var(--orange);
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility 0s linear .6s;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transition: opacity .6s ease, visibility 0s;
}
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transform-origin: center top;
    will-change: transform;
}
.hero-slide.is-active .hero-slide-bg { animation: kenburns 30s linear forwards; }
@keyframes kenburns {
    from { transform: scale(1) translateY(0); }
    to   { transform: scale(1.15) translateY(-8%); }
}

.hero-slide-content {
    position: absolute;
    left: 0; right: 0;
    bottom: 112px;
    z-index: 2;
    padding: 0 var(--gutter);
}
.hero-slide-content .container { padding-left: 0; }

.hero-title {
    max-width: 600px;
    margin: 0 0 22px;
    font-family: var(--font-title);
    font-size: 80px;
    line-height: 90px;
    font-weight: 700;
    color: #fff;
}
/* Marge basse pour ne pas couper les jambages (g, p, q) ; compensée pour garder l'interligne */
.hero-title-mask { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.hero-title-mask > span { display: block; }

.hero-subtitle {
    margin: 0 0 35px;
    font-family: var(--font-title);
    font-size: 22px;
    line-height: 28px;
    color: #fff;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-title);
    font-size: 22px;
    line-height: 26px;
    font-weight: 700;
    color: #fff;
}
.hero-link img { width: 27px; height: 34px; }
.hero-link:hover { color: #fff; opacity: .85; }

.hero-slide--light .hero-title,
.hero-slide--light .hero-link,
.hero-slide--light .hero-link:hover { color: var(--orange); }
.hero-slide--light .hero-subtitle { color: #333; }

/* Points de navigation : position de la diapositive affichée */
.hero-dots {
    position: absolute;
    left: 0; right: 0;
    bottom: 35px;
    z-index: 3;
    display: flex;
    justify-content: flex-end; /* alignés à droite, sur le bord du contenu */
    gap: 12px;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    background: rgba(255, 255, 255, .55);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: width .4s ease, background-color .4s ease;
}
.hero-dots button:hover { background: #fff; }
.hero-dots button[aria-current="true"] { width: 34px; background: #fff; }

/* Voiles posés sur les photos brutes (les photos d'origine les ont déjà) */
.hero-slide-tint { position: absolute; inset: 0; pointer-events: none; }
.hero-slide-tint--orange {
    background: linear-gradient(90deg,
        rgb(248, 151, 40) 0%,
        rgba(246, 142, 48, .93) 18%,
        rgba(240, 125, 62, .72) 38%,
        rgba(234, 108, 90, .4) 62%,
        rgba(230, 100, 110, .12) 85%,
        rgba(230, 100, 110, 0) 100%);
}
.hero-slide-tint--light {
    background: linear-gradient(90deg,
        rgba(236, 236, 236, .97) 0%,
        rgba(236, 236, 236, .92) 28%,
        rgba(236, 236, 236, .6) 45%,
        rgba(236, 236, 236, 0) 62%);
}

/* Animations d'entrée des textes (rejouées à chaque affichage de diapositive) */
.hero-slide .hero-title-mask > span { transform: translateY(calc(100% + .16em)); }
.hero-slide .hero-subtitle { opacity: 0; }
.hero-slide .hero-link { opacity: 0; transform: translateY(-100%); }
.hero-slide.is-active .hero-title-mask > span { animation: rise 1s cubic-bezier(.45, 0, .55, 1) .8s forwards; }
.hero-slide.is-active .hero-subtitle { animation: fade-in 1s ease .97s forwards; }
.hero-slide.is-active .hero-link { animation: drop-in .7s ease 1.41s forwards; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes drop-in { to { opacity: 1; transform: translateY(0); } }

/* ---------- Accueil : barre d'informations ---------- */
.info-bar { background: var(--grey-bg); }
.info-bar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    min-height: 148px;
    gap: var(--gutter);
}
.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.info-item h5 { margin: 0; font-size: 18px; }
.info-item p { margin: 0; }
.info-item-text { max-width: 276px; }
.info-mail { color: inherit; }
.info-item .info-visual { flex-shrink: 0; }
.info-visual--support { width: 70px; }
.info-visual--map { width: 109px; }
.info-visual--msg { width: 60px; height: 60px; color: #e6e8eb; }
.info-item--msg { justify-content: flex-end; }


/* ---------- Accueil : services ---------- */
.home-services { padding: 90px 0 100px; }
.home-services h2 { margin: 0 0 70px; text-align: center; }

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 28px;
    padding: 0 15px;
    margin: 0;
    list-style: none;
}
.service-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 113px;
    padding: 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .1);
    font-family: var(--font-title);
    font-size: 22px;
    line-height: 1.2;
    color: #000;
}
.service-card .icon {
    width: auto;
    height: 50px;
    color: var(--orange);
}

/* Accueil : 5 domaines, deuxième rangée centrée */
.service-cards--domains {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.service-cards--domains .service-card { flex: 0 1 calc((100% - 56px) / 3); }

/* Page Logistique */
.domain-intro { padding: 80px 0 10px; }
.domain-intro h2 { margin: 0 0 20px; }
.domain-intro h4 { margin: 0; }
.home-services--logistique { padding-top: 60px; }

/* ==========================================================================
   Accueil : sections sous le slider
   ========================================================================== */
.kicker {
    margin: 0 0 12px;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
}
.kicker--light { color: #fff; opacity: .9; }

.section-head { max-width: 720px; margin: 0 auto 55px; text-align: center; }
.section-head h2 { margin: 0 0 14px; }
.section-head p:last-child { margin: 0; font-size: 17px; }

/* Présentation du groupe */
.home-intro { padding: 110px 0 70px; }
.home-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}
.home-intro-text h2 { margin: 0 0 22px; }
.home-intro-text .lead-text { margin-bottom: 16px; }
.home-intro-text > p:not(.kicker):not(.lead-text) { margin: 0 0 32px; }
.home-intro-media { position: relative; }
/* Photo découpée comme le logo : encoche à gauche, pointe à droite ; l'ombre suit la forme */
.home-intro-frame { position: relative; filter: drop-shadow(0 18px 28px rgba(6, 22, 58, .18)); }
.home-intro-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 75' preserveAspectRatio='none'%3E%3Cpolygon points='5,5 87,5 95,37.5 87,70 5,70 13,37.5' fill='white' stroke='white' stroke-width='10' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 75' preserveAspectRatio='none'%3E%3Cpolygon points='5,5 87,5 95,37.5 87,70 5,70 13,37.5' fill='white' stroke='white' stroke-width='10' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* Badge en flèche, posé au centre de l'encoche de la photo */
.home-intro-badge {
    position: absolute;
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(0 12px 22px rgba(234, 60, 30, .3));
}
.home-intro-badge-shape {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 360px;
    height: 96px; /* hauteur fixe : la pente de la flèche reste celle de la photo (8 pour 32,5) */
    padding: 0 34px 0 38px;
    color: #fff;
    background-image: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 96' preserveAspectRatio='none'%3E%3Cpolygon points='14,14 337,14 345.4,48 337,82 14,82 22.4,48' fill='white' stroke='white' stroke-width='28' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 96' preserveAspectRatio='none'%3E%3Cpolygon points='14,14 337,14 345.4,48 337,82 14,82 22.4,48' fill='white' stroke='white' stroke-width='28' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.home-intro-badge .icon { width: 34px; height: 34px; flex-shrink: 0; }
.home-intro-badge span { font-family: var(--font-title); font-size: 16px; line-height: 1.3; font-weight: 500; }

/* Chiffres clés : cartes à cheval entre la présentation et les domaines */
.home-figures { position: relative; z-index: 2; padding: 0; background: linear-gradient(180deg, #fff 50%, var(--grey-bg) 50%); }
.figures-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.figures-list li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(6, 22, 58, .1);
    transition: opacity .9s var(--ease), transform .5s var(--ease), box-shadow .3s var(--ease);
}
.figures-list li:hover { transform: translateY(-5px); box-shadow: 0 18px 46px rgba(6, 22, 58, .15); }
.figure-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: #fff;
    background-image: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(234, 60, 30, .25);
}
.figure-icon .icon { width: 30px; height: 30px; }
.figure-text { display: block; min-width: 0; }
.figure-text strong {
    display: block;
    font-family: var(--font-title);
    font-size: 34px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}
.figure-text strong small { font-size: 20px; font-weight: 700; color: var(--orange); }
.figure-text > span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: #68708a; }

/* Cartes des domaines : 2 grandes cartes puis 3 */
.home-domains { padding: 85px 0 100px; background: var(--grey-bg); }
.domain-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.domain-card { grid-column: span 2; }
.domain-card:nth-child(-n+2) { grid-column: span 3; }
.domain-card a {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 100%;
    min-height: 330px;
    overflow: hidden;
    color: #fff;
    border-radius: 18px;
    background: var(--navy);
    box-shadow: 0 10px 30px rgba(6, 22, 58, .12);
}
.domain-card:nth-child(-n+2) a { min-height: 380px; }
.domain-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}
.domain-card a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 22, 58, 0) 25%, rgba(6, 22, 58, .55) 55%, rgba(6, 22, 58, .92) 100%);
    transition: background-color .4s var(--ease);
}
.domain-card-body { position: relative; z-index: 1; display: block; padding: 28px 28px 26px; }
.domain-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    color: var(--orange);
    background: #fff;
    border-radius: 50%;
}
.domain-card-icon .icon { width: 30px; height: 30px; }
.domain-card-title { display: block; margin-bottom: 8px; font-family: var(--font-title); font-size: 26px; line-height: 1.2; font-weight: 700; }
.domain-card-text { display: block; max-width: 440px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .85); }
.domain-card-more {
    display: inline-flex;
    gap: 8px;
    margin-top: 16px;
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 700;
    color: var(--orange);
}
.domain-card-more span { transition: transform .3s var(--ease); }
.domain-card a:hover,
.domain-card a:focus-visible { color: #fff; }
.domain-card a:hover .domain-card-img,
.domain-card a:focus-visible .domain-card-img { transform: scale(1.07); }
.domain-card a:hover .domain-card-more span,
.domain-card a:focus-visible .domain-card-more span { transform: translateX(5px); }

/* Projet phare */
.home-project {
    position: relative;
    padding: 120px 0;
    color: #fff;
    background-color: var(--orange);
    background-position: center;
    background-size: cover;
}
.home-project::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgb(248, 151, 40) 0%,
        rgba(246, 142, 48, .94) 30%,
        rgba(240, 125, 62, .7) 55%,
        rgba(234, 108, 90, .25) 85%,
        rgba(230, 100, 110, .1) 100%);
}
.home-project-inner { position: relative; }
.home-project h2 { max-width: 620px; margin: 0 0 18px; color: #fff; }
.home-project-inner > p:not(.kicker) { max-width: 540px; margin: 0 0 26px; font-size: 18px; line-height: 1.6; }
.home-project-facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 34px; padding: 0; list-style: none; }
.home-project-facts li {
    padding: 10px 18px;
    font-size: 15px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 40px;
}
.home-project .btn-white { font-weight: 700; }
.home-project .btn-white .icon { width: 18px; height: 18px; }

/* Atouts */
.home-why { padding: 110px 0 100px; }
.why-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.why-list li {
    padding: 34px 28px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .07);
    transition: opacity .9s var(--ease), transform .5s var(--ease), box-shadow .3s var(--ease);
}
.why-list li:hover { transform: translateY(-5px); box-shadow: 0 14px 38px rgba(0, 0, 0, .12); }
.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 22px;
    color: var(--orange);
    background: var(--cream);
    border-radius: 16px;
}
.why-icon .icon { width: 34px; height: 34px; }
.why-list h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; font-weight: 700; }
.why-list p { margin: 0; font-size: 15px; line-height: 1.65; }


/* ==========================================================================
   Pages de domaine (Énergies renouvelables, Mines, Agroalimentaire, Industrie)
   ========================================================================== */
.lead-text {
    margin: 0 0 10px;
    font-family: var(--font-title);
    font-size: 22px;
    line-height: 1.45;
    color: var(--navy);
}

.key-figures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}
.key-figures li {
    padding: 28px 22px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .08);
}
.key-figures strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-title);
    font-size: 36px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--orange);
}
.key-figures span { display: block; font-size: 14px; line-height: 1.5; }

.check-list { margin: 0 0 10px; padding: 0; list-style: none; }
.check-list li {
    position: relative;
    padding: 10px 0 10px 34px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
}
.check-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 15px;
    width: 14px; height: 8px;
    border-left: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
    transform: rotate(-45deg);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}
.tag-list li {
    padding: 12px 24px;
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 500;
    color: var(--navy);
    background: var(--cream);
    border: 1px solid rgba(248, 153, 36, .35);
    border-radius: 40px;
}

.content-cta { margin-top: 30px; }

/* Encadré « Page en construction » */
.construction-notice {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0 0 35px;
    padding: 24px 28px;
    background: repeating-linear-gradient(-45deg, var(--cream) 0 18px, #fff 18px 36px);
    border: 2px dashed var(--orange);
    border-radius: 15px;
}
.construction-notice-icon { flex: 0 0 auto; width: 54px; height: 54px; color: var(--orange); }
.construction-notice p { margin: 0; font-size: 15px; line-height: 1.6; }
.construction-notice .construction-notice-title {
    margin-bottom: 4px;
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
}

/* Cartes de présentation (titre + texte) */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}
.feature-cards li {
    padding: 28px 26px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .08);
}
.feature-cards h4 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--navy);
}
.feature-cards p { margin: 0; font-size: 15px; line-height: 1.65; }

/* Étapes numérotées */
.steps { margin: 0 0 10px; padding: 0; list-style: none; counter-reset: step; }
.steps li {
    position: relative;
    padding: 0 0 26px 70px;
    counter-increment: step;
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    height: 46px;
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    line-height: 46px;
    text-align: center;
    color: #fff;
    background: var(--orange);
    border-radius: 50%;
}
.steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 52px;
    bottom: 6px;
    border-left: 2px dashed rgba(248, 153, 36, .45);
}
.steps h4 { margin: 0 0 6px; padding-top: 10px; font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--navy); }
.steps p { margin: 0; font-size: 15px; line-height: 1.65; }

/* Encadré d'appel à l'action en fin de page */
.cta-box {
    margin-top: 45px;
    padding: 35px 38px;
    background: var(--cream);
    border: 1px solid rgba(248, 153, 36, .35);
    border-radius: 15px;
}
.cta-box h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.35; font-weight: 500; }
.cta-box p { margin: 0 0 22px; }
.cta-box-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.service-card a:hover,
.service-card a:focus-visible {
    color: #000;
    transform: translateY(-4px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .14);
}

/* ==========================================================================
   Pages de service
   ========================================================================== */
.page-body { padding: 95px 0 90px; }

.service-layout {
    display: grid;
    grid-template-columns: minmax(0, 833fr) minmax(0, 367fr);
    column-gap: 60px;
    align-items: start;
}
.service-content { padding-top: 10px; }
.service-sidebar { padding-right: 40px; }

.entry-content > *:last-child { margin-bottom: 0; }
.entry-content ol,
.entry-content ul { margin-bottom: 21px; }

.section-title {
    margin: 30px 0 18px;
    font-size: 26px;
    line-height: 1.38;
    font-weight: 500;
}
.entry-content > .section-title:first-child { margin-top: 0; }

.media-grid {
    display: grid;
    gap: 30px 20px;
    margin: 40px 0 0;
}
.media-grid--2 { grid-template-columns: repeat(2, 1fr); }
.media-grid--3 { grid-template-columns: repeat(3, 1fr); }
.media-card { margin: 0; }
.media-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.media-title {
    margin: 0 0 18px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 500;
}
.media-title b { font-weight: 700; }

.service-after { margin-top: 70px; }
.service-after .media-grid { margin-top: 0; }

/* Barre latérale */
.advisor-box {
    margin-bottom: 35px;
    padding: 35px;
    background: var(--orange);
    border-radius: 10px;
    color: #fff;
}
.advisor-icon { width: 100px; height: 100px; color: #fff; margin-bottom: 26px; }
.advisor-title {
    margin: 0 0 31px;
    font-size: 26px;
    line-height: 1;
    font-weight: 500;
    color: #fff;
}
.advisor-title b { display: inline-block; margin-top: 2px; font-size: 39px; line-height: 1; color: #fff; }
.advisor-contact { margin: 0 0 34px; font-size: 16px; line-height: 1.57; color: #fff; }
.advisor-contact strong { color: var(--brown); }
.advisor-contact a { color: #fff; }
.advisor-contact a:hover { color: var(--navy); }

.services-box {
    padding: 35px;
    background: var(--grey-bg);
    border-radius: 10px;
}
.services-box-title {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1;
    font-weight: 500;
}
.services-box-title b { font-size: 36.4px; line-height: 1; }
.services-menu { margin: 0; padding: 0; list-style: none; }
.services-menu a {
    display: block;
    padding: 10px 10px 10px 0;
    font-size: 16px;
    line-height: 1.57;
    color: #000;
    border-bottom: 1px solid var(--line);
}
.services-menu a:hover { color: var(--orange); }
.services-menu .is-current a { color: var(--orange); font-weight: 700; }

/* ==========================================================================
   A propos
   ========================================================================== */
.about-intro { padding: 80px 0; text-align: center; }
.about-intro .container { max-width: 756px; }
.about-intro img { margin: 0 auto 25px; display: block; }
.about-intro h2 { margin: 13px 0; }
.about-intro h4 { margin: 7px 0 0; }

.about-dakar { padding: 80px 0 120px; background: var(--cream); }
.about-dakar-lead {
    max-width: 748px;
    margin: 13px auto 70px;
    text-align: center;
    font-size: 30px;
    line-height: 35px;
    font-weight: 400;
    color: var(--orange);
}
.about-dakar-lead strong { color: var(--orange); }
.about-dakar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    padding: 0 16px;
}
.about-dakar-grid img { display: block; width: 100%; height: auto; border: 1px solid rgba(144, 88, 8, .25); }
.about-dakar-grid h4 { margin: 7px 0 0; }
.about-dakar-grid h4 + h4 { margin-top: 42px; }

.about-values { padding: 120px 0; overflow: hidden; }
.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}
.value-item {
    position: relative;
    padding: 80px 10px 40px;
    isolation: isolate;
}
.value-item:nth-child(2) { margin-top: 100px; }
.value-item::before {
    content: attr(data-number);
    position: absolute;
    z-index: -1;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Montserrat', var(--font-title);
    font-size: 260px;
    line-height: 1;
    font-weight: 700;
    color: #f4f4f4;
}
.value-item h4 { margin: 0 0 10px; color: var(--orange); }
.value-item p { margin: 0 auto; max-width: 407px; }

/* ==========================================================================
   Formulaires (contact, cotation)
   ========================================================================== */
.form-section { padding: 70px 0 120px; }
.form-section .container.form-wide { max-width: 1114px; }

.form-heading { margin: 0 0 30px; font-size: 44px; line-height: 1.23; font-weight: 400; }
.form-heading b { font-weight: 700; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}
.form-grid--tight { gap: 18px 20px; }
.form-field { min-width: 0; }
.form-field--full { grid-column: 1 / -1; }

.form-field label,
.form-field legend {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text);
}
.required { color: #e80000; }

.input,
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 15px;
    font-family: var(--font-text);
    font-size: 14px;
    line-height: 1.57;
    color: #000;
    background: var(--field-bg);
    border: 1px solid var(--field-bg);
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s, background-color .2s;
}
.form-field select {
    padding-right: 40px;
    font-size: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 24px;
    cursor: pointer;
}
.form-field textarea { min-height: 200px; resize: vertical; }
.form-field textarea.textarea-tall { height: 100%; min-height: 224px; }
.form-field ::placeholder { color: #8b8f96; opacity: 1; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--orange);
    background-color: #fff;
}
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select,
.form-field.has-error .checkbox-group { border-color: #e80000; }

.checkbox-group {
    margin: 0;
    padding: 22px 25px 18px;
    background: var(--field-bg);
    border: 1px solid var(--field-bg);
    min-height: 224px;
}
.checkbox-group legend {
    float: left;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    color: #3f485d;
}
.checkbox-group legend + * { clear: both; }
.checkbox-group-label {
    margin: 12px 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--orange);
}
.form-field .checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    line-height: 26px;
    cursor: pointer;
}
.checkbox input { width: 13px; height: 13px; margin: 0; accent-color: var(--orange); }

.form-actions { margin-top: 30px; }
.form-actions--quote { margin-top: 70px; }
.form-actions .btn { padding: 15px 36px; }

.field-error { margin: 6px 0 0; font-size: 13px; color: #e80000; }

.form-alert {
    margin: 0 0 30px;
    padding: 16px 20px;
    border-left: 4px solid;
    font-size: 15px;
}
.form-alert--success { border-color: #2e9b5a; background: #eef8f1; color: #1d5e37; }
.form-alert--error { border-color: #e80000; background: #fdeeee; color: #8a1010; }

/* Confirmation d'envoi (remplace le formulaire) */
.form-success {
    max-width: 720px;
    margin: 0 auto;
    padding: 55px 40px 50px;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
    scroll-margin-top: 40px;
    outline: none;
}
.form-success-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 26px;
    padding: 14px;
    color: #22a45d;
    background: #e9f7ef;
    border-radius: 50%;
    animation: success-pop .7s cubic-bezier(.34, 1.56, .64, 1) both;
}
.form-success-icon path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: success-check .5s ease .45s forwards;
}
@keyframes success-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes success-check { to { stroke-dashoffset: 0; } }
.form-success-title { margin: 0 0 14px; font-size: 30px; line-height: 1.3; font-weight: 700; color: var(--navy); }
.form-success p { max-width: 520px; margin: 0 auto 12px; font-size: 17px; line-height: 1.6; }
.form-success .form-success-note { font-size: 14px; color: #7a8194; }
.form-success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* Pot de miel anti-spam : invisible pour les humains */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { margin-top: 21px; }

/* Bandeau d'appel à l'action */
.footer-cta {
    padding: 55px 0;
    color: #fff;
    background-image: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}
.footer-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.footer-cta-title {
    margin: 0 0 6px;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 500;
    color: #fff;
}
.footer-cta-title b { font-weight: 700; }
.footer-cta p { margin: 0; font-size: 17px; opacity: .92; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; flex-shrink: 0; }
.footer-cta .btn-white { font-weight: 700; }
.footer-cta .btn-white .icon { width: 18px; height: 18px; }
.btn-ghost {
    padding: 16px 36px;
    color: #fff;
    background:
        var(--btn-line-white-left) left center / 14px 100% no-repeat,
        linear-gradient(#fff 0 0) center top / calc(100% - 26px) 1px no-repeat,
        linear-gradient(#fff 0 0) center bottom / calc(100% - 26px) 1px no-repeat,
        var(--btn-line-white-right) right center / 14px 100% no-repeat;
    background-color: rgba(255, 255, 255, 0);
}
.btn-ghost:hover,
.btn-ghost:focus-visible { color: var(--orange); background-color: #fff; }

/* Bloc principal */
.footer-main {
    padding: 75px 0 45px;
    color: var(--text);
    background: var(--footer-bg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-logo { display: inline-block; margin-bottom: 22px; }
.footer-logo img { display: block; width: 210px; height: auto; }
.footer-about p { max-width: 360px; margin: 0 0 22px; font-size: 15px; line-height: 1.7; }

.footer-contact { margin: 0; padding: 0; list-style: none; }
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 15px;
}
.footer-contact .icon { width: 18px; height: 18px; color: var(--orange); }
.footer-contact a { color: var(--navy); }
.footer-contact a:hover { color: var(--orange); }

.footer-title {
    position: relative;
    margin: 6px 0 24px;
    padding-bottom: 14px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--navy);
}
.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    border-top: 3px solid var(--orange);
}
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 11px; }
.footer-links a {
    display: inline-block;
    font-size: 15px;
    color: var(--text);
    transition: color .2s ease, transform .2s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--orange); transform: translateX(4px); }

/* Partenaires : carte blanche */
.footer-partners {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 35px;
    margin-top: 55px;
    padding: 26px 34px;
    color: var(--text);
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .06);
}
.footer-partners-logos { display: block; width: 330px; height: auto; }
.footer-partners p { margin: 0; font-size: 14px; line-height: 1.6; }
.footer-dangerous { display: block; width: 125px; height: auto; }

/* Barre du bas */
.footer-bottom {
    padding: 22px 0;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    border-top: 1px solid var(--line);
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.footer-bottom p { margin: 0; }
.footer-bottom strong { color: var(--navy); }
.footer-bottom a { color: var(--navy); }
.footer-bottom a:hover { color: var(--orange); }

/* Bouton retour en haut */
.scroll-top {
    position: fixed;
    right: 40px;
    bottom: 22px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    color: var(--navy);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s, visibility .3s, transform .3s var(--ease), color .2s, background-color .2s;
}
.scroll-top .icon { width: 22px; height: 22px; }
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { color: #fff; background: var(--orange); }

/* ==========================================================================
   Animations au défilement (rejouées à chaque entrée dans l'écran)
   ========================================================================== */
[data-animate] {
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    will-change: opacity, transform;
}
.js [data-animate]:not(.is-inview) { opacity: 0; }
.js [data-animate="from-bottom"]:not(.is-inview) { transform: translateY(60px); }
.js [data-animate="from-left"]:not(.is-inview) { transform: translateX(-80px); }
.js [data-animate="from-right"]:not(.is-inview) { transform: translateX(80px); }
.js [data-animate="zoom"]:not(.is-inview) { transform: scale(.92); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .js [data-animate]:not(.is-inview) { opacity: 1; transform: none; }
    .hero-slide .hero-title-mask > span,
    .hero-slide .hero-subtitle,
    .hero-slide .hero-link { transform: none; opacity: 1; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1300px) {
    .container { padding-left: 30px; padding-right: 30px; }
    .hero-slide-content .container { padding-left: 30px; }
}

@media (max-width: 1180px) {
    .menu-item > a { padding-right: 18px; font-size: 15px; }
    .menu-item > a::after { right: 18px; }
    .menu-item.has-children > a { padding-right: 34px; }
    .menu-item.has-children > a::after { right: 34px; }
    .menu-item.has-children > a::before { right: 20px; }
    .menu-lang { padding-left: 4px; gap: 8px; }
}

@media (max-width: 1100px) {
    .home-intro-grid { gap: 45px; }
    .why-list { grid-template-columns: repeat(2, 1fr); }
    .figures-list { grid-template-columns: repeat(2, 1fr); }

    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 30px; }
    .footer-about { grid-column: 1 / -1; }
    .footer-partners { grid-template-columns: 1fr auto; }
    .footer-partners-logos { grid-column: 1 / -1; }

    .service-layout { column-gap: 40px; }
    .service-sidebar { padding-right: 0; }
    .hero-title { font-size: 70px; line-height: 80px; }
    .info-bar-grid { grid-template-columns: 1fr 1fr 1fr; }
    .info-visual--map { display: none; }
}

/* Menu mobile : même seuil que le thème d'origine (900px) */
@media (max-width: 900px) {
    .header-top-inner { min-height: 64px; }
    .site-logo { padding: 8px 0; }
    .site-logo img { width: 190px; height: auto; }
    .header-cta { display: none; }
    .nav-toggle { display: inline-flex; margin-right: -12px; }

    .header-nav {
        position: absolute;
        left: 0; right: 0; top: 100%;
        max-height: 0;
        overflow: hidden;
        border-top: 0;
        box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
        transition: max-height .35s var(--ease);
    }
    .header-nav.is-open { max-height: 80vh; overflow-y: auto; border-top: 1px solid var(--line); }
    .menu { flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
    .menu-item > a { padding: 0; line-height: 48px; border-bottom: 1px solid var(--line); }
    .menu-item > a::after { right: auto; width: 40px; }
    .menu-item-mobile-cta { display: block; }
    .menu-item-mobile-cta > a { color: var(--orange); font-weight: 600; }
    .menu-lang { margin-left: 0; padding: 14px 0 0; }

    /* Sous-menu replié ; le lien parent le déplie (chevron à droite) */
    .menu-item.has-children > a { padding-right: 0; }
    .menu-item.has-children > a::after { right: auto; }
    .menu-item.has-children > a::before,
    .menu-item.has-children:hover > a::before,
    .menu-item.has-children:focus-within > a::before { right: 6px; transform: rotate(45deg); }
    .menu-item.has-children.is-open > a::before { transform: rotate(225deg) translate(-3px, -3px); }
    .submenu-item-overview { display: block; }
    .submenu {
        display: none;
        position: static;
        min-width: 0;
        padding: 2px 0 6px 18px;
        border-top: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }
    .menu-item.has-children.is-open > .submenu { display: block; }
    .submenu a { padding: 0; font-size: 15px; line-height: 40px; border-bottom: 1px solid var(--line); }

    .service-cards--domains .service-card { flex-basis: calc((100% - 24px) / 2); }
    .key-figures,
    .feature-cards { grid-template-columns: 1fr; }
    .lead-text { font-size: 19px; }
    .cta-box { padding: 28px 24px; }

    .page-title { font-size: 44px; }
    .page-hero--image .page-hero-inner { height: calc(34vh + 65px); min-height: 285px; }
    .page-hero--gradient .page-hero-inner { padding-top: 50px; padding-bottom: 50px; }

    .hero-slider { height: 560px; }
    .hero-slide-content { bottom: 90px; }
    .hero-title { font-size: 56px; line-height: 64px; max-width: 470px; }
    .hero-subtitle { font-size: 20px; line-height: 26px; }
    .hero-link { font-size: 18px; }

    /* Sur mobile, la barre d'informations sous le slider est masquée */
    .info-bar { display: none; }

    .home-services { padding: 60px 0 70px; }
    .home-services h2 { margin-bottom: 45px; }
    .service-cards { grid-template-columns: 1fr 1fr; gap: 24px; padding: 0; }

    .page-body { padding: 60px 0; }
    .service-layout { grid-template-columns: 1fr; row-gap: 50px; }
    .service-sidebar { max-width: 420px; }

    .about-dakar-grid { grid-template-columns: 1fr; gap: 40px; padding: 0; }
    .about-values-grid { grid-template-columns: 1fr; gap: 10px; }
    .value-item:nth-child(2) { margin-top: 0; }
    .value-item::before { font-size: 200px; }

    .footer-cta { padding: 45px 0; }
    .footer-cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
    .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 768px) {
    .home-intro, .home-domains, .home-why { padding: 70px 0; }
    .home-intro-grid { grid-template-columns: 1fr; }
    .home-intro-badge { display: none; } /* sur mobile : la photo seule, sans le badge */
    .home-project { padding: 80px 0; }
    .home-project::before { background: linear-gradient(90deg, rgb(248, 151, 40) 0%, rgba(244, 138, 52, .9) 50%, rgba(236, 115, 80, .7) 100%); }
    .domain-cards { grid-template-columns: 1fr 1fr; gap: 18px; }
    .domain-card, .domain-card:nth-child(-n+2) { grid-column: span 1; }
    .domain-card:first-child { grid-column: 1 / -1; }
    .domain-card a, .domain-card:nth-child(-n+2) a { min-height: 300px; }
    .section-head { margin-bottom: 40px; }

    h2, .form-heading { font-size: 34px; }

    .form-grid { grid-template-columns: 1fr; }
    .form-actions--quote { margin-top: 40px; }
    .media-grid--2,
    .media-grid--3 { grid-template-columns: 1fr; }

    .about-intro, .about-dakar, .about-values { padding: 60px 0; }
    .about-dakar-lead { font-size: 24px; line-height: 30px; margin-bottom: 40px; }

    /* Sur écran étroit, le texte couvre presque toute la largeur : voile plus large */
    .hero-slide-tint--light {
        background: linear-gradient(90deg,
            rgba(236, 236, 236, .95) 0%,
            rgba(236, 236, 236, .88) 70%,
            rgba(236, 236, 236, .6) 100%);
    }
    .hero-slide-tint--orange {
        background: linear-gradient(90deg,
            rgb(248, 151, 40) 0%,
            rgba(244, 138, 52, .88) 45%,
            rgba(236, 115, 80, .6) 100%);
    }
}

@media (max-width: 560px) {
    .domain-cards { grid-template-columns: 1fr; }
    .why-list { grid-template-columns: 1fr; }
    .figures-list { grid-template-columns: 1fr; gap: 14px; }
    .figures-list li { padding: 20px; }

    .footer-cta-title { font-size: 28px; }
    .footer-cta-actions .btn { flex: 1 1 100%; }
    .footer-main { padding-top: 55px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 20px; }
    .footer-partners { grid-template-columns: 1fr; gap: 20px; padding: 24px; text-align: center; }
    .footer-partners-logos { width: 100%; max-width: 330px; margin: 0 auto; }
    .footer-dangerous { margin: 0 auto; }

    .container,
    .hero-slide-content .container { padding-left: 20px; padding-right: 20px; }
    .page-title { font-size: 34px; }
    .hero-slider { height: 520px; }
    .hero-slide-content { bottom: 70px; }
    .hero-dots { bottom: 25px; }
    .hero-title { font-size: 44px; line-height: 50px; }
    .service-cards { grid-template-columns: 1fr; }
    .service-cards--domains .service-card { flex-basis: 100%; }
    .scroll-top { right: 14px; bottom: 14px; }
}
