/* Sophytech — refonte 2026 : bleu nuit et doré de la marque, mobile d'abord, aucune police externe */
:root {
  --navy: #151a6b; --navy-2: #1f27a3; --navy-3: #0c1046; --gold: #f0b400; --gold-2: #ffd257;
  --ink: #141833; --muted: #5d6280; --line: #e3e5f0; --bg: #ffffff; --soft: #f4f5fb; --ok: #12805c; --warn: #b26a00; --ko: #b3261e;
  --r: 14px; --shadow: 0 10px 30px rgba(21, 26, 107, .10);
  --wrap: 1180px; --gut: max(18px, env(safe-area-inset-left));
  --f: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-brand: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--f); color: var(--ink); background: var(--bg); }
img, video { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-3); padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }
.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* boutons */
.btn { display: inline-flex; align-items: center; gap: .5em; min-height: 46px; padding: .6em 1.2em; border-radius: 999px; border: 2px solid var(--navy); background: var(--navy); color: #fff; font: 600 1rem var(--f); text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, color .2s; }
.btn:hover { transform: translateY(-1px); background: var(--navy-2); border-color: var(--navy-2); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy-3); }
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--ghost-d { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--ghost-d:hover { background: var(--soft); color: var(--navy); }
.btn--sm { min-height: 40px; padding: .45em 1em; font-size: .92rem; }
.btn--add.is-added { background: var(--ok); border-color: var(--ok); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* bandeau d'information */
.notice { background: var(--gold); color: var(--navy-3); text-align: center; padding: 8px 16px; font-weight: 600; }

/* en-tête */
.hd { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .18); }
.hd__in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.logo { font: 700 1.45rem/1 var(--f-brand); letter-spacing: .14em; text-decoration: none; white-space: nowrap; }
.logo__a { color: var(--gold); } .logo__b { color: #fff; }
.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a, .nav button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; color: #e6e8ff; background: none; border: 0; font: 500 .96rem var(--f); text-decoration: none; cursor: pointer; white-space: nowrap; }
.nav a:hover, .nav button:hover, .nav [aria-current="page"], .nav .on > button { color: var(--gold); }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.has-sub { position: relative; }
.has-sub ul { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.has-sub ul a { color: var(--ink); }
.has-sub ul a:hover, .has-sub ul a[aria-current="page"] { background: var(--soft); color: var(--navy); }
.has-sub ul .i { color: var(--navy-2); }
.has-sub:hover ul, .has-sub:focus-within ul, .has-sub.open ul { opacity: 1; visibility: visible; transform: none; }
.hd__tools { display: flex; align-items: center; gap: 10px; }
.langs { display: flex; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 3px; }
.langs a { color: #cfd3ff; text-decoration: none; font: 700 .78rem var(--f); letter-spacing: .06em; padding: 6px 9px; border-radius: 999px; }
.langs a[aria-current="true"] { background: var(--gold); color: var(--navy-3); }
.cartbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; }
.cartbtn:hover { background: rgba(255, 255, 255, .1); }
.cartbtn__n { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: var(--navy-3); font: 700 .75rem/20px var(--f); text-align: center; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: #fff; cursor: pointer; }
@media (max-width: 1080px) {
  .burger { display: grid; place-items: center; }
  .nav { position: fixed; inset: 66px 0 auto 0; max-height: calc(100vh - 66px); overflow: auto; background: var(--navy-3); padding: 8px var(--gut) 18px; display: none; margin: 0; }
  body.nav-open .nav { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav button { width: 100%; padding: 13px 8px; font-size: 1.02rem; }
  .has-sub ul { position: static; opacity: 1; visibility: visible; transform: none; display: none; background: rgba(255, 255, 255, .06); box-shadow: none; }
  .has-sub.open ul { display: block; }
  .has-sub ul a { color: #e6e8ff; }
  .has-sub ul .i { color: var(--gold); }
  .logo { font-size: 1.2rem; }
}
@media (max-width: 420px) { .langs a { padding: 6px 7px; } .hd__in { gap: 10px; } }

/* héros */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, var(--navy-2), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; padding: clamp(44px, 8vw, 96px) 0; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-2) 40%, transparent); }
.hero h1 { color: #fff; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: #d7dbff; max-width: 60ch; }
.kicker { color: var(--gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; margin-bottom: .8em; }
.hero__in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.hero__art { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; color: var(--gold); }
.hero__art .i { width: 100%; height: auto; aspect-ratio: 1; padding: 22%; border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); stroke-width: 1.1; }
.hero__art .i:nth-child(2n) { color: #fff; transform: translateY(18px); }
.hero--page { padding: clamp(36px, 6vw, 64px) 0; }
@media (max-width: 820px) { .hero__in { grid-template-columns: 1fr; } .hero__art { display: none; } }

/* sections */
.sec { padding: clamp(36px, 6vw, 72px) 0; }
.sec--soft { background: var(--soft); }
.sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sec__head a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; }

/* rubriques de l'accueil */
.ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 14px; }
.ccard { display: grid; gap: 6px; padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.ccard .i { width: 38px; height: 38px; color: var(--navy-2); }
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.ccard__t { font-weight: 700; color: var(--navy); }
.ccard__d { font-size: .85rem; color: var(--muted); }

/* blocs de texte */
.blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.block { padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { color: var(--gold); margin-top: 2px; }

/* produits */
.filters { display: grid; gap: 12px; margin-bottom: 20px; }
.search { display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.search .i { color: var(--muted); }
.search input { flex: 1; min-height: 46px; border: 0; background: none; font: inherit; outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: 600 .9rem var(--f); cursor: pointer; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard__img { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--line); }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.pcard__ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(160deg, var(--soft), #e9ebf8); color: var(--navy-2); }
.pcard__ph .i { width: 34%; height: auto; stroke-width: 1.2; }
.pcard__ph--lg { aspect-ratio: 1; border-radius: var(--r); }
.badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 99px; font: 700 .78rem var(--f); }
.badge--promo { background: var(--ko); color: #fff; }
.pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
.pcard__body h3 { font-size: 1rem; margin: 0; }
.pcard__body h3 a { color: var(--ink); text-decoration: none; }
.pcard__body .btn { margin-top: auto; justify-content: center; }
.pcard__meta { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.pcard__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.price { font-weight: 800; color: var(--navy); font-size: 1.08rem; }
.price del { color: var(--muted); font-weight: 400; font-size: .85em; }
.price--ask { font-weight: 600; font-size: .92rem; color: var(--muted); }
.stock { font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.stock--instock { background: #e3f5ee; color: var(--ok); } .stock--order { background: #fff2dc; color: var(--warn); } .stock--out { background: #fde7e5; color: var(--ko); }
.noresult { padding: 20px 0; color: var(--muted); }
.crumbs { font-size: .9rem; margin-bottom: 18px; color: var(--muted); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.product__main { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r); display: grid; place-items: center; background: #fff; overflow: hidden; }
.product__main img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { width: 70px; height: 70px; padding: 4px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.thumb.on { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.product__info { display: grid; gap: 12px; }
.product__info h1 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.2rem); margin: 0; }
.product__price .price { font-size: 1.6rem; }
.product__info .small .i { color: var(--navy-2); margin-right: 6px; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } }

/* promotions */
.promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.promo { border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.promo__media { aspect-ratio: 16 / 10; background: var(--soft); display: grid; place-items: center; }
.promo__media img, .promo__media video { width: 100%; height: 100%; object-fit: cover; }
.promo__body { padding: 16px 18px; display: grid; gap: 6px; }

/* actualités */
.ncards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.ncard { border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.ncard__img img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.ncard__body { padding: 16px 18px; display: grid; gap: 6px; }
.ncard__body h3 a { color: var(--navy); text-decoration: none; }
.more { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; }
.art__img { width: 100%; border-radius: var(--r); margin-top: -28px; box-shadow: var(--shadow); position: relative; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }

/* bandeau contact */
.band { background: linear-gradient(120deg, var(--navy-3), var(--navy)); color: #fff; padding: clamp(32px, 5vw, 56px) 0; }
.band__in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.band h2 { color: #fff; margin: 0 0 .3em; }
.band p { margin: 0; color: #d7dbff; }
.band__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* formulaires */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); box-shadow: 0 4px 16px rgba(21, 26, 107, .05); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--navy); }
.form input, .form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c9cce0; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.form input:focus, .form textarea:focus { border-color: var(--navy-2); outline: none; box-shadow: 0 0 0 3px rgba(31, 39, 163, .15); }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.form legend { font-weight: 600; color: var(--navy); padding: 0 6px; }
.form .radio { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); min-height: 40px; }
.form .radio input { width: auto; min-height: 0; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .frow { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.flash { padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.flash--ok { background: #e3f5ee; color: var(--ok); } .flash--ko { background: #fde7e5; color: var(--ko); }
.contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.contact .card p a { display: inline-flex; gap: 8px; align-items: center; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* panier */
.cart { display: grid; gap: 10px; margin-bottom: 22px; }
.cart__row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cart__row img, .cart__ph { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: var(--soft); }
.cart__row a { font-weight: 600; color: var(--ink); text-decoration: none; }
.cart__qty { display: flex; align-items: center; gap: 4px; }
.cart__qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; }
.cart__qty span { min-width: 28px; text-align: center; font-weight: 700; }
.cart__rm { border: 0; background: none; color: var(--ko); cursor: pointer; font-size: .85rem; }
.cart__total { text-align: right; font-size: 1.2rem; font-weight: 800; color: var(--navy); }
@media (max-width: 560px) { .cart__row { grid-template-columns: 56px 1fr; } .cart__qty, .cart__line { grid-column: 2; } }

/* pied de page */
.ft { background: var(--navy-3); color: #c5c9f2; padding: 48px 0 18px; margin-top: 0; }
.ft__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.ft h2 { color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft a { color: #e6e8ff; text-decoration: none; }
.ft a:hover { color: var(--gold); }
.ft p a { display: inline-flex; gap: 8px; align-items: center; }
.logo--ft { display: inline-block; margin-bottom: 12px; }
.soc { display: flex; gap: 10px; }
.soc a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
.ft__c { margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
@media (max-width: 760px) { .ft__in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
/* Mobile : produits sur 2 colonnes */
@media (max-width: 600px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .grid .card__body, .grid .pcard__body { padding: 10px; } .grid button, .grid .btn { font-size: .82rem; padding-inline: 8px; } }
/* Logo rond devant le nom */
.logo { display: inline-flex; align-items: center; }
.logo__img { width: 40px; height: 40px; border-radius: 50%; flex: none; margin-right: 10px; }
@media (max-width: 400px) { .logo__img { width: 32px; height: 32px; } }

/* ===== Accueil dynamique : diaporama photo, bandeau des marques, apparitions au défilement ===== */
.hero__show { position: relative; aspect-ratio: 9 / 7; }
.hero__pics { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .14); }
.hero__show img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: st-show 25s infinite; animation-delay: calc(var(--i) * 5s); }
.hero__show img:first-child { opacity: 1; }
.hero__pics::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 55%, rgba(13, 17, 80, .55)); }
@keyframes st-show { 0% { opacity: 0; transform: scale(1.08); } 4% { opacity: 1; } 20% { opacity: 1; } 24% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
.hero__chip { position: absolute; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(21, 26, 107, .78); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .2); color: var(--gold); animation: st-float 6s ease-in-out infinite; }
.hero__chip .i { width: 30px; height: 30px; }
.hero__chip--a { left: -22px; top: 18%; } .hero__chip--b { right: 24px; top: -22px; color: #fff; animation-delay: -2s; } .hero__chip--c { right: -22px; bottom: 16%; animation-delay: -4s; }
@keyframes st-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero__in > div:first-child > * { animation: st-up .7s both; } .hero__in > div:first-child > :nth-child(2) { animation-delay: .1s; } .hero__in > div:first-child > :nth-child(3) { animation-delay: .2s; } .hero__in > div:first-child > :nth-child(4) { animation-delay: .3s; }
@keyframes st-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) { .hero__show { display: block; aspect-ratio: 16 / 9; margin-top: 8px; } .hero__chip { width: 48px; height: 48px; border-radius: 14px; } .hero__chip .i { width: 22px; height: 22px; } .hero__chip--a { left: 10px; } .hero__chip--c { right: 10px; } }
.brands { position: relative; overflow: hidden; background: var(--navy-3); padding: 14px 0; }
.brands::before, .brands::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.brands::before { left: 0; background: linear-gradient(90deg, var(--navy-3), transparent); } .brands::after { right: 0; background: linear-gradient(-90deg, var(--navy-3), transparent); }
.brands__track { display: flex; gap: 48px; width: max-content; animation: st-marquee 40s linear infinite; }
.brands span { color: rgba(255, 255, 255, .72); font: 700 1.05rem/1 var(--f-brand); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.brands:hover .brands__track { animation-play-state: paused; }
@keyframes st-marquee { to { transform: translateX(-50%); } }
.ccard { position: relative; overflow: hidden; padding: 0 0 16px; }
.ccard__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); margin-bottom: 4px; }
.ccard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ccard:hover .ccard__img img { transform: scale(1.07); }
.ccard > .i { position: absolute; top: 10px; left: 10px; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.ccard__t, .ccard__d { padding: 0 16px; }
.hero--photo { background: linear-gradient(100deg, rgba(13, 17, 80, .96) 0%, rgba(21, 26, 107, .86) 45%, rgba(21, 26, 107, .45) 100%), var(--photo) center / cover no-repeat, var(--navy); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__show img, .hero__chip, .brands__track, .hero__in > div:first-child > * { animation: none !important; }
  .hero__show img:first-child { opacity: 1; } .reveal { opacity: 1; transform: none; transition: none; }
}
/* Madagascar : photo à côté de « Pourquoi Sophytech », photo de Tana derrière le bandeau de contact */
.why__in { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.why__img { position: relative; margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 9 / 7; box-shadow: var(--shadow); }
.why__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.why__img:hover img { transform: scale(1.06); }
.why__img figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 99px; background: rgba(21, 26, 107, .85); color: #fff; font-size: .85rem; font-weight: 600; }
.why .block { margin: 0; }
@media (max-width: 820px) { .why__in { grid-template-columns: 1fr; } }
.band--photo { background: linear-gradient(90deg, rgba(12, 16, 70, .95), rgba(21, 26, 107, .8)), var(--photo) center / cover no-repeat, var(--navy); }
/* Vignettes de l'ancien site : carte à droite du titre, tuiles des sous-rubriques, logos des opérateurs */
.hero__vig { position: relative; justify-self: end; width: min(100%, 380px); aspect-ratio: 3 / 2; border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); animation: st-float 7s ease-in-out infinite; }
.hero__vig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px; opacity: 0; transform: scale(.96); transition: opacity .8s, transform .8s; }
.hero__vig img.on { opacity: 1; transform: none; }
@media (max-width: 820px) { .hero__vig { justify-self: start; width: min(100%, 320px); margin-top: 6px; } }
.sec--tiles { padding-bottom: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.tile { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font: inherit; color: var(--navy); text-align: center; cursor: default; transition: transform .2s, box-shadow .2s, border-color .2s; }
button.tile { cursor: pointer; } button.tile:hover, .tile.on { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.tile__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.tile:hover .tile__img img { transform: scale(1.06); }
.tile__t { font-weight: 700; font-size: .95rem; }
.ops { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.2em; }
.ops img { height: 50px; width: auto; border-radius: 10px; background: #fff; padding: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
@media (prefers-reduced-motion: reduce) { .hero__vig { animation: none; } .hero__vig img { transition: none; } }

/* =====================================================================
   Charte « élégance » (01/12/2026) : bleu nuit profond, or champagne, fonds ivoire,
   titres à empattements, lignes fines et ombres douces. Ces règles priment sur celles du dessus.
   ===================================================================== */
:root {
  --navy: #101a4d; --navy-2: #2b3a8f; --navy-3: #0a1033; --navy-4: #16225e;
  --gold: #c9a24b; --gold-2: #e3c47e; --gold-3: #f4e7c4;
  --ink: #1c2033; --muted: #6a6e7e; --line: #e9e4d8; --bg: #fdfcf9; --soft: #f6f2ea; --card: #ffffff;
  --r: 18px; --shadow: 0 1px 2px rgba(16, 26, 77, .04), 0 12px 32px -12px rgba(16, 26, 77, .18);
  --shadow-lg: 0 2px 6px rgba(16, 26, 77, .05), 0 30px 60px -24px rgba(16, 26, 77, .35);
  --f-title: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--navy-2); }
h1, h2 { font-family: var(--f-title); font-weight: 600; letter-spacing: -.012em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.1rem); line-height: 1.15; }
h3 { color: var(--navy); font-weight: 650; }
::selection { background: var(--gold-3); color: var(--navy-3); }
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-2); font-size: .74rem; font-weight: 600; letter-spacing: .26em; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* boutons : or champagne, contours fins */
.btn { min-height: 48px; padding: .7em 1.5em; border-width: 1px; font-weight: 600; letter-spacing: .02em; box-shadow: none; transition: transform .2s, background .25s, color .25s, box-shadow .25s, border-color .25s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(16, 26, 77, .5); }
.btn--gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: var(--gold); color: var(--navy-3); }
.btn--gold:hover { background: linear-gradient(180deg, #ecd294, var(--gold-2)); border-color: var(--gold-2); box-shadow: 0 12px 28px -10px rgba(201, 162, 75, .7); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--gold-2); color: var(--gold-3); }

/* en-tête : verre dépoli et liseré doré */
.hd { background: rgba(10, 16, 51, .97); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); box-shadow: none; border-bottom: 1px solid rgba(201, 162, 75, .28); }
.hd__in { min-height: 72px; }
.logo { font-size: 1.35rem; letter-spacing: .2em; }
.logo__a { color: var(--gold-2); }
.nav a, .nav button { color: rgba(255, 255, 255, .82); font-weight: 450; font-size: .93rem; letter-spacing: .01em; position: relative; }
.nav > ul > li > a::after, .nav > ul > li > button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav > ul > li > a:hover::after, .nav > ul > li > a[aria-current="page"]::after, .nav .on > button::after, .nav > ul > li > button:hover::after { transform: scaleX(1); }
.nav a:hover, .nav button:hover, .nav [aria-current="page"], .nav .on > button { color: #fff; }
.has-sub ul { border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 10px; }
.has-sub ul a { color: var(--ink); border-radius: 10px; }
.has-sub ul a::after { display: none; }
.has-sub ul a:hover, .has-sub ul a[aria-current="page"] { background: var(--soft); color: var(--navy); }
.has-sub ul .i { color: var(--gold); }
.langs { border-color: rgba(255, 255, 255, .18); }
.langs a { color: rgba(255, 255, 255, .7); font-weight: 600; letter-spacing: .1em; }
.langs a[aria-current="true"] { background: var(--gold); color: var(--navy-3); }
@media (max-width: 1080px) { .nav { inset: 72px 0 auto 0; max-height: calc(100vh - 72px); background: var(--navy-3); border-top: 1px solid rgba(201, 162, 75, .2); } .nav > ul > li > a::after, .nav > ul > li > button::after { display: none; } .has-sub ul { border: 0; box-shadow: none; } .has-sub ul a { color: rgba(255, 255, 255, .85); } }

/* héros : nuit profonde, halo champagne */
.hero { background: radial-gradient(900px 480px at 88% -8%, rgba(201, 162, 75, .16), transparent 60%), radial-gradient(1100px 600px at 10% 120%, rgba(43, 58, 143, .55), transparent 60%), linear-gradient(165deg, var(--navy-4) 0%, var(--navy-3) 100%); }
.hero::after { height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-2) 50%, var(--gold) 80%, transparent); }
.hero .lead { color: rgba(234, 236, 250, .82); font-weight: 400; }
.hero--photo { background: linear-gradient(100deg, rgba(10, 16, 51, .97) 0%, rgba(16, 26, 77, .9) 45%, rgba(16, 26, 77, .55) 100%), var(--photo) center / cover no-repeat, var(--navy-3); }
.hero__pics { border-radius: 22px; border-color: rgba(227, 196, 126, .25); }
.hero__chip { background: rgba(10, 16, 51, .72); border-color: rgba(227, 196, 126, .35); color: var(--gold-2); }
.hero__vig { border-radius: 22px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(227, 196, 126, .3); }

/* marques */
.brands { background: var(--navy-3); border-bottom: 1px solid rgba(201, 162, 75, .18); }
.brands span { color: rgba(227, 196, 126, .62); font-weight: 400; letter-spacing: .3em; font-size: .9rem; }

/* sections et cartes */
.sec { padding: clamp(48px, 7vw, 96px) 0; }
.sec--soft { background: var(--soft); }
.sec__head { margin-bottom: 28px; }
.sec__head h2 { margin: 0; }
.sec__head h2::after { content: ""; display: block; width: 44px; height: 2px; margin-top: 12px; background: var(--gold); }
.sec__head a { color: var(--navy-2); font-size: .92rem; letter-spacing: .02em; }
.ccard, .block, .pcard, .ncard, .promo, .tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 1px 2px rgba(16, 26, 77, .03); }
.ccard:hover, .pcard:hover, button.tile:hover, .tile.on { border-color: rgba(201, 162, 75, .55); box-shadow: var(--shadow); transform: translateY(-4px); }
.ccard > .i { color: var(--navy); background: rgba(253, 252, 249, .94); border: 1px solid var(--line); }
.ccard__t { font-family: var(--f-title); font-size: 1.12rem; font-weight: 600; color: var(--navy); }
.ccard__d { color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; }
.block { padding: 28px; }
.block h2 { font-size: 1.45rem; }
.ticks .i { color: var(--gold); }
.pcard__img { background: #fff; }
.pcard__meta { letter-spacing: .12em; font-size: .7rem; }
.price { color: var(--navy); font-weight: 700; }
.badge--promo { background: var(--navy); color: var(--gold-3); letter-spacing: .04em; }
.chip { border-color: var(--line); background: var(--card); color: var(--navy); font-weight: 500; }
.chip:hover { border-color: var(--gold); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.search input, input, select, textarea { border-color: var(--line) !important; }
input:focus, select:focus, textarea:focus { border-color: var(--gold) !important; box-shadow: 0 0 0 3px rgba(201, 162, 75, .18); outline: none; }
.tile__t { font-family: var(--f-title); font-weight: 600; font-size: 1.02rem; }
.faq summary { font-family: var(--f-title); font-weight: 600; font-size: 1.08rem; }
.faq summary::after { color: var(--gold); }
.why__img { border-radius: 22px; box-shadow: var(--shadow-lg); }
.why__img figcaption { background: rgba(10, 16, 51, .82); color: var(--gold-3); letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; font-weight: 600; }

/* bandeau de contact et pied de page */
.band { padding: clamp(44px, 6vw, 72px) 0; }
.band--photo { background: linear-gradient(90deg, rgba(10, 16, 51, .96), rgba(16, 26, 77, .82)), var(--photo) center / cover no-repeat, var(--navy-3); }
.band h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.band p { color: rgba(234, 236, 250, .78); }
.ft { background: var(--navy-3); color: rgba(234, 236, 250, .72); border-top: 1px solid rgba(201, 162, 75, .25); }
.ft h2 { font-family: var(--f); color: var(--gold-2); font-size: .74rem; font-weight: 600; letter-spacing: .24em; }
.ft a { color: rgba(255, 255, 255, .82); }
.ft a:hover { color: var(--gold-2); }
.ft__c { border-top-color: rgba(255, 255, 255, .08); color: rgba(234, 236, 250, .5); font-size: .82rem; }
.notice { background: var(--gold-3); color: var(--navy-3); }
