/* ─── Tokens ──────────────────────────────────────────────── */
:root {
    --bg:           #ffffff;
    --bg-alt:       #f5f5f7;
    --bg-surface:   #ffffff;
    --text:         #1a1a2e;
    --text-muted:   #6b7280;
    --accent:       #ff5c5b;
    --accent-hover: #e04a49;
    --border:       rgba(0, 0, 0, 0.09);
    --radius:       10px;
    --container:    1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ─── Container ───────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 5vw, 3rem);
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

/* Flip partagé : primary + secondary */
.btn--primary,
.btn--secondary {
    overflow: clip;
    position: relative;
}

.btn--primary::before,
.btn--secondary::before {
    content: attr(data-text);
    display: block;
    visibility: hidden;
    pointer-events: none;
    font-weight: 600;
    font-size: inherit;
    white-space: nowrap;
}

.btn--primary span, .btn--secondary span,
.btn--primary::after, .btn--secondary::after {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
}

.btn--primary::after,
.btn--secondary::after {
    content: attr(data-text);
    font-weight: 600;
    font-size: inherit;
    transform: translateY(100%);
}

.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(255, 92, 91, 0.3);
}

.btn--primary:hover span,
.btn--secondary:hover span {
    transform: translateY(-100%);
}

.btn--primary:hover::after,
.btn--secondary:hover::after {
    transform: translateY(0);
}

.btn--lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* ─── Nav ─────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 4.5rem;
    gap: 0;
    max-width: none;
    padding-inline: 20rem;
}

.nav__logo-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
}

.nav__logo {
    height: 2.2rem;
    width: auto;
    display: block;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    padding-inline: 2rem;
}

.nav__link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav__link:hover {
    color: var(--accent);
}

.nav__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
}

.btn--secondary {
    background: transparent;
    color: var(--accent);
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    border: 1.5px solid var(--accent);
    transition: background 0.15s, border-color 0.2s, color 0.2s;
}

.btn--secondary:hover {
    background: rgba(255, 92, 91, 0.06);
    border-color: var(--accent-hover);
}

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
    padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 7rem);
    background-color: var(--bg);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, #ffffff);
    pointer-events: none;
    z-index: 1;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
}

.hero__headline {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 16em;
}

.hero__subheadline {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    color: var(--text-muted);
    max-width: 68ch;
    text-align: center;
    line-height: 1.6;
}

/* ─── Sections ────────────────────────────────────────────── */
.section {
    padding: clamp(5rem, 12vw, 10rem) 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.section--alt {
    background: var(--bg);
}

.section__headline {
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 4rem;
    max-width: 26em;
}

.section__headline--center {
    margin-inline: auto;
    text-align: center;
}

/* ─── Workflow ────────────────────────────────────────────── */
.workflow {
    list-style: none;
    display: flex;
    flex-direction: column;
    max-width: 720px;
    margin-inline: auto;
}

.workflow__item {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 0 2rem;
    align-items: start;
}

/* Staggered pulse & shimmer delays per item */
.workflow__item:nth-child(1) { --pulse-delay: 0s;    --shimmer-delay: 0s;    }
.workflow__item:nth-child(2) { --pulse-delay: 0.43s; --shimmer-delay: 0.35s; }
.workflow__item:nth-child(3) { --pulse-delay: 0.86s; --shimmer-delay: 0.7s;  }
.workflow__item:nth-child(4) { --pulse-delay: 1.29s; --shimmer-delay: 1.05s; }
.workflow__item:nth-child(5) { --pulse-delay: 1.72s; --shimmer-delay: 1.4s;  }
.workflow__item:nth-child(6) { --pulse-delay: 2.15s; --shimmer-delay: 1.75s; }
.workflow__item:nth-child(7) { --pulse-delay: 2.58s; --shimmer-delay: 2.1s;  }

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

.workflow__circle {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    animation: circlePulse 3s ease-in-out infinite;
    animation-delay: var(--pulse-delay, 0s);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.workflow__item:hover .workflow__circle {
    transform: scale(1.2);
}

@keyframes circlePulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(255, 92, 91, 0.45); }
    50%       { box-shadow: 0 0 0 12px rgba(255, 92, 91, 0);   }
}

.workflow__line {
    flex: 1;
    width: 6px;
    min-height: 2rem;
    margin-top: 0.3rem;
    background: linear-gradient(to bottom, var(--accent) 0%, rgba(255, 92, 91, 0.1) 100%);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.workflow__line::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 45%;
    top: -45%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.72) 50%,
        transparent 100%
    );
    animation: lineShimmer 2.5s ease-in-out infinite;
    animation-delay: var(--shimmer-delay, 0s);
}

@keyframes lineShimmer {
    0%   { top: -45%; }
    100% { top: 145%; }
}

.workflow__item:last-child .workflow__line {
    display: none;
}

.workflow__content {
    padding-top: 0.75rem;
    padding-bottom: 3.75rem;
}

.workflow__item:last-child .workflow__content {
    padding-bottom: 0;
}

.workflow__title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

.workflow__details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.workflow__details li {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    padding-left: 1.6rem;
    position: relative;
}

.workflow__details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}


/* ─── Roles ───────────────────────────────────────────────── */
#roles {
    position: relative;
}

#roles::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,<svg viewBox='0 0 900 900' xmlns='http://www.w3.org/2000/svg'><defs><filter id='b' x='-10%25' y='-10%25' width='120%25' height='120%25'><feGaussianBlur stdDeviation='189'/></filter></defs><rect width='900' height='900' fill='%23f5f5f7'/><g filter='url(%23b)'><circle cx='21' cy='474' fill='%23ff5c5b' r='420'/><circle cx='737' cy='201' fill='%23f5f5f7' r='420'/><circle cx='509' cy='847' fill='%23ff5c5b' r='420'/><circle cx='293' cy='456' fill='%23ff5c5b' r='420'/><circle cx='550' cy='412' fill='%23f5f5f7' r='420'/><circle cx='759' cy='733' fill='%23ff5c5b' r='420'/></g></svg>");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 0;
}



#roles .container {
    position: relative;
    z-index: 1;
}
.roles {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
    max-width: 860px;
    margin-inline: auto;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    padding: 3.25rem 0;
    border-bottom: 1px solid var(--border);
}

.role-card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.role-card__avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(255, 92, 91, 0.1);
    color: var(--accent);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 2px solid rgba(255, 92, 91, 0.22);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease;
}

.role-card:hover .role-card__avatar {
    transform: translateY(-6px);
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.role-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.role-card:hover .role-card__title {
    transform: scale(1.08);
}

.role-card__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
}

.role-card__features li {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.65;
    padding-left: 1.6rem;
    position: relative;
}

.role-card__features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}


/* ─── Cards ───────────────────────────────────────────────── */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    font-size: 0.975rem;
    line-height: 1.65;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    border-color: rgba(255, 92, 91, 0.4);
    box-shadow: 0 4px 16px rgba(255, 92, 91, 0.1);
}

/* ─── Config ──────────────────────────────────────────────── */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
    gap: 1rem 3rem;
    margin-top: 1rem;
}

.config-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.config-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 92, 91, 0.06);
    transform: translate(var(--fill-tx, 0%), var(--fill-ty, -100%));
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border-radius: var(--radius);
    z-index: 0;
}

.config-item.no-transition::before {
    transition: none;
}

.config-item.is-hovered::before {
    transform: translate(0%, 0%);
}

.config-item:hover {
    border-color: var(--border);
}

.config-item__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: rgba(255, 92, 91, 0.09);
    color: var(--accent);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 92, 91, 0.18);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    position: relative;
    z-index: 1;
}

.config-item:hover .config-item__icon {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.config-item__body {
    position: relative;
    z-index: 1;
}

.config-item__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.config-item__desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}


/* ─── Why ─────────────────────────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
    gap: 2rem;
}

.why-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 2.75rem 2.5rem 2.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(255, 92, 91, 0.18);
    border-color: rgba(255, 92, 91, 0.3);
}

.why-card__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1.5rem;
}

.why-card__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    background: rgba(255, 92, 91, 0.09);
    color: var(--accent);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 92, 91, 0.18);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.why-card:hover .why-card__icon {
    background: var(--accent);
    color: #ffffff;
    transform: scale(1.1) rotate(-5deg);
    border-color: transparent;
}

.why-card__title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.why-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.why-card__list li {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    padding-left: 1.6rem;
    position: relative;
    transition: color 0.2s, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-card__list li:hover {
    color: var(--text);
    transform: translateX(5px);
}

.why-card__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}


/* ─── Security ────────────────────────────────────────────── */
.security__tagline {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

.security-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem 1.75rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.security-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(255, 92, 91, 0.11);
}

.security-card__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(255, 92, 91, 0.1);
    color: var(--accent);
    display: grid;
    place-items: center;
    margin: 0 auto 1.25rem;
    border: 2px solid rgba(255, 92, 91, 0.2);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.security-card:hover .security-card__icon {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.security-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

.security-card__desc {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.65;
}


/* ─── CTA ─────────────────────────────────────────────────── */
.section--cta {
    background: var(--accent);
    border-top: none;
    position: relative;
    overflow: hidden;
}

#cta-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 1200px) {
    #cta-svg { display: none; }
}

.cta-line {
    stroke: white;
    stroke-width: 4px;
    stroke-linecap: round;
}

.cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.cta__headline {
    font-size: clamp(1.4rem, 2.8vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 22em;
    color: #ffffff;
}

.cta__subheadline {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.6;
    max-width: 36em;
    text-align: center;
}

.section--cta .btn--primary {
    background: #ffffff;
    color: var(--accent);
}

.section--cta .btn--primary:hover {
    background: #f5f5f5;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ─── Gradient text ───────────────────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, #ff5c5b 0%, #ff8c5b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ─── Scroll Reveal ───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 4rem 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: start;
    padding-bottom: 4rem;
}

/* ── Colonne gauche ── */
.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 420px;
}

.footer__logo {
    height: 3.25rem;
    width: auto;
    display: block;
}

.footer__desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.footer__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 0.5rem;
}

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

.footer__social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer__social-link:hover {
    color: var(--accent);
}

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

.footer__contact-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer__contact-link:hover {
    color: var(--accent);
}

/* ── Colonne droite ── */
.footer__links {
    display: flex;
    gap: 4rem;
}

.footer__col-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 1rem;
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer__link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    transition: color 0.2s, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer__link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* ── Copyright ── */
.footer__bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
}

.footer__bottom .container {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ─── Hamburger ───────────────────────────────────────────── */
.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.25rem;
    height: 2.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    z-index: 110;
}

.nav__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity   0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Croix quand ouvert */
.nav--open .nav__hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav--open .nav__hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.nav__mobile {
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--border);
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding    0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav--open .nav__mobile {
    max-height: 480px;
    padding: 1.5rem clamp(1.5rem, 5vw, 3rem) 2rem;
}

.nav__mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.nav__mobile-link {
    color: var(--text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.nav__mobile-link:last-child { border-bottom: none; }

.nav__mobile-link:hover { color: var(--accent); }

.nav__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav__mobile-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ─── Media queries — 768px ───────────────────────────────── */
@media (max-width: 768px) {

    /* Nav */
    .nav__inner {
        grid-template-columns: 1fr auto;
        padding-inline: clamp(1rem, 4vw, 1.5rem);
        height: 4rem;
    }

    .nav__links,
    .nav__actions { display: none; }

    .nav__hamburger { display: flex; }

    .nav__mobile { display: flex; }

    /* Hero */
    .hero__headline { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    .hero__subheadline { font-size: 1rem; }

    /* Workflow */
    .workflow__item {
        grid-template-columns: 3.5rem 1fr;
        gap: 0 1rem;
    }

    .workflow__circle { width: 2.5rem; height: 2.5rem; font-size: 0.75rem; }

    /* Grilles de cards → 1 colonne */
    .why-grid,
    .config-grid,
    .security-grid { grid-template-columns: 1fr; }

    .roles { grid-template-columns: 1fr; }

    /* Footer */
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer__brand { max-width: 100%; }

    .footer__links { gap: 2.5rem; }

    /* Section headlines */
    .section__headline { font-size: clamp(1.5rem, 6vw, 2.2rem); }

    /* CTA */
    .cta__headline { font-size: clamp(1.5rem, 6vw, 2.2rem); }
}

/* ─── 404 ─────────────────────────────────────────────────── */
.error-page {
    padding: clamp(6rem, 15vw, 12rem) 0;
    background: var(--bg);
}

.error-page__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.error-page__code {
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--accent);
    opacity: 0.15;
}

.error-page__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-top: -1rem;
}

.error-page__sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
