:root {
    --gold: #F4C86D;
    --gold-2: #F5C975;
    --gold-accent: #FBAE3F;
    --yellow-accent: #FCCE3D;
    --navy: #093554;
    --navy-dark: #06263D;
    --black: #000000;
    --white: #FFFFFF;
    --off-white: #FCFCFA;
    --grey-light: #ECECEC;
    --grey-dark: #333333;
    --shadow: 0 12px 30px rgba(9, 53, 84, 0.10);
    --shadow-sm: 0 4px 14px rgba(9, 53, 84, 0.10);
    --shadow-lg: 0 24px 50px rgba(9, 53, 84, 0.20);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Fonts (Open Sans, self-hosted, SIL OFL) ---------- */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('/fonts/opensans-latin-variable.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/opensans-latin-400italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    color: var(--grey-dark);
    background-color: var(--white);
    line-height: 1.65;
    font-weight: 400;
}

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
}

.skip-link:focus {
    left: 0.5rem;
    top: 0.5rem;
    z-index: 2000;
    background: var(--white);
    color: var(--navy);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

/* ---------- Reading progress bar ---------- */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-accent));
    z-index: 2100;
    transition: width 0.1s linear;
}

/* ---------- Scroll reveal system ---------- */
html.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

html.js-reveal [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Header ---------- */
#site-header {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    padding: 0.6rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
    transition: padding 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

#site-header.is-scrolled {
    padding: 0.4rem 2rem;
    box-shadow: 0 6px 22px rgba(9, 53, 84, 0.12);
}

.logo-container img { height: 50px; width: auto; display: block; transition: height 0.3s var(--ease-out-expo); }
#site-header.is-scrolled .logo-container img { height: 40px; }

nav#primary-nav { display: flex; flex-wrap: wrap; align-items: center; }

nav#primary-nav a {
    position: relative;
    color: var(--navy);
    margin-left: 1.6rem;
    font-weight: 600;
    transition: color 0.25s;
    padding-bottom: 3px;
}

nav#primary-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -2px;
    height: 2px;
    background: var(--gold-accent);
    transition: right 0.3s var(--ease-out-expo);
}

nav#primary-nav a:hover, nav#primary-nav a:focus, nav#primary-nav a.is-active { color: var(--gold-accent); }
nav#primary-nav a:hover::after, nav#primary-nav a:focus::after, nav#primary-nav a.is-active::after { right: 0; }

nav#primary-nav a.nav-cta {
    background-color: var(--gold);
    color: var(--black);
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    font-weight: 700;
}

nav#primary-nav a.nav-cta::after { display: none; }

nav#primary-nav a.nav-cta:hover, nav#primary-nav a.nav-cta:focus {
    background-color: var(--gold-accent);
    color: var(--black);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--navy);
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Buttons ---------- */
.btn {
    background-color: var(--gold);
    color: var(--black);
    padding: 0.95rem 2.3rem;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, background-color 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(244, 200, 109, 0.4);
    font-size: 1rem;
    position: relative;
}

.btn:hover, .btn:focus {
    background-color: var(--gold-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(251, 174, 63, 0.45);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--gold);
    box-shadow: none;
}

.btn-outline:hover, .btn-outline:focus {
    background-color: var(--gold);
    color: var(--black);
}

.btn-magnetic { will-change: transform; }

.btn-magnetic .btn-label { display: inline-block; transition: opacity 0.25s ease; }

.btn-magnetic.is-loading { cursor: wait; pointer-events: none; }
.btn-magnetic.is-loading .btn-label { opacity: 0; }
.btn-magnetic.is-loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 18px; height: 18px;
    margin: -9px 0 0 -9px;
    border: 2.5px solid rgba(0, 0, 0, 0.25);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
}

@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: 8rem 2rem 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hero-bg-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.8s ease;
}

.hero-bg-slide.is-active { opacity: 1; }

.hero-bg-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02);
    transform: scale(1.08);
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(244, 200, 109, 0.10) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(90deg, rgba(244, 200, 109, 0.10) 0 1px, transparent 1px 64px);
    mix-blend-mode: overlay;
    opacity: 0.5;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 65% at 50% 42%, rgba(6, 38, 61, 0.76) 0%, rgba(6, 38, 61, 0.4) 60%, rgba(6, 38, 61, 0.14) 100%),
        linear-gradient(180deg, rgba(6, 38, 61, 0.38) 0%, rgba(6, 38, 61, 0.16) 30%, rgba(6, 38, 61, 0.48) 100%);
    animation: subtleGlow 16s ease-in-out infinite alternate;
}

@keyframes subtleGlow {
    0% { opacity: 1; }
    50% { opacity: 0.92; }
    100% { opacity: 1; }
}

.hero-content { position: relative; z-index: 1; max-width: 950px; margin: 0 auto; }

.hero-eyebrow {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
}

.hero-rotator {
    font-size: 2.9rem;
    margin: 0 auto 1.4rem;
    color: var(--white);
    min-height: 3.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

@media (min-width: 700px) {
    .hero-rotator { min-height: 2.6em; font-size: 2.2rem; }
}

.rotator-word {
    display: inline-block;
    transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s var(--ease-out-expo);
    width: 100%;
    text-align: center;
    filter: blur(0);
}

.rotator-word.is-out { opacity: 0; filter: blur(6px); transform: translateY(-10px); }

.hero-rotator .accent { color: var(--gold); }

.hero-sub {
    font-size: 1.2rem;
    max-width: 760px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2.2rem;
}

.hero-badge {
    background: rgba(244, 200, 109, 0.10);
    border: 1px solid rgba(244, 200, 109, 0.55);
    color: var(--gold);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.3s var(--ease-out-expo), background 0.3s ease;
}

.hero-badge:hover { transform: translateY(-3px); background: rgba(244, 200, 109, 0.18); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2.6rem; }

.hero-cta .btn {
    padding: 0.75rem 1.8rem;
    font-size: 0.95rem;
}

.hero-supports {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
}

.hero-supports .supports-label { font-weight: 700; color: var(--gold); }

.supports-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.55rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(244, 200, 109, 0.35);
    transition: all 0.3s ease;
    color: var(--white);
    font-weight: 500;
}

.support-item:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(244, 200, 109, 0.6);
    transform: translateY(-2px);
}

.support-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--gold);
    flex-shrink: 0;
}

.support-icon svg { width: 20px; height: 20px; }

.hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.8rem;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(244, 200, 109, 0.55);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    z-index: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hero-scroll-cue:hover { opacity: 1; }

.hero-scroll-cue span {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: var(--gold);
    animation: scrollCueMove 1.8s ease-in-out infinite;
}

@keyframes scrollCueMove {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(14px); opacity: 0; }
    100% { opacity: 0; }
}

/* ---------- Sections ---------- */
.section {
    padding: 5rem 2rem;
    max-width: 1180px;
    margin: 0 auto;
}

.section-alt { background-color: var(--off-white); max-width: none; }
.section-alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }

.section-navy {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    max-width: none;
    position: relative;
    overflow: hidden;
}

.section-navy > * { max-width: 1180px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }

.section-navy-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(115deg, rgba(244, 200, 109, 0.07) 0 2px, transparent 2px 90px),
        repeating-linear-gradient(115deg, rgba(244, 200, 109, 0.10) 0 1px, transparent 1px 46px);
    background-repeat: repeat;
    animation: flowDrift 34s linear infinite;
    pointer-events: none;
}

@keyframes flowDrift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 500px 260px, -360px 190px; }
}

.pill-title {
    display: block;
    width: max-content;
    max-width: 90%;
    margin: 0 auto 1rem;
    background: var(--navy);
    color: var(--gold);
    padding: 0.4rem 1.3rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.pill-title.pill-on-dark { background: rgba(244, 200, 109, 0.15); }

.section-title {
    text-align: center;
    margin: 0 auto 1.2rem;
    color: var(--navy);
    font-size: 2.1rem;
    max-width: 800px;
}

.section-title.on-dark { color: var(--white); }

.section-lead {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
    color: var(--grey-dark);
    font-size: 1.1rem;
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 2rem; }
.grid-solutions { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 2.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-tarifs { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
    background: var(--white);
    padding: 2.2rem 1.7rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease, border-color 0.3s ease;
    border: 1px solid rgba(9, 53, 84, 0.06);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
    z-index: 2;
}

.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.card:hover::before { transform: scaleX(1); }

.card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 1.1rem;
    border-radius: 16px;
    background: rgba(244, 200, 109, 0.18);
    color: var(--navy);
    transition: transform 0.3s ease, background 0.3s ease;
}

.card .icon svg { width: 30px; height: 30px; }
.card:hover .icon { transform: scale(1.08) rotate(-4deg); background: var(--gold); }

.card h3 { color: var(--navy); margin-bottom: 0.7rem; font-size: 1.2rem; }
.card p { font-size: 0.96rem; margin: 0; }

/* Card media (photo or graphic pattern band) */
.card-media, .card-media-graphic {
    position: relative;
    height: 170px;
    margin: -2.2rem -1.7rem 1.3rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.05);
    filter: grayscale(0.1) saturate(1.05);
    transition: transform 0.7s var(--ease-out-expo), filter 0.5s ease;
}

.card:hover .card-media img { transform: scale(1.16); filter: grayscale(0) saturate(1.15); }

.card-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 53, 84, 0) 45%, rgba(9, 53, 84, 0.55) 100%);
}

.card-media-graphic { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); }

.card:hover .card-media-graphic:not(.pattern-dashboard)::before,
.card:hover .card-media-graphic:not(.pattern-dashboard)::after { transform: scale(1.08); }

.pattern-dashboard { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); }

/* Bars are drawn with layered gradients (vector, always crisp) rather than a raster
   image — never scale this element via `transform`, it forces the browser to composite
   it as a bitmap layer and the gradients turn soft/pixelated when scaled up. The "grow"
   feel instead comes from animating background-size, which stays vector-sharp. */
.pattern-dashboard::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--gold), var(--gold)),
        linear-gradient(var(--gold-accent), var(--gold-accent)),
        linear-gradient(var(--gold), var(--gold)),
        linear-gradient(var(--gold-accent), var(--gold-accent)),
        linear-gradient(var(--gold), var(--gold));
    background-repeat: no-repeat;
    background-position: 12% 100%, 30% 100%, 48% 100%, 66% 100%, 84% 100%;
    background-size: 9% 42%, 9% 68%, 9% 52%, 9% 82%, 9% 34%;
    opacity: 0.9;
}

/* Animated only on hover, and only where hover actually means something (a real
   pointer). Touch devices have no hover, so mobile simply keeps the static bars. */
@media (hover: hover) and (pointer: fine) {
    .card:hover .pattern-dashboard::before,
    .use-case:hover .pattern-dashboard::before {
        animation: dashboardBars 2.6s ease-in-out infinite;
    }
}

@keyframes dashboardBars {
    0%, 100% { background-size: 9% 42%, 9% 68%, 9% 52%, 9% 82%, 9% 34%; }
    25% { background-size: 9% 58%, 9% 48%, 9% 70%, 9% 60%, 9% 44%; }
    50% { background-size: 9% 36%, 9% 74%, 9% 46%, 9% 90%, 9% 62%; }
    75% { background-size: 9% 64%, 9% 55%, 9% 60%, 9% 72%, 9% 38%; }
}

.solutions-cta {
    margin-top: 3rem;
    text-align: center;
    background: var(--off-white);
    border: 1px dashed var(--gold-accent);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
}

.solutions-cta p { font-size: 1.15rem; font-weight: 600; color: var(--navy); margin: 0 0 1.2rem; }

/* ---------- Use cases ---------- */
.use-case {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 0 0 1.8rem;
    box-shadow: var(--shadow);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
    overflow: hidden;
}

.use-case:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.use-case .card-media, .use-case .card-media-graphic {
    margin: 0 0 1.4rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    height: 170px;
}

.use-case:hover .card-media img { transform: scale(1.14); filter: grayscale(0) saturate(1.15); }
.use-case:hover .card-media-graphic:not(.pattern-dashboard)::before, .use-case:hover .card-media-graphic:not(.pattern-dashboard)::after { transform: scale(1.08); }

.use-case h3 { color: var(--navy); margin: 0 1.6rem 0.7rem; font-size: 1.15rem; }
.use-case p { margin: 0 1.6rem; font-size: 0.96rem; }

/* ---------- Timeline ---------- */
.timeline {
    list-style: none;
    counter-reset: none;
    padding: 0;
    margin: 2.5rem auto 0;
    max-width: 820px;
    position: relative;
    --progress: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    z-index: 0;
    left: 27px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: rgba(244, 200, 109, 0.25);
}

.timeline::after {
    content: '';
    position: absolute;
    z-index: 0;
    left: 27px;
    top: 10px;
    width: 2px;
    height: calc((100% - 20px) * var(--progress));
    background: linear-gradient(var(--gold), var(--gold-accent));
    transition: height 0.2s linear;
}

.timeline li {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1.3rem;
    padding: 0 0 2rem 0;
    transition: transform 0.3s ease;
}

.timeline li:hover {
    transform: translateY(-4px);
}

.timeline .step-num {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(244, 200, 109, 0.5);
    z-index: 1;
}

html.js-reveal .timeline li.reveal.is-visible .step-num {
    animation: stepPop 0.5s var(--ease-out-back) both;
}

@keyframes stepPop {
    from { transform: scale(0.4); box-shadow: none; }
    to { transform: scale(1); box-shadow: 0 6px 16px rgba(244, 200, 109, 0.5); }
}

.timeline h3 { color: var(--navy); margin: 0.4rem 0 0.4rem; font-size: 1.15rem; }
.timeline p { margin: 0; }

/* ---------- Offers ---------- */
.offers-list {
    list-style: none;
    padding: 0;
    margin: 2.5rem auto 0;
    max-width: 820px;
    display: grid;
    gap: 1rem;
}

.offers-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(244, 200, 109, 0.3);
    border-radius: 14px;
    padding: 1rem 1.4rem;
    font-size: 1.05rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.offers-list li:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(244, 200, 109, 0.25);
    border-color: var(--gold);
}

.offers-list .check {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Tarifs ---------- */
.tarifs-promesses { margin-bottom: 3.5rem; }

.promise-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.promise-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(244, 200, 109, 0.25);
    border-top-color: var(--gold-accent);
}

.promise-card .icon {
    display: inline-flex;
    color: var(--navy);
    margin-bottom: 0.8rem;
}

.promise-card .icon svg { width: 40px; height: 40px; }
.promise-card h3 { color: var(--navy); margin: 0 0 0.4rem; }
.promise-highlight { color: var(--gold-accent); font-weight: 800; font-size: 1.1rem; margin: 0 0 0.7rem; }
.promise-card p { margin: 0; }

.tarifs-examples-title { text-align: center; color: var(--navy); font-size: 1.4rem; margin: 0 0 2rem; }

/* Wider than the standard 1180px section cap: the image-left / text-right layout below
   needs the extra room. #id beats the `.section-alt > *` class rule that would otherwise
   cap it. */
#tarifs-examples { max-width: 1320px; }

.tarif-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(9, 53, 84, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.tarif-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.tarif-card-inner {
    display: grid;
    grid-template-columns: minmax(260px, 42%) 1fr;
    align-items: stretch;
}

.tarif-card .card-media {
    height: auto;
    min-height: 260px;
    margin: 0;
    border-radius: 0;
}

.tarif-card:hover .card-media img { transform: scale(1.14); filter: grayscale(0) saturate(1.15); }

.tarif-card-body { padding: 2rem 2.2rem; }

@media (max-width: 768px) {
    .tarif-card-inner { grid-template-columns: 1fr; }
    .tarif-card .card-media { min-height: 220px; }
}

.tarif-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--grey-light);
}

.tarif-head h4 { color: var(--navy); margin: 0; font-size: 1.25rem; }

.tarif-tag {
    background: var(--navy);
    color: var(--gold);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.tarif-context { margin: 0 0 1rem; font-size: 0.97rem; }
.tarif-context:last-child { margin-bottom: 0; }
.tarif-context strong { color: var(--navy); }

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: center;
    margin-top: 1rem;
}

.about-portrait {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 2.6rem 2rem;
    color: var(--white);
    text-align: center;
    box-shadow: 0 20px 40px rgba(9, 53, 84, 0.18);
    position: relative;
}

.portrait-frame {
    width: 168px;
    height: 168px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--gold);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease;
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.about-portrait:hover .portrait-frame {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.about-portrait h3 { margin: 0 0 0.3rem; font-size: 1.4rem; }
.about-portrait .role { color: var(--gold); font-weight: 600; margin: 0 0 1.3rem; }

.about-portrait .badge {
    display: inline-block;
    background: rgba(244, 200, 109, 0.12);
    border: 1px solid rgba(244, 200, 109, 0.5);
    border-radius: 50px;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
}

.about-text p { margin: 0 0 1.2rem; font-size: 1.05rem; }

.about-text blockquote {
    margin: 1.4rem 0;
    padding: 1.2rem 1.5rem;
    border-left: 4px solid var(--gold);
    background: var(--off-white);
    font-style: italic;
    color: var(--navy);
    border-radius: 0 12px 12px 0;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.values-list li {
    background: var(--off-white);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--navy);
    border-left: 3px solid var(--gold);
    font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.values-list li:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(244, 200, 109, 0.2);
    border-left-color: var(--gold-accent);
}

/* ---------- Contact ---------- */
.contact-outer { background-color: var(--off-white); padding: 5rem 0; }
.contact-container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-info-card {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.contact-info-card h3 { color: var(--gold); margin-top: 0; }
.contact-info-item { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.3rem; transition: transform 0.3s ease; }
.contact-info-item:hover { transform: translateX(4px); }
.contact-info-item .icon { font-size: 1.2rem; line-height: 1.4; }
.contact-info-item strong { display: block; color: var(--white); }
.contact-info-item span { color: rgba(255, 255, 255, 0.8); }
.contact-info-item a { color: rgba(255, 255, 255, 0.9); }
.contact-info-item a:hover { color: var(--gold); }

.contact-reassure {
    margin: 1.5rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.92rem;
    color: var(--gold);
    font-style: italic;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { margin-bottom: 1.3rem; position: relative; }

.form-group label {
    position: absolute;
    left: 1rem;
    top: 0.95rem;
    font-weight: 600;
    color: #888;
    font-size: 1rem;
    transition: top 0.2s var(--ease-out-expo), font-size 0.2s var(--ease-out-expo), color 0.2s ease;
    pointer-events: none;
    background: transparent;
    z-index: 1;
}

.form-group.is-active label {
    top: -0.55rem;
    left: 0.8rem;
    font-size: 0.74rem;
    color: var(--gold-accent);
    background: var(--white);
    padding: 0 0.35rem;
}

.req { color: #d21b1b; font-weight: 700; }
.form-group .optional { color: #888; font-weight: 400; font-size: 0.85rem; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--grey-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--grey-dark);
    background-color: var(--off-white);
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
    position: relative;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(251, 174, 63, 0.15);
}

.form-group textarea { min-height: 150px; resize: vertical; }

.form-group input.valid { border-color: #2e9e5b; }
.form-group input.invalid { border-color: #d21b1b; }

.form-group.is-shaking { animation: fieldShake 0.4s ease; }
@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(3px); }
}

.field-feedback { font-size: 0.85rem; margin-top: 0.35rem; min-height: 1.1em; transition: opacity 0.2s ease; }
.field-feedback.ok { color: #2e9e5b; }
.field-feedback.error { color: #d21b1b; }

.form-hint { font-size: 0.85rem; color: #888; margin-top: 0.3rem; }
.counter.warn { color: var(--gold-accent); font-weight: 700; }

.honeypot-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: 0.85rem; color: #777; margin-top: 1rem; }
.form-consent .req { color: #d21b1b; }

.form-status {
    margin: 1rem 0 0;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    animation: statusIn 0.35s var(--ease-out-expo);
}

@keyframes statusIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.form-status.success { background: #e7f6ec; color: #1f7a44; border: 1px solid #b7e2c6; }
.form-status.error { background: #fdeaea; color: #b32222; border: 1px solid #f2c2c2; }

.form-submit { margin-top: 0.5rem; text-align: right; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Footer ---------- */
footer {
    background-color: var(--navy-dark);
    color: var(--white);
    padding: 3.5rem 2rem 2rem;
}

.footer-top {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand { max-width: 420px; }
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo img { display: block; height: 36px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { opacity: 0.85; margin: 0 0 1rem; }
.footer-brand .footer-cta { opacity: 1; font-weight: 600; margin: 1rem 0 0; }

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(244, 200, 109, 0.4);
    border-radius: 50px;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.social-link:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.social-link svg { display: block; }

.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { font-size: 0.9rem; }
.footer-links a { color: rgba(255, 255, 255, 0.85); font-weight: 600; transition: color 0.25s; }
.footer-links a:hover { color: var(--gold); }

.footer-legal { max-width: 1180px; margin: 1.5rem auto 0; text-align: center; opacity: 0.7; font-size: 0.85rem; }
.footer-legal p { margin: 0.3rem 0; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(9, 53, 84, 0.35);
    z-index: 900;
    transition: background 0.3s ease, transform 0.3s ease;
    animation: fadeInUp 0.4s var(--ease-out-expo);
}

.back-to-top svg { width: 20px; height: 20px; }
.back-to-top:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-rotator { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    nav#primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        padding: 1rem 1.5rem 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    nav#primary-nav.open { display: flex; }
    nav#primary-nav a { margin: 0.5rem 0; }
    nav#primary-nav a.nav-cta { text-align: center; margin-top: 0.6rem; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    #site-header { padding: 0.6rem 1.2rem; }
    .section { padding: 3.5rem 1.2rem; }
    .contact-container { padding: 0 1.2rem; }
    .contact-form-card { padding: 1.6rem; }
    .form-row { grid-template-columns: 1fr; }
    .form-submit { text-align: center; }
    .hero { padding: 6rem 1.2rem; }
    .hero-rotator { font-size: 1.9rem; }
    .hero-sub { font-size: 1.05rem; }
    .footer-top { flex-direction: column; }
    .back-to-top { right: 1rem; bottom: 1rem; width: 44px; height: 44px; }

    .hero-supports {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .supports-list {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
    .rotator-word { transition: none; }
    html.js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
    .hero-bg picture, .hero-bg img { transform: none; }
}
