/* =====================================================================
   Page d'accueil IT Shore — refonte « claire » (inspirée de la landing AviLaw)
   Couleurs : celles du logo (Report Green, Field Sage, Graphite, Paper).
   Les effets de scroll sont activés par home.js (classe html.is-scrolly)
   uniquement sur grand écran et si l'utilisateur n'a pas réduit les animations.
   ===================================================================== */

.home {
    --g: var(--btn-green, #5f7a2e);
    --g-deep: var(--btn-green-dark, #4c6225);
    --sage: var(--secondary-color, #94a750);
    --sage-wash: rgba(148, 167, 80, 0.12);
    --ink: #1f2420;
    --muted: #4b524c;
    --line: #e4e7df;
    --card: #ffffff;
    --radius: 16px;
    display: flex;
    flex-direction: column; /* les marges négatives des sections épinglées s'additionnent */
    color: var(--ink);
}

/* Marges gauche/droite identiques sur toute la page */
.home-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}
@media (max-width: 640px) {
    .home-wrap { padding: 0 20px; }
}

.home strong { font-weight: 600; color: var(--ink); }

.home-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--g);
    margin-bottom: 12px;
}

.home h2 {
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 12px;
}

.home-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 44px;
}
.home-section-head p {
    font-size: 1.1rem;
    color: var(--muted);
}

.home-section { padding: 96px 0; position: relative; }
.home-section-tight { padding-top: 24px; }
.home-center { text-align: center; margin-top: 40px; }
.home-note { text-align: center; font-size: 0.85rem; color: #7a807b; margin-top: 18px; }

/* ---------- Boutons et liens ---------- */
.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.home-btn-solid {
    background: var(--g);
    color: #fff;
    box-shadow: 0 10px 24px rgba(95, 122, 46, 0.28);
}
.home-btn-solid:hover { background: var(--g-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(95, 122, 46, 0.34); }
.home-btn-ghost {
    background: #fff;
    color: var(--g-deep);
    border: 2px solid rgba(95, 122, 46, 0.25);
}
.home-btn-ghost:hover { border-color: var(--g); transform: translateY(-2px); }
.home-btn i { transition: transform 0.2s ease; }
.home-btn:hover i { transform: translateX(3px); }

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--g);
}
.home-link:hover { color: var(--g-deep); gap: 12px; }

.home-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.home-chips li {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--sage-wash);
    color: var(--g-deep);
    font-size: 0.85rem;
    font-weight: 500;
}

/* =====================================================================
   HERO
   ===================================================================== */
.home-hero { padding: 170px 0 40px; position: relative; overflow-x: clip; /* seul l'axe horizontal est rogné : l'ombre de la vidéo reste entière */ }
.home-hero::before {
    /* halo discret aux couleurs du logo */
    content: '';
    position: absolute;
    top: -240px;
    right: -180px;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(148, 167, 80, 0.18), transparent 65%);
    pointer-events: none;
}
.home-hero-grid { position: relative; }
.home-hero-copy { max-width: 820px; margin: 0 auto; text-align: center; }
.home-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 22px;
}
.home-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.6; margin-bottom: 32px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 22px; }
.home-proof { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; font-size: 0.92rem; color: var(--muted); }
.home-proof i { color: var(--g); margin-right: 6px; }

/* Entrée du hero au chargement */
.home-hero-copy > * { animation: home-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.home-hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.home-hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.home-hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.home-hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes home-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Vidéo ---------- */
.home-video {
    position: relative;
    margin-top: 64px;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    background: #1d221c;
    box-shadow: 0 30px 80px rgba(31, 36, 32, 0.25);
    border: 6px solid #fff;
    transform-origin: center top;
    will-change: transform;
}
.home-video-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s; }
.home-video.has-video .home-video-media { opacity: 1; }
.home-video.has-video .home-video-placeholder { display: none; }
.home-video-controls { position: absolute; right: 18px; bottom: 18px; display: none; }
.home-video.has-video .home-video-controls { display: flex; gap: 10px; }
.home-video-btn {
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Emplacement animé tant que la vidéo n'est pas fournie */
.home-video-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(148, 167, 80, 0.35), transparent 45%),
        radial-gradient(circle at 75% 80%, rgba(95, 122, 46, 0.45), transparent 50%),
        linear-gradient(135deg, #1d221c, #2b3326);
}
.home-video-logo {
    width: min(34%, 280px); height: auto;
    background: #fff; padding: 18px 26px; border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    animation: home-float 6s ease-in-out infinite;
}
.home-video-orbit { position: absolute; inset: 0; }
.home-video-chip {
    position: absolute;
    left: 50%; top: 50%;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f1f4ec; font-size: 0.95rem; font-weight: 500; white-space: nowrap;
    backdrop-filter: blur(6px);
    animation: home-orbit 18s linear infinite;
    animation-delay: calc(var(--i) * -4.5s);
}
.home-video-chip i { color: #b9cf6a; }
@keyframes home-orbit {
    from { transform: translate(-50%, -50%) rotate(0deg) translateX(min(34vw, 380px)) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg) translateX(min(34vw, 380px)) rotate(-360deg); }
}
@keyframes home-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* =====================================================================
   LOGOS CLIENTS
   ===================================================================== */
.home-logos { padding: 72px 0 40px; }
.home-logos-title { text-align: center; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; color: var(--ink); margin-bottom: 36px; }
.home-marquee {
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.home-marquee-track {
    display: flex; flex-shrink: 0; gap: 72px; padding-right: 72px; align-items: center;
    animation: home-marquee 32s linear infinite;
}
.home-marquee:hover .home-marquee-track { animation-play-state: paused; }
@keyframes home-marquee { to { transform: translateX(-100%); } }
.home-marquee img {
    height: 76px; width: auto; max-width: 220px; object-fit: contain;
    transition: transform 0.3s ease;
}
.home-marquee img:hover { transform: scale(1.06); }
.home-marquee li { display: flex; align-items: center; }
.home-logo-word {
    font-size: 2.2rem; font-weight: 800; letter-spacing: 0.04em; color: var(--ink);
}
.home-logo-slot {
    display: inline-flex; align-items: center; justify-content: center;
    width: 160px; height: 56px; border-radius: 12px;
    border: 1.5px dashed #cfd5c6; color: #9aa196; font-size: 0.85rem;
}

/* =====================================================================
   SECTIONS ÉPINGLÉES (stage)
   Sans JS / mobile : sections normales. Avec html.is-scrolly : la section
   reste fixe à l'écran pendant que son contenu évolue au fil du scroll.
   ===================================================================== */
.home-stage { position: relative; padding: 96px 0; }
.is-scrolly .home-stage { padding: 0; }
.is-scrolly .home-stage-sticky {
    position: sticky; top: 0; height: 100vh;
    display: flex; align-items: center;
    padding-top: 100px; /* header flottant */
    overflow: hidden;
    pointer-events: none;
}
.is-scrolly .home-stage-content { pointer-events: auto; }
.is-scrolly [data-reveal-at] { will-change: opacity, transform; }

/* ---------- Pôles d'expertise : cartes empilées ---------- */
.home-stack { display: grid; gap: 28px; }
.home-stack-card {
    min-height: var(--card-h, auto);
    border-radius: 28px;
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid var(--line);
    box-shadow: 0 -10px 40px rgba(31, 36, 32, 0.06), 0 24px 60px rgba(31, 36, 32, 0.08);
    transform-origin: center top;
    will-change: transform;
}
.home-tone-1 { background: #ffffff; }
.home-tone-2 { background: #eef2e3; border-color: #dfe6cc; }
.home-tone-3 { background: #1f2420; border-color: #1f2420; color: #e9ece4; }
.home-tone-4 { background: #5f7a2e; border-color: #5f7a2e; color: #f4f7ec; }

.home-stack-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(20px, 3vw, 36px); }
.home-stack-num { font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--g); }
.home-stack-num small { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; margin-left: 4px; opacity: 0.6; }
.home-stack-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--sage-wash); color: var(--g); font-size: 1.4rem;
}
.home-stack-body { display: grid; gap: 28px; }
@media (min-width: 900px) { .home-stack-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.home-stack-main h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.15; margin-bottom: 16px; color: inherit; }
.home-stack-main p { font-size: 1.15rem; line-height: 1.65; color: var(--muted); }
.home-stack-list { display: grid; gap: 2px; margin-bottom: 20px; }
.home-stack-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--line);
    font-weight: 500; font-size: 1.02rem;
}
.home-stack-list li i { font-size: 0.8rem; color: var(--g); }
.home-stack-ref { font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.home-stack-ref span {
    display: block; margin-bottom: 4px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--g);
}
.home-stack-ref a { color: var(--g); font-weight: 600; }

/* Cartes foncées : couleurs inversées */
.home-tone-3 .home-stack-main p, .home-tone-3 .home-stack-ref,
.home-tone-4 .home-stack-main p, .home-tone-4 .home-stack-ref { color: rgba(240, 244, 234, 0.8); }
.home-tone-3 strong, .home-tone-4 strong { color: #fff; }
.home-tone-3 .home-stack-list li, .home-tone-4 .home-stack-list li { border-color: rgba(255, 255, 255, 0.14); }
.home-tone-3 .home-stack-num, .home-tone-3 .home-stack-list li i, .home-tone-3 .home-stack-ref span, .home-tone-3 .home-stack-ref a { color: #b9cf6a; }
.home-tone-3 .home-stack-icon { background: rgba(185, 207, 106, 0.14); color: #b9cf6a; }
.home-tone-4 .home-stack-num, .home-tone-4 .home-stack-list li i, .home-tone-4 .home-stack-ref span, .home-tone-4 .home-stack-ref a { color: #e4efb8; }
.home-tone-4 .home-stack-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* Grand écran : le titre de la section reste fixe en haut ; les cartes (même hauteur,
   --card-h) se fixent juste en dessous (--stack-top, calculé par home.js), chacune
   14 px plus bas, et la suivante glisse par-dessus. Une fois la 4e carte posée,
   titre et cartes repartent ensemble vers la section suivante. */
.is-scrolly .home-poles-section { padding-bottom: 24px; }
.is-scrolly .home-poles-section .home-section-head {
    position: sticky; top: 96px; z-index: 2;
    margin-bottom: 24px; padding-top: 8px;
}
.is-scrolly .home-poles-section .home-section-head p { font-size: 1rem; }
.home-stack-spacer { display: none; }
.is-scrolly .home-stack { gap: 0; }
.is-scrolly .home-stack-spacer { display: block; height: 30vh; }
.is-scrolly .home-stack-card {
    position: sticky;
    top: calc(var(--stack-top, 300px) + var(--i) * 14px);
    height: var(--card-h, 460px);
}
/* L'espace entre les cartes est mis AU-DESSUS de la suivante : une marge en dessous
   compterait dans la limite du « collant » et décrocherait la carte trop tôt. */
.is-scrolly .home-stack-card + .home-stack-card { margin-top: 45vh; }
/* Écrans peu hauts : cartes plus compactes pour tenir sous le titre */
.is-scrolly .home-stack.is-compact .home-stack-card { padding: 28px 36px; }
.is-scrolly .home-stack.is-compact .home-stack-top { margin-bottom: 14px; }
.is-scrolly .home-stack.is-compact .home-stack-num { font-size: 2rem; }
.is-scrolly .home-stack.is-compact .home-stack-list li { padding: 8px 0; }
.is-scrolly .home-stack.is-compact .home-stack-main p { font-size: 1.02rem; }

/* ---------- Méthode ---------- */
.home-steps { position: relative; display: grid; gap: 22px; list-style: none; }
.home-steps-rail { display: none; }
@media (min-width: 900px) {
    .home-steps { grid-template-columns: repeat(5, 1fr); gap: 20px; padding-top: 8px; }
    .home-steps-rail { display: block; position: absolute; left: 10%; right: 10%; top: 30px; height: 3px; background: var(--line); border-radius: 3px; }
    .home-steps-rail i { position: absolute; inset: 0; background: var(--g); transform-origin: left; transform: scaleX(1); border-radius: 3px; }
}
.home-step {
    position: relative; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 64px 18px 24px; box-shadow: 0 8px 24px rgba(31, 36, 32, 0.05);
}
.home-step-dot {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--g); color: #fff; font-weight: 700; box-shadow: 0 0 0 6px #f9f9f9;
}
.home-step h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.home-step p { font-size: 0.95rem; color: var(--muted); line-height: 1.55; }
@media (min-width: 900px) {
    .home-step { background: transparent; border: 0; box-shadow: none; padding-top: 70px; }
}

/* =====================================================================
   CARROUSELS (témoignages, projets) : un seul élément affiché
   ===================================================================== */
.home-carousel { max-width: 980px; margin: 0 auto; }
.home-carousel-viewport { position: relative; display: grid; }
.home-carousel-viewport > * {
    grid-area: 1 / 1;
    opacity: 0; visibility: hidden;
    transform: translateX(40px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}
.home-carousel-viewport > .is-active { opacity: 1; visibility: visible; transform: none; }
.home-carousel-viewport > .is-leaving { transform: translateX(-40px); }
.home-carousel-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.home-arrow {
    width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
    border: 1.5px solid var(--line); background: #fff; color: var(--ink);
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.home-arrow:hover { border-color: var(--g); color: var(--g); transform: translateY(-2px); }
.home-dots { display: flex; gap: 8px; }
.home-dots button {
    width: 10px; height: 10px; border-radius: 99px; border: 0; cursor: pointer;
    background: #d3d8cc; transition: width 0.3s, background 0.3s;
}
.home-dots button[aria-current='true'] { width: 28px; background: var(--g); }

.home-quote {
    display: flex; flex-direction: column; justify-content: center;
    background: #fff; border: 1px solid var(--line); border-radius: 24px;
    padding: clamp(28px, 5vw, 56px); box-shadow: 0 24px 60px rgba(31, 36, 32, 0.08);
    margin: 0;
}
.home-quote blockquote { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.45; font-weight: 500; color: var(--ink); margin: 0 0 28px; }
.home-quote blockquote strong { color: var(--g-deep); font-weight: 600; }
.home-quote figcaption { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.95rem; }
.home-quote figcaption strong { display: block; font-size: 1.02rem; }
.home-quote-logo {
    width: 76px; height: 56px; flex-shrink: 0; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line); padding: 6px;
}
.home-quote-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.home-quote-avatar {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--sage-wash); color: var(--g-deep); font-weight: 700;
}

.home-project {
    background: #fff; border: 1px solid var(--line); border-radius: 24px;
    box-shadow: 0 24px 60px rgba(31, 36, 32, 0.08);
    display: flex; flex-direction: column; justify-content: center;
}
.home-project-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.home-project-icon {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--sage-wash); color: var(--g); font-size: 1.15rem;
}
.home-project-text { padding: clamp(28px, 4vw, 48px); }
.home-project-head .home-project-client { margin: 0 !important; }
.home-project-client {
    font-size: 0.8rem !important; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--g) !important; margin-bottom: 6px !important;
}
.home-project-text .home-chips { margin: 0 0 22px; }
.home-project h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.home-project p { font-size: 1.08rem; color: var(--muted); margin-bottom: 22px; }

/* =====================================================================
   FAQ (comme AviLaw)
   ===================================================================== */
.home-faq { display: grid; gap: 40px; }
@media (min-width: 992px) {
    .home-faq { grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
    .home-faq-side { position: sticky; top: 130px; }
}
.home-faq-side h2 { margin-bottom: 14px; }
.home-faq-side p { color: var(--muted); margin-bottom: 20px; }
.home-faq-list { display: grid; gap: 12px; }
.home-faq-list details {
    background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); border-radius: var(--radius);
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.home-faq-list details[open] { background: #fff; border-color: rgba(95, 122, 46, 0.35); box-shadow: 0 18px 40px rgba(31, 36, 32, 0.08); }
.home-faq-list summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 22px 24px;
}
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.home-faq-plus {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); background: #fff; color: var(--g); font-size: 1.3rem; line-height: 1;
    transition: transform 0.25s ease;
}
.home-faq-list details[open] .home-faq-plus { transform: rotate(45deg); }
.home-faq-list details > p { padding: 0 24px 24px; margin-top: -4px; color: var(--muted); line-height: 1.7; }
.home-faq-list details > p a { color: var(--g); font-weight: 600; }

/* Ancres : laisser la place au header flottant */
.home [id] { scroll-margin-top: 110px; }

/* Animations désactivées si demandé par le système */
@media (prefers-reduced-motion: reduce) {
    .home-hero-copy > *, .home-video-logo, .home-video-chip, .home-marquee-track { animation: none !important; }
}

/* Petit écran : l'emplacement vidéo garde seulement le logo */
@media (max-width: 640px) {
    .home-video-orbit { display: none; }
    .home-hero { padding-top: 140px; }
}

/* ---------- Témoignages : thème de chaque citation ---------- */
.home-quote-theme {
    align-self: flex-start;
    margin-bottom: 18px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--sage-wash); color: var(--g-deep);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}

/* =====================================================================
   PROJETS : liste à gauche, détail à droite (différent du carrousel des témoignages)
   ===================================================================== */
.home-projects { display: grid; gap: 24px; }
@media (min-width: 900px) {
    .home-projects { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: stretch; }
}
.home-projects-list { display: grid; gap: 6px; align-content: start; }
.home-projects-list button {
    width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
    padding: 12px 14px; border-radius: 14px; border: 1px solid transparent;
    background: transparent; cursor: pointer; font-family: inherit; color: var(--ink);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.home-projects-list button:hover { background: rgba(255, 255, 255, 0.7); }
.home-projects-list button[aria-selected='true'] {
    background: #fff; border-color: var(--line); box-shadow: 0 10px 24px rgba(31, 36, 32, 0.06);
}
.home-projects-list button[aria-selected='true'] .home-project-icon { background: var(--g); color: #fff; }
.home-projects-label { display: flex; flex-direction: column; min-width: 0; }
.home-projects-label strong { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.home-projects-label small { font-size: 0.82rem; color: #7a807b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.home-projects-panels { position: relative; display: grid; }
.home-projects-panel {
    grid-area: 1 / 1;
    position: relative; overflow: hidden;
    border-radius: 24px;
    background: #eef2e3; border: 1px solid #dfe6cc;
    padding: clamp(28px, 4vw, 52px);
    display: flex; flex-direction: column; justify-content: center;
    animation: home-panel-in 0.45s ease both;
}
.home-projects-panel[hidden] { display: none; }
@keyframes home-panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.home-projects-watermark {
    position: absolute; right: -10px; bottom: -24px;
    font-size: 11rem; color: rgba(95, 122, 46, 0.08); pointer-events: none;
}
.home-projects-panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; line-height: 1.2; margin-bottom: 14px; color: var(--ink); position: relative; }
.home-projects-panel > p:not(.home-project-client) { font-size: 1.1rem; color: var(--muted); line-height: 1.65; margin-bottom: 20px; position: relative; max-width: 560px; }
.home-projects-panel .home-chips { margin: 0 0 22px; position: relative; }
.home-projects-panel .home-chips li { background: #fff; }
.home-projects-panel .home-link { position: relative; }

/* =====================================================================
   NOS LOGICIELS : grille de produits (avec ou sans capture)
   ===================================================================== */
.home-prods { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .home-prods { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
    .home-prods { grid-template-columns: repeat(6, 1fr); }
    .home-prod { grid-column: span 3; }               /* logiciels sans capture : 2 par ligne */
    .home-prod-wide { grid-column: span 2; }          /* captures : 3 par ligne */
    .home-prod-wide:nth-child(-n+2) { grid-column: span 3; } /* les 2 premiers en grand */
}
.home-prod {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: 22px;
    box-shadow: 0 10px 30px rgba(31, 36, 32, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-prod:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(31, 36, 32, 0.1); }
.home-prod-shot { aspect-ratio: 16 / 10; overflow: hidden; background: #eef2e3; border-bottom: 1px solid var(--line); }
.home-prod-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 0.5s ease; }
.home-prod:hover .home-prod-shot img { transform: scale(1.04); }
.home-prod-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.home-prod-head { display: flex; align-items: center; gap: 12px; }
.home-prod-head h3 { font-size: 1.2rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.home-prod-domain { font-size: 0.8rem; color: #7a807b; margin: 2px 0 0; }
.home-prod-badge {
    margin-left: auto; flex-shrink: 0; padding: 4px 10px; border-radius: 999px;
    background: var(--sage-wash); color: var(--g-deep); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
}
.home-prod-body > p { color: var(--muted); font-size: 0.98rem; line-height: 1.6; }
.home-prod-body .home-link { margin-top: auto; font-size: 0.95rem; }

/* =====================================================================
   VERSION SOMBRE (page Parlons IA) — mêmes composants que l'accueil,
   aux couleurs du « Night World » : fond Signal Void, accent Signal Lime.
   ===================================================================== */
.home.home-dark {
    --g: #8ee05a;
    --g-deep: #b6f08d;
    --sage-wash: rgba(142, 224, 90, 0.12);
    --ink: #f3f5f1;
    --muted: #a7b3ac;
    --line: rgba(255, 255, 255, 0.09);
    color: var(--ink);
}
.home-dark .home-btn-solid { background: #8ee05a; color: #0b0f0d; box-shadow: 0 10px 30px rgba(142, 224, 90, 0.25); }
.home-dark .home-btn-solid:hover { background: #a5ea78; }
.home-dark .home-btn-ghost { background: transparent; color: #f3f5f1; border-color: rgba(255, 255, 255, 0.2); }
.home-dark .home-btn-ghost:hover { border-color: #8ee05a; }
.home-dark .home-prod,
.home-dark .home-projects-list button[aria-selected='true'],
.home-dark .home-faq-list details,
.home-dark .home-arrow,
.home-dark .home-faq-plus {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}
.home-dark .home-faq-list details[open] { background: rgba(255, 255, 255, 0.07); border-color: rgba(142, 224, 90, 0.35); box-shadow: none; }
.home-dark .home-prod:hover { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); border-color: rgba(142, 224, 90, 0.3); }
.home-dark .home-projects-list button { color: var(--ink); }
.home-dark .home-projects-list button:hover { background: rgba(255, 255, 255, 0.04); }
.home-dark .home-projects-list button[aria-selected='true'] .home-project-icon { background: #8ee05a; color: #0b0f0d; }
.home-dark .home-projects-panel { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.09); }
.home-dark .home-projects-panel .home-chips li { background: rgba(255, 255, 255, 0.06); }
.home-dark .home-step-dot { color: #0b0f0d; box-shadow: 0 0 0 6px #0b0f0d; }
.home-dark .home-step { background: rgba(255, 255, 255, 0.04); }
@media (min-width: 900px) { .home-dark .home-step { background: transparent; } }
.home-dark .home-prod-shot { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.09); }
.home-dark .home-prod-domain, .home-dark .home-projects-label small { color: #8a968f; }

/* Hero IA : réseau animé en fond */
.ia-hero-x { position: relative; }
.ia-hero-x .ai-animation { position: absolute; inset: 0; opacity: 0.55; pointer-events: none; }
.ia-hero-x .home-wrap { position: relative; z-index: 1; }
.ia-accent { color: #8ee05a; }

/* Services IA : 3 par ligne */
@media (min-width: 1080px) {
    .ia-services-x .home-prod { grid-column: span 2; }
    .ia-sectors .home-prod, .ia-sectors .home-prod-wide:nth-child(-n+2) { grid-column: span 3; }
}

/* Exemples de cas d'usage */
.ia-case-panel { justify-content: flex-start; }
.ia-case-photo { position: relative; margin: -8px 0 22px; border-radius: 16px; overflow: hidden; aspect-ratio: 21 / 8; }
.ia-case-photo img { width: 100%; height: 100%; object-fit: cover; }
.ia-case-flag {
    position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px;
    background: rgba(11, 15, 13, 0.75); color: #8ee05a; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.ia-case-cols { display: grid; gap: 20px; margin-bottom: 18px; }
@media (min-width: 700px) { .ia-case-cols { grid-template-columns: 1fr 1fr; } }
.ia-case-cols ul { display: grid; gap: 8px; }
.ia-case-cols li { color: var(--muted); line-height: 1.55; padding-left: 16px; position: relative; }
.ia-case-cols li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.ia-case-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.ia-case-before { color: #e28a7a; }
.ia-case-after { color: #8ee05a; }
.ia-case-result { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink); padding-top: 14px; border-top: 1px solid var(--line); }
.ia-case-result i { color: #8ee05a; }
