/* ==========================================================================
   Cerberus Connect — socle commun (structure, accessibilité, mécanique)
   L'habillage (couleurs, typos, effets) est dans theme.css.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-body); font-size: var(--fs-body, 17px); line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; }
address { font-style: normal; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--sel-bg); color: var(--sel-fg); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
@view-transition { navigation: auto; }

.wrap { width: 100%; max-width: var(--wrap, 1360px); margin-inline: auto; padding-inline: var(--gutter, clamp(20px, 5vw, 72px)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 400; padding: 12px 18px; border-radius: 10px; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600; transition: top .2s ease; }
.skip:focus { top: 12px; }
.todo { display: inline-block; white-space: nowrap; font-family: var(--font-mono, monospace); font-size: .92em; letter-spacing: .02em; }

/* Icônes ----------------------------------------------------------------- */
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: var(--i-stroke, 1.75); stroke-linecap: round; stroke-linejoin: round; }

/* Barre de progression de lecture ----------------------------------------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--progress, var(--accent)); }

/* Boutons ------------------------------------------------------------------ */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none; }
.btn .i { width: 18px; height: 18px; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.btn:hover .i--arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.link-arrow .i { width: 18px; height: 18px; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.link-arrow:hover .i { transform: translateX(4px); }

/* En-tête ------------------------------------------------------------------ */
.hdr { position: sticky; top: 0; z-index: 90; transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease, backdrop-filter .3s ease; }
.hdr__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--hdr-h, 84px); }
.hdr__brand { display: flex; align-items: center; flex: none; text-decoration: none; color: inherit; }
.hdr__actions { display: flex; align-items: center; gap: 12px; }
.hdr__burger { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: var(--nav-gap, 6px); }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; white-space: nowrap; }
.nav__dd-btn .i { width: 15px; height: 15px; transition: transform .3s ease; }
.nav__item--dd.is-open .nav__dd-btn .i { transform: rotate(180deg); }
.dd { position: absolute; top: calc(100% + 12px); left: 50%; width: max-content; min-width: 400px; translate: -50% 0; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1), visibility .22s; z-index: 5; }
.dd::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item--dd.is-open .dd { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .nav__item--dd:hover .dd { opacity: 1; visibility: visible; transform: none; }
  .nav__item--dd:hover .nav__dd-btn .i { transform: rotate(180deg); }
}
.dd__list { display: flex; flex-direction: column; }
.dd__item { display: flex; align-items: flex-start; gap: 14px; text-decoration: none; }
.dd__txt { display: flex; flex-direction: column; gap: 3px; }
.dd__title { display: flex; align-items: baseline; gap: 8px; }
@media (max-width: 1060px) { .nav { display: none; } .hdr__burger { display: inline-flex; } }
@media (max-width: 560px) { .hdr__cta { display: none; } }

/* Menu mobile --------------------------------------------------------------- */
.mmenu { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility .35s; }
.mmenu.is-open { visibility: visible; opacity: 1; }
.mmenu__top { display: flex; align-items: center; justify-content: space-between; height: var(--hdr-h, 84px); flex: none; }
.mmenu__close { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; }
.mmenu__nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding-block: 24px; }
.mmenu__list { display: flex; flex-direction: column; }
.mmenu__list li { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(80ms + var(--i, 0) * 55ms); }
.mmenu.is-open .mmenu__list li { opacity: 1; transform: none; }
.mmenu__link { display: flex; align-items: baseline; gap: 14px; padding: 8px 0; text-decoration: none; }
.mmenu__foot { display: flex; flex-direction: column; gap: 16px; padding-bottom: 32px; flex: none; }
.mmenu__row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.mmenu__row .mmenu__meta { text-align: right; }
.mmenu__cta { width: 100%; }
body.no-scroll { overflow: hidden; }

/* Apparitions au défilement ------------------------------------------------ */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .ln > span { display: inline-block; }
.js .hero__title .ln > span { animation: ln-rise 1.1s cubic-bezier(.19, 1, .22, 1) both; animation-delay: calc(80ms + var(--l, 0) * 110ms); }
@keyframes ln-rise { from { transform: translateY(108%); } to { transform: none; } }

/* Sections ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__inner { position: relative; }
.hero__content { display: flex; flex-direction: column; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.sec { position: relative; padding-block: var(--sec-pad, clamp(76px, 8.4vw, 124px)); }
.sec__head { display: flex; flex-direction: column; gap: 18px; max-width: 900px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec__head--split { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; }
.sec__head--split > div { flex: 1 1 520px; display: flex; flex-direction: column; gap: 18px; }
.sec__intro { max-width: 640px; }
.sec__head--split .sec__intro { flex: 1 1 320px; max-width: 470px; }

.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; opacity: .45; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Cartes expertises ----------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: var(--cards-gap, 20px); }
.card { position: relative; display: flex; flex-direction: column; isolation: isolate; }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card__body { display: flex; flex-direction: column; flex: 1; }
.card__link { text-decoration: none; color: inherit; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card__list { display: flex; flex-direction: column; }
.card__list li { display: flex; align-items: flex-start; gap: 11px; }
.card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; }
.card__more .i { width: 17px; height: 17px; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card__more .i { transform: translateX(4px); }

/* Tuiles ----------------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: var(--tiles-gap, 14px); }
.tile { position: relative; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 600px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile { padding: 20px 16px 22px !important; } .tile__title { font-size: 15.5px !important; } .tile__text { font-size: 13px !important; } }

/* Étapes --------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--steps-gap, 28px); counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; }

/* Pourquoi / histoire ------------------------------------------------------- */
.why { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 96px); }
.why__visual { flex: 1 1 440px; max-width: 540px; }
.why__content { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.why__intro { display: flex; flex-direction: column; gap: 20px; }
.commits { display: flex; flex-direction: column; width: 100%; }
.commit { display: flex; align-items: flex-start; gap: 18px; }
.commit__txt { display: flex; flex-direction: column; gap: 4px; }
.story { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); align-items: flex-start; }
.story__text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 20px; }
.heads { flex: 1 1 440px; display: flex; flex-direction: column; gap: 14px; }
.head { display: flex; gap: 18px; align-items: flex-start; }
.head__txt { display: flex; flex-direction: column; gap: 4px; }
.head__link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin-top: 6px; }
.head__link .i { width: 16px; height: 16px; transition: transform .3s ease; }
.head__link:hover .i { transform: translateX(3px); }
.pledges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--cards-gap, 20px); }
.pledge { position: relative; display: flex; flex-direction: column; gap: 12px; isolation: isolate; }
.base { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); align-items: center; }
.base__text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 20px; }
.facts { flex: 1 1 400px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.fact { display: flex; flex-direction: column; gap: 6px; }
.step__gain { margin-top: auto; }
.step__gain span { display: block; }

/* FAQ ----------------------------------------------------------------------- */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 40px clamp(48px, 7vw, 112px); align-items: start; }
.faq__head { display: flex; flex-direction: column; gap: 20px; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; width: 22px; height: 22px; flex: none; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; border-radius: 2px; background: currentColor; translate: -50% -50%; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa__a { overflow: hidden; }
.qa[open] .qa__a { animation: qa-open .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes qa-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Appel à l'action ---------------------------------------------------------- */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 940px; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 6px; }
.cta__mail { overflow-wrap: anywhere; }

/* Offre, livrables, liens --------------------------------------------------------- */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--offers-gap, 20px); }
.offer { position: relative; display: flex; flex-direction: column; gap: 12px; isolation: isolate; }
.deliver { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px clamp(48px, 7vw, 112px); }
.deliver__col { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.checks { display: flex; flex-direction: column; width: 100%; }
.checks li { display: flex; align-items: flex-start; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: var(--cards-gap, 20px); }
.rel { position: relative; display: flex; align-items: center; gap: 22px; text-decoration: none; color: inherit; isolation: isolate; }
.rel__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 400px) { .rel { gap: 16px; } .rel__go { display: none; } .rel__title { overflow-wrap: anywhere; hyphens: auto; } }
.rel__go { flex: none; display: inline-flex; align-items: center; justify-content: center; }
.rel__go .i { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.rel:hover .rel__go .i { transform: translateX(4px); }

/* Contact -------------------------------------------------------------------- */
.contact { display: flex; flex-wrap: wrap; gap: 48px clamp(48px, 6vw, 96px); align-items: flex-start; }
.contact__aside { flex: 1 1 320px; display: flex; flex-direction: column; gap: 28px; }
.contact__main { flex: 999 1 560px; min-width: 0; }
.next { display: flex; flex-direction: column; gap: 18px; }
.next__item { display: flex; gap: 16px; align-items: flex-start; }
.next__num { flex: none; display: inline-flex; align-items: center; justify-content: center; }
.contact__info { display: flex; flex-direction: column; gap: 18px; }
.contact__info dt { display: flex; align-items: center; gap: 8px; }
.contact__info dt .i { width: 17px; height: 17px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
@media (max-width: 680px) { .form__grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__input { width: 100%; min-height: 52px; appearance: none; -webkit-appearance: none; border-radius: 0; outline: none; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.field__input--area { min-height: 160px; resize: vertical; line-height: 1.55; }
.field__err { font-size: 13.5px; }
.choices { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 12px; }
.choices__list { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; }
.field--check label { flex: 1; min-width: 0; }
.field--check .field__err { flex-basis: 100%; }
.check { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 1px 0 0; display: grid; place-content: center; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.check::after { content: ""; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s ease; }
.check:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.form__status { margin-top: 22px; }
.form.is-sending .form__submit { pointer-events: none; opacity: .7; }

/* Pages légales -------------------------------------------------------------- */
.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.legal__toc { position: sticky; top: 116px; display: flex; flex-direction: column; gap: 14px; }
.legal__toc ol { display: flex; flex-direction: column; gap: 4px; counter-reset: toc; }
.legal__toc a { display: block; padding: 6px 0; text-decoration: none; }
.legal__body { max-width: 760px; display: flex; flex-direction: column; gap: 48px; }
.legal__sec { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 116px; }
.prose ul { display: flex; flex-direction: column; gap: 8px; padding-left: 0; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 2px; background: currentColor; opacity: .6; }
.prose a { text-underline-offset: 4px; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal__toc { position: static; } }

/* Pages centrées (merci, 404) --------------------------------------------------- */
.hero--center .hero__content { align-items: center; text-align: center; margin-inline: auto; max-width: 860px; }
.hero--center .hero__actions { justify-content: center; }
.big404 { line-height: .8; }

/* Bandeau défilant ---------------------------------------------------------------- */
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-dur, 40s) linear infinite; }
.marquee__group { display: flex; align-items: center; gap: var(--mq-gap, 36px); padding-right: var(--mq-gap, 36px); flex: none; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Pied de page --------------------------------------------------------------------- */
.ftr__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 960px) { .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftr__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr__brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.ftr__col { display: flex; flex-direction: column; gap: 16px; }
.ftr__col ul { display: flex; flex-direction: column; gap: 10px; }
.ftr__link { text-decoration: none; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 10px 24px; }

/* Mouvement réduit ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
@media print {
  .hdr, .mmenu, .progress, .ftr, .sec--cta { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Sélecteur de langue ------------------------------------------------------------ */
.lang { display: inline-flex; align-items: center; flex: none; gap: 2px; padding: 3px; border-radius: 999px; line-height: 1; }
.lang__item { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 0 9px; border-radius: 999px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-decoration: none; color: inherit; transition: background-color .2s ease, color .2s ease; }
.lang--ftr { padding: 2px; }
.lang--ftr .lang__item { min-width: 30px; height: 26px; padding: 0 7px; font-size: 11px; }
.ftr__legal { align-items: center; }
@media (max-width: 360px), (min-width: 561px) and (max-width: 700px) { .hdr .lang { display: none; } }
@media (max-width: 400px) { .form__submit { width: 100%; justify-content: center; padding-inline: 18px; } }
@media (max-width: 360px) { .form__submit { font-size: 14.5px; gap: 8px; } }
