@charset "UTF-8";
/* =========================================================
   PAGE AUTOMATISATION — styles scopés (.auto-*)
   Hérite de css/index.css : variables, mesures, composants,
   rayons, ombres, easings et breakpoints. Aucune valeur
   chromatique ou typographique nouvelle.
========================================================= */

/* ---------- Socle ---------- */
/* ScrollTrigger gère les ancres de cette page : le scroll-behavior natif
   entre en conflit avec l'épinglage (les liens restent animés via index.js). */
html {
    scroll-behavior: auto;
}

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

.auto-section {
    padding: 140px 48px;
    border-top: 1px solid var(--line);
}

.auto-section--dark {
    background: var(--black);
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auto-section--dark .auto-title {
    color: var(--bg);
}

.auto-title {
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--black);
    max-width: 820px;
    margin-top: 18px;
}

.auto-lead {
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 580px;
    margin-top: 225px;
}

.auto-section--dark .auto-lead {
    color: #a0a0ae;
}

/* ---------- 1. Hero ---------- */
/* Le réseau de lignes est posé en fond (SVG animé : paquets qui circulent
   et pastilles qui pulsent). Le contenu est centré et descendu. */
.auto-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100dvh;
    padding: 140px 48px;
    background-image: url("/images/svg/ligne-001-anim.svg");
    background-repeat: no-repeat;
    background-position: center 58%;
    background-size: 100% auto;
}

/* voile doux pour garder le titre lisible au passage des traits */
.auto-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 46% 42% at 50% 50%, rgba(250, 250, 250, 0.92) 0%, rgba(250, 250, 250, 0.55) 55%, rgba(250, 250, 250, 0) 100%);
    pointer-events: none;
}

.auto-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.auto-hero .eyebrow {
    margin-bottom: 15px;
}

.auto-hero-title {
    font-size: clamp(2.5rem, 7vw, 128px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--black);
    max-width: 900px;
}

.auto-hero-lead {
    margin-left: auto;
    margin-right: auto;
    margin-top: 24px;
}

.auto-hero .submit-btn {
    margin-top: 40px;
    align-self: center;
}

.auto-hero-proof {
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--muted);
    margin-top: 24px;
}

/* ---------- 2. Le constat ---------- */
/* Deux colonnes : discours à gauche, chiffres à droite.
   Les statistiques sont posées à même le fond (ni bloc, ni contour). */
.auto-constat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 80px;
    align-items: start;
}

.auto-constat-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 520px;
}

.auto-constat-title {
    max-width: 560px;
}

.auto-constat-desc {
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 400px;
    margin-top: 56px;
}

.auto-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 48px;
    align-content: start;
}

.auto-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: none;
    border: 0;
    padding: 0;
}

.auto-stat-num {
    font-size: clamp(44px, 7.4vw, 76px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--black);
    font-variant-numeric: tabular-nums;
}

.auto-stat-pill {
    margin-top: 16px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--white-gray);
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auto-stat p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 280px;
    margin-top: 14px;
}

/* ---------- 3. Cas d'usage ---------- */
/* En-tête centré : pastille, titre agrandi, description. */
.auto-cases-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.auto-cases-title {
    font-size: clamp(44px, 7.4vw, 104px);
    line-height: 1.02;
    max-width: none;
}

/* le titre long de la section modules garde une colonne raisonnable */
.auto-modules .auto-cases-title {
    max-width: 980px;
}

.auto-cases-head .auto-lead {
    margin-top: 28px;
}

/* ---------- 3. Cas d'usage ---------- */
.auto-net {
    margin: 70px 0 0;
}

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

/* ---------- 4. Les 4 piliers (section épinglée, révélés au scroll) ---------- */
.auto-pilots {
    background: var(--black);
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auto-pilots-stage {
    position: relative;
    padding: 140px 48px;
}

.auto-pilots.is-pinned .auto-pilots-stage {
    display: flex;
    align-items: center;
    height: 100dvh;
    padding: 110px 0 70px 48px;
    overflow: hidden;
}

.auto-pilots-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    width: 100%;
}

.auto-pilots.is-pinned .auto-pilots-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 80px;
    align-items: center;
}

.auto-pilots .auto-title {
    color: var(--bg);
}

.auto-pilots .auto-lead {
    color: #a0a0ae;
}

.auto-pilots-left .eyebrow {
    margin-bottom: 15px;
}

/* très grand numéro du pilier actif, en fond de scène */
.auto-pilots-figure {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

.auto-pilots-figure-num {
    font-size: clamp(300px, 46vw, 720px);
    font-weight: 700;
    line-height: 0.78;
    letter-spacing: -0.06em;
    color: rgba(255, 255, 255, 0.015);
    user-select: none;
}

.auto-pilots.is-pinned .auto-pilots-figure {
    display: flex;
}

/* les 4 piliers, empilés dans la même cellule : un seul visible */
.auto-pillars {
    display: flex;
    flex-direction: column;
    gap: 44px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.auto-pillar {
    padding-left: 0;
}

/* mode épinglé : les piliers se superposent, un seul visible */
.auto-pilots.is-pinned .auto-pillars {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.auto-pilots.is-pinned .auto-pillar {
    grid-area: 1 / 1;
    padding-left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
}

.auto-pilots.is-pinned .auto-pillar.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.auto-pillar h3 {
    font-size: clamp(26px, 2.4vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 20px;
}

.auto-pillar p {
    font-size: 15px;
    line-height: 1.7;
    color: #a8a8b4;
    max-width: 600px;
}

.auto-pillar-art {
    display: block;
    margin: 0 0 225px;
}

.auto-pillar-art img {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* ---------- 5. Ce que j'automatise (7 modules) ---------- */
.auto-modules .auto-cases-head {
    margin-bottom: 56px;
}

/* barre de modules : reprise des filtres de réalisations de l'accueil */
.auto-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 940px;
    margin: 0 auto 56px;
}

.auto-tab {
    padding: 14px 28px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--muted);
    background: none;
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.35s var(--ease);
}

.auto-tab:hover {
    color: var(--black);
    border-color: rgba(82, 79, 247, 0.35);
    box-shadow: 0 10px 24px -6px var(--gradient-glow);
    transform: translateY(-2px);
}

.auto-tab.is-active {
    background: var(--gradient);
    color: #ffffff;
    border-color: var(--secondary);
    box-shadow: 0 12px 28px -4px var(--gradient-glow);
}

.auto-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: center;
}

.auto-panel[hidden] {
    display: none;
}

.auto-panel.is-active {
    animation: auto-panel-in 0.45s var(--ease);
}

@keyframes auto-panel-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.auto-panel-art {
    margin-right: -24px;
}

.auto-panel-art img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
}

.auto-panel-copy h3 {
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary);
}

.auto-panel-sub {
    margin-top: 18px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--black);
    max-width: 560px;
}

.auto-panel-copy p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 560px;
    margin-top: 16px;
}

.auto-panel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    max-width: 560px;
}

.auto-panel-list li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.auto-panel-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gradient);
}

/* ---------- 6. Méthode ---------- */
.auto-method {
    position: relative;
    background: var(--black);
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auto-method-stage {
    position: relative;
    padding: 140px 48px;
}

.auto-method-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: end;
    margin-bottom: 44px;
}

.auto-method-head-side {
    width: 100%;
    max-width: 440px;
    margin-left: auto;          /* collé au bord droit de la section */
    padding-bottom: 12px;
    text-align: right;
}

.auto-method-desc {
    font-size: 16px;
    line-height: 1.65;
    color: #a8a8b4;
    max-width: none;
    margin: 0;
}

.auto-method-hint {
    margin-top: 14px;
}

.auto-method-title {
    font-size: clamp(44px, 8vw, 150px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--bg);
}

.auto-method-hint {
    display: none;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: #a8a8b4;
    transition: opacity 0.4s var(--ease);
}

.auto-method-track {
    display: flex;
    flex-direction: column;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.auto-step {
    border-left: 0;
    padding-left: 0;
}

.auto-step-num {
    display: block;
    font-size: clamp(54px, 10vw, 108px);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: 22px;
    transition: color 0.5s var(--ease);
}

.auto-step h3 {
    font-size: clamp(22px, 2.4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: var(--white);
    margin-bottom: 16px;
}

.auto-step p {
    font-size: 15px;
    line-height: 1.65;
    color: #b0b0bc;
    max-width: 680px;
}

.auto-method-progress {
    display: none;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 100px;
}

/* Desktop épinglé : la classe est posée par JS uniquement si GSAP est disponible */
.auto-method.is-pinned .auto-method-stage {
    height: 100dvh;
    padding: 140px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
}

.auto-method.is-pinned .auto-method-head {
    position: static;
    margin: 0 0 100px;
    z-index: 2;
}

.auto-method.is-pinned .auto-method-hint {
    display: block;
}

.auto-method-stage.is-scrolled .auto-method-hint {
    opacity: 0;
}

.auto-method.is-pinned .auto-method-track {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    width: max-content;
}

.auto-method.is-pinned .auto-step {
    flex: 0 0 clamp(300px, 42vw, 560px);
    opacity: 0.35;
    transform: scale(0.97);
    transform-origin: left center;
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.auto-method.is-pinned .auto-step.is-active {
    opacity: 1;
    transform: scale(1);
}

.auto-method.is-pinned .auto-step.is-active .auto-step-num {
    color: rgba(255, 255, 255, 0.9);
    border-color: transparent;
    animation: none;
}

.auto-method.is-pinned .auto-step.is-active h3 {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary);
}

.auto-method.is-pinned .auto-method-progress {
    display: block;
}

.auto-method-bar {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left center;
    box-shadow: 0 0 14px var(--gradient-cyan-glow);
}

@keyframes auto-step-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--gradient-cyan-glow); }
    50% { box-shadow: 0 0 0 8px transparent; }
}

/* ---------- 7. Contact : titre + formulaire ---------- */
.auto-faq {
    padding: 140px 48px;
    border-top: 1px solid var(--line);
}

.auto-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 80px;
    align-items: start;
}

.auto-faq-aside {
    position: sticky;
    top: 140px;
}

.auto-faq-aside .eyebrow {
    margin-bottom: 15px;
}

.auto-faq-title {
    font-size: clamp(38px, 4.6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--black);
}

.auto-faq-intro {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 380px;
    margin-top: 24px;
}

/* Le formulaire hérite des composants de l'accueil (css/index.css), prévus
   pour un fond sombre : on les repasse en version claire, scopée ici. */
.auto-faq-form {
    padding-top: 6px;
}

.auto-faq-form .form-field label,
.auto-faq-form .auto-form-label {
    color: var(--muted);
}

.auto-faq-form .auto-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auto-faq-form .form-field input,
.auto-faq-form .form-field textarea {
    background: var(--white);
    border-color: var(--line);
    color: var(--text);
}

.auto-faq-form .form-field input::placeholder,
.auto-faq-form .form-field textarea::placeholder {
    color: #a4a4b0;
}

.auto-faq-form .form-field input:focus,
.auto-faq-form .form-field textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 195, 208, 0.12);
}

.auto-faq-form .chip-label {
    background: var(--white);
    border-color: var(--line);
    color: var(--muted);
}

.auto-faq-form .checkbox-chip:hover .chip-label {
    border-color: rgba(82, 79, 247, 0.35);
    color: var(--black);
}

.auto-faq-form .form-feedback {
    margin: -8px 0 0;
}


/* ---------- Accessibilité : focus visible ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* ---------- Révélations (JS actif uniquement) ---------- */
.auto-js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
}

.auto-js .auto-stat[data-reveal] {
    transform: translateY(24px);
}

.auto-js .auto-stat[data-reveal] .auto-stat-num {
    opacity: 0;
    transform: translateY(14px);
}

.auto-js .auto-stat[data-reveal].is-visible .auto-stat-num {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s var(--ease) 0.1s, transform 0.6s var(--ease) 0.1s;
}

.auto-js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.auto-js .auto-hero [data-hero] {
    opacity: 0;
    transform: translateY(12px);
}

.auto-js .auto-hero.is-ready [data-hero] {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .auto-constat { grid-template-columns: 1fr; gap: 56px; }
    .auto-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auto-pillars { gap: 36px; }
    .auto-panel { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; }
    .auto-faq-grid { grid-template-columns: 1fr; gap: 48px; }
    .auto-faq-aside { position: static; }
}

@media (max-width: 768px) {
    .auto-hero { min-height: 100svh; padding: 130px 24px 90px; background-size: 190% auto; background-position: center 52%; }
    .auto-hero::before { background: radial-gradient(ellipse 62% 38% at 50% 50%, rgba(250, 250, 250, 0.94) 0%, rgba(250, 250, 250, 0.6) 55%, rgba(250, 250, 250, 0) 100%); }
    .auto-section,
    .auto-faq { padding: 90px 24px; }
    .auto-method-stage { padding: 90px 24px; }
    .auto-method-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
    .auto-method-head-side { max-width: none; margin-left: 0; text-align: left; }
    .auto-constat { gap: 40px; }
    .auto-constat-copy { max-width: none; }
    .auto-constat-title { max-width: none; }
    .auto-constat-desc { margin-top: 28px; }
    .auto-stats { grid-template-columns: 1fr; gap: 40px; }
    .auto-pilots-stage { padding: 90px 24px; }
    .auto-tabs { gap: 10px; margin-bottom: 40px; }
    .auto-tab { padding: 11px 18px; font-size: 13px; }
    .auto-panel { grid-template-columns: 1fr; gap: 40px; }
    .auto-panel-art { margin-right: 0; }
    .auto-panel-art img { max-width: none; }
    .auto-stats,
    .auto-net,
    .auto-faq-list { margin-top: 48px; }
    .auto-modules .auto-cases-head { margin-bottom: 40px; }
    .auto-title { max-width: none; }
    .auto-hero-title { letter-spacing: -0.02em; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    /* le SVG animé est remplacé par sa variante figée (mêmes pastilles) */
    .auto-hero { background-image: url("/images/svg/ligne-001-static.svg"); }

    .auto-js [data-reveal],
    .auto-js .auto-stat[data-reveal],
    .auto-js .auto-stat[data-reveal] .auto-stat-num,
    .auto-js .auto-hero [data-hero] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .auto-method.is-pinned .auto-step.is-active .auto-step-num {
        animation: none;
    }

    .auto-tab,
    .auto-pillar {
        transition: none;
    }

    .auto-panel.is-active {
        animation: none;
    }
}
