/* Site sofiasi.com : même charte que sofiabackup.com (vert SofiaSi #95AB00, orange #FF991A, polices Inter et Sora
   hébergées ici, licence SIL OFL). Thème sombre ou clair selon la préférence du système ; le bouton de l'en-tête
   impose l'un ou l'autre (attribut data-theme posé par js/theme.js avant l'affichage). */

@font-face { font-family: Inter; src: url("../fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Sora; src: url("../fonts/sora-latin-wght.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
    --ground: #0B1210;
    --deep: #080E0C;
    --panel: #0F1814;
    --card: #121C18;
    --raised: #17231E;
    --hover: #15211C;
    --line: #22302A;
    --line-soft: #1C2722;
    --line-strong: #2B3A32;
    --text: #EEF2EA;
    --muted: #B4C0B7;
    --faint: #93A198;
    --nav: #C9D3CB;
    --strong: #fff;
    --well: #0E1613;
    --frame: #26332C;
    --header-bg: rgba(11, 18, 16, .86);
    --ghost-line: #3A4A41;
    --green: #95AB00;
    --green-text: #B5CC1A;
    --orange: #FF991A;
    --orange-text: #FF991A;
    --ink-on-orange: #1A1205;
    --ink-on-green: #10170A;
    --link-hover: #D4E85A;
    --error: #FFB46B;
    --shadow: 0 40px 80px rgba(0, 0, 0, .5);
    --menu-shadow: 0 20px 40px rgba(0, 0, 0, .5);
    --radius: 18px;
    --display: Sora, Inter, system-ui, sans-serif;
    --logo-filter: invert(1);
    color-scheme: dark;
}

/* Thème clair : celui du système (sans choix du visiteur), ou choisi par le bouton. Mêmes teintes que sofiabackup.com. */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --ground: #F6F7F3; --deep: #ECEFE8; --panel: #FFFFFF; --card: #FFFFFF; --raised: #EFF2EA; --hover: #F1F4EC;
        --line: #D8DED2; --line-soft: #E3E8DE; --line-strong: #BFC8B9; --text: #141A16; --muted: #4B584F; --faint: #5F6D63;
        --nav: #33403A; --strong: #000; --well: #FFFFFF; --frame: #D8DED2; --header-bg: rgba(246, 247, 243, .9);
        --ghost-line: #AEB8A8; --green-text: #586700; --orange-text: #A85800; --link-hover: #3F4A00; --error: #A04A00;
        --shadow: 0 30px 60px rgba(20, 26, 22, .14); --menu-shadow: 0 20px 50px rgba(20, 26, 22, .14);
        --logo-filter: none;
        color-scheme: light;
    }
}
:root[data-theme="light"] {
    --ground: #F6F7F3; --deep: #ECEFE8; --panel: #FFFFFF; --card: #FFFFFF; --raised: #EFF2EA; --hover: #F1F4EC;
    --line: #D8DED2; --line-soft: #E3E8DE; --line-strong: #BFC8B9; --text: #141A16; --muted: #4B584F; --faint: #5F6D63;
    --nav: #33403A; --strong: #000; --well: #FFFFFF; --frame: #D8DED2; --header-bg: rgba(246, 247, 243, .9);
    --ghost-line: #AEB8A8; --green-text: #586700; --orange-text: #A85800; --link-hover: #3F4A00; --error: #A04A00;
    --shadow: 0 30px 60px rgba(20, 26, 22, .14); --menu-shadow: 0 20px 50px rgba(20, 26, 22, .14);
    --logo-filter: none;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--ground); color: var(--text); font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
#contenu { flex: 1 0 auto; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
a { color: var(--green-text); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.icon { flex: 0 0 auto; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 900px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--orange); color: var(--ink-on-orange); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.kicker { color: var(--orange-text); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.kicker.green { color: var(--green-text); }
.h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.lead { font-size: 19px; color: var(--muted); line-height: 1.6; max-width: 62ch; }
.muted { color: var(--faint); }
.section { padding: 96px 0; }
.section-alt { background: var(--deep); border-block: 1px solid var(--line-soft); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; align-items: center; }

/* ----- boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 12px; font: 600 16px Inter, sans-serif; text-decoration: none; border: 0; cursor: pointer; transition: background .2s, box-shadow .2s, border-color .2s, color .2s; }
.btn-primary { background: var(--orange); color: var(--ink-on-orange); }
.btn-primary:hover { background: #FFAD45; color: var(--ink-on-orange); box-shadow: 0 10px 30px rgba(255, 153, 26, .35); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--ghost-line); }
.btn-ghost:hover { border-color: var(--green-text); color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.mt { margin-top: 24px; }

/* ----- en-tête */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 140px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; flex: 1; font-size: 15px; }
.main-nav > a, .nav-drop > a, .footer-links a { color: var(--nav); text-decoration: none; font-weight: 500; }
.main-nav a:hover, .footer-links a:hover { color: var(--strong); }
.main-nav a[aria-current="page"] { color: var(--strong); }
.nav-drop { position: relative; }
.nav-drop > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav-drop .sub { position: absolute; left: -12px; top: 100%; padding-top: 14px; display: none; }
.nav-drop:hover .sub, .nav-drop:focus-within .sub { display: block; }
.sub-inner { min-width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--menu-shadow); display: grid; gap: 2px; }
.sub-inner a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.sub-inner a:hover { background: var(--raised); color: var(--text); }
.sub-inner small { display: block; color: var(--faint); font-size: 13px; font-weight: 400; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme-toggle { width: 40px; padding: 0; }
.theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
    :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: inline; }
}
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: inline; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line-strong); color: var(--text); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; right: 0; top: 52px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; min-width: 240px; box-shadow: var(--menu-shadow); }
.mobile-nav nav a { color: var(--text); text-decoration: none; padding: 12px 14px; border-radius: 8px; }
.mobile-nav nav a.indent { padding-left: 28px; color: var(--muted); }
.mobile-nav nav a:hover { background: var(--raised); }
@media (max-width: 900px) {
    .main-nav { display: none; }
    .mobile-nav { display: block; }
}
@media (max-width: 520px) { .header-actions .header-cta { display: none; } }

/* ----- pied */
.site-footer { margin-top: auto; border-top: 1px solid var(--line-soft); background: var(--deep); color: var(--faint); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 52px; padding-bottom: 28px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.footer-logo { width: 200px; filter: var(--logo-filter); opacity: .9; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font: 600 13px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 4px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col address { font-style: normal; display: grid; gap: 10px; }
.footer-col address p { display: flex; gap: 10px; align-items: flex-start; }
.footer-col address .icon { color: var(--green-text); margin-top: 2px; }
.footer-col address a { color: var(--nav); text-decoration: none; }
.footer-col address a:hover { color: var(--strong); }
.footer-bottom { padding-top: 20px; padding-bottom: 32px; padding-right: 80px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-bottom a { color: var(--nav); }

/* ----- animations */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes glow { 0%, 100% { opacity: .35; } 50% { opacity: .7; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .36s; }
.js .reveal:not(.in) { opacity: 0; }
.reveal.in { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal:not(.in) { opacity: 1; }
}

/* ----- héros */
.hero { position: relative; padding: 88px 0 80px; overflow-x: clip; }
.hero-row { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-halo { position: absolute; width: 560px; height: 560px; right: -100px; top: 20px; border-radius: 50%; background: radial-gradient(circle, rgba(149, 171, 0, .28), rgba(149, 171, 0, 0) 65%); pointer-events: none; animation: glow 5s ease-in-out infinite; }
:root[data-theme="light"] .hero-halo { opacity: .55; }
.hero-copy { flex: 1 1 480px; min-width: 0; position: relative; display: flex; flex-direction: column; gap: 26px; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--nav); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-text); }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--green-text); }
.points { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--faint); list-style: none; margin: 0; padding: 0; }
.points li { display: inline-flex; align-items: center; gap: 6px; }
.points .icon { color: var(--green-text); }

/* Capture d'écran présentée dans une fenêtre d'application. */
.hero-shot { flex: 1 1 460px; min-width: 0; position: relative; }
.window { background: var(--card); border: 1px solid var(--frame); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: 13px; color: var(--faint); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; background: var(--line-strong); }
.window-bar i:nth-child(1) { background: #FF5F57; } .window-bar i:nth-child(2) { background: #FEBC2E; } .window-bar i:nth-child(3) { background: #28C840; }
.window-bar span { margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.window { display: block; color: inherit; text-decoration: none; transition: border-color .3s; }
a.window:hover { border-color: var(--green); color: inherit; }
.window-body { display: block; background: #fff; }
.window-body img { width: 100%; }

/* ----- chiffres */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.stat { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); display: grid; gap: 8px; }
.stat b { display: block; font: 800 clamp(30px, 3.2vw, 40px)/1.1 var(--display); color: var(--green-text); white-space: nowrap; }
.stat:nth-child(even) b { color: var(--orange-text); }
.stat p { color: var(--muted); }

/* ----- cartes */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: flex; flex-direction: column; gap: 14px; transition: border-color .35s, background .35s; }
.card:hover { border-color: var(--green); background: var(--hover); }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); line-height: 1.6; }
.chip { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(149, 171, 0, .14); color: var(--green-text); flex: 0 0 auto; }
.chip.o { background: rgba(255, 153, 26, .14); color: var(--orange-text); }
.chip.sm { width: 40px; height: 40px; border-radius: 11px; }

.product-card { padding: 0; overflow: hidden; color: var(--text); text-decoration: none; }
.product-card:hover { color: var(--text); }
.product-card .shot { aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); }
.product-card .shot img { width: 100%; height: 100%; object-fit: contain; }
.product-card .body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-card .head { display: flex; align-items: center; gap: 14px; }
.product-card .tagline { color: var(--green-text); font-weight: 600; font-size: 15px; }
.more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--orange-text); }

/* ----- appel à l'action */
.cta-band { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(120% 140% at 100% 0%, rgba(149, 171, 0, .16), transparent 55%), var(--panel); }
.cta-band .copy { display: grid; gap: 12px; max-width: 640px; }
.cta-band p { color: var(--muted); font-size: 18px; }

/* ----- en-tête de page */
.page-hero { position: relative; padding: 64px 0 56px; overflow-x: clip; border-bottom: 1px solid var(--line-soft); }
.page-hero .hero-halo { width: 460px; height: 460px; top: -120px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; }
.page-hero .inner { position: relative; display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--faint); }
.crumbs a { color: var(--nav); text-decoration: none; }
.crumbs a:hover { color: var(--strong); }
.h1-sub { display: block; margin-top: 14px; font: 500 clamp(18px, 2vw, 22px)/1.4 Inter, sans-serif; letter-spacing: 0; color: var(--muted); }

/* ----- liste des logiciels */
.product-rows { display: grid; gap: 28px; }
.product-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
.product-row .window { position: sticky; top: 96px; }
.product-row .head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.product-row h2 { font-size: clamp(26px, 3vw, 34px); }
.product-row h2 a { color: var(--text); text-decoration: none; }
.product-row h2 a:hover { color: var(--green-text); }
.product-row .tagline { color: var(--green-text); font-weight: 600; margin-bottom: 16px; }

/* ----- page d'un logiciel */
.product-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding-block: 64px 96px; align-items: start; }
.toc { position: sticky; top: 92px; display: grid; gap: 18px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--faint); text-decoration: none; font-size: 15px; }
.toc a:hover { color: var(--text); border-left-color: var(--green); }
.toc .btns { display: grid; gap: 10px; }
.product-content { display: grid; gap: 72px; min-width: 0; }
.product-content h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 18px; }
.intro { color: var(--muted); font-size: 18px; line-height: 1.6; margin-bottom: 24px; max-width: 75ch; }
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.highlight { padding: 0; overflow: hidden; gap: 0; }
.highlight .shot { display: block; aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); }
.highlight .shot img { width: 100%; height: 100%; object-fit: contain; }
.highlight .body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.highlight h3 { font-size: 18px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; margin: 0; }
.feature { padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); display: grid; gap: 8px; align-content: start; }
.feature dt { display: flex; gap: 10px; align-items: center; font: 700 17px/1.3 var(--display); }
.feature dt .icon { color: var(--green-text); }
.feature dd { margin: 0; color: var(--muted); line-height: 1.6; font-size: 15px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.gallery a { display: block; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.03); }
.zoomable { cursor: zoom-in; }

.video { aspect-ratio: 16 / 9; max-width: 860px; display: grid; place-items: center; align-content: center; gap: 14px; padding: 24px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(80% 90% at 50% 40%, rgba(149, 171, 0, .14), transparent 70%), var(--panel); overflow: hidden; }
.video.playing { padding: 0; display: block; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-play { display: grid; justify-items: center; gap: 14px; border: 0; background: none; color: var(--text); font: 600 17px Inter, sans-serif; cursor: pointer; }
.video-play .play { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink-on-orange); transition: box-shadow .2s; }
.video-play:hover .play { box-shadow: 0 10px 30px rgba(255, 153, 26, .4); }
.video-note { font-size: 14px; color: var(--faint); }

.download { display: inline-flex; align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); text-decoration: none; font-weight: 600; }
.download:hover { border-color: var(--green); color: var(--text); }
.download small { color: var(--faint); font-weight: 400; }

/* ----- texte courant */
.prose { color: var(--muted); line-height: 1.7; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.prose strong { color: var(--text); }
.prose h2 { font-size: 22px; color: var(--text); margin-top: 18px; }
.prose h3 { font-size: 19px; color: var(--text); margin-top: 10px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose ul ul { margin-top: 6px; }
.ticks { list-style: none; padding: 0 !important; display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.ticks li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--nav); font-size: 14px; }
.ticks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-text); }
.page { padding: 64px 0 96px; }

/* ----- questions fréquentes */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 20px 24px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange-text); font-size: 24px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; color: var(--muted); line-height: 1.6; }

/* ----- équipe */
.member { align-items: center; text-align: center; }
.avatar { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(149, 171, 0, .14); color: var(--green-text); font: 700 24px var(--display); border: 1px solid rgba(149, 171, 0, .35); }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 300px)); gap: 20px; }

/* ----- formulaire de contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 32px); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--nav); font-weight: 500; }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--well); color: var(--text); font: 16px Inter, sans-serif; }
.field textarea { min-height: 160px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.req { color: var(--orange-text); }
.field-error, .form-errors { color: var(--error); font-size: 14px; }
.field-error:empty { display: none; }
.form-errors ul { margin: 0 0 18px; padding: 12px 16px 12px 32px; border: 1px solid var(--error); border-radius: 10px; }
.form-errors.validation-summary-valid { display: none; }
.input-validation-error { border-color: var(--error) !important; }
.form-context { display: block; font-size: 15px; margin: 0; padding: 12px 16px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); color: var(--muted); }
.form-context strong { color: var(--text); }
.form-note { margin-top: 16px; font-size: 14px; color: var(--faint); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.captcha { margin-bottom: 22px; }
.captcha-box { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--well); cursor: pointer; font-weight: 600; color: var(--text); }
.captcha-check { width: 22px; height: 22px; margin: 0; accent-color: var(--green); }
.captcha-state { font-weight: 400; font-size: 14px; color: var(--faint); }
.captcha.ok .captcha-box { border-color: var(--green); }
.captcha.ok .captcha-state { color: var(--green-text); }
.captcha .field-error { margin-top: 8px; }

.contact-card { display: grid; gap: 18px; }
.contact-card h2 { font-size: 22px; }
.contact-card address { font-style: normal; display: grid; gap: 14px; }
.contact-card address p { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.contact-card address .icon { color: var(--green-text); margin-top: 2px; }
.contact-card address a { color: var(--text); text-decoration: none; }
.contact-card address a:hover { color: var(--green-text); }

.notice-ok { text-align: center; display: grid; justify-items: center; gap: 14px; padding-block: 48px; }
.status-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; animation: pop .5s cubic-bezier(.2, .7, .2, 1) both; }

/* ----- visionneuse et retour en haut */
.viewer { width: min(96vw, 1280px); max-height: 94vh; padding: 0; border: 1px solid var(--line-strong); border-radius: 16px; background: #fff; overflow: hidden; }
.viewer::backdrop { background: rgba(0, 0, 0, .8); }
.viewer img { max-width: 100%; max-height: 94vh; margin: 0 auto; object-fit: contain; }
.viewer-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--line-strong); color: var(--text); font-size: 20px; text-decoration: none; box-shadow: var(--menu-shadow); }
.to-top:hover { border-color: var(--green-text); color: var(--text); }
.to-top[hidden] { display: none; }

/* ----- écrans étroits */
@media (max-width: 980px) {
    .product-layout { grid-template-columns: 1fr; padding-block: 40px 72px; }
    .toc { position: static; }
    .toc ul { display: flex; flex-wrap: wrap; border-left: 0; gap: 6px; }
    .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin: 0; font-size: 14px; }
    .toc .btns { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .product-row, .contact-grid { grid-template-columns: 1fr; }
    .product-row .window { position: static; }
}
@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .hero { padding: 48px 0 56px; }
    .container { padding: 0 16px; }
    .fields { grid-template-columns: 1fr; }
    .product-content { gap: 56px; }
}
@media (max-width: 400px) {
    .brand img { width: 112px; }
    .header-row { gap: 12px; }
}
