/* =====================================================================
   V2 — demandes de modifications (sept. 2026). Chargé après main.css.
   ===================================================================== */

/* ---------- 1. header transparent inclus dans le hero, blanc au scroll, sticky ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; background: transparent; color: var(--color-ink); border-bottom: 1px solid transparent; transition: background var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.admin-bar .header { top: 32px; }
.header.is-scrolled, .header.is-open { background: #fff; border-bottom-color: var(--color-line); box-shadow: 0 10px 30px -22px rgba(7, 22, 52, .45); }
.nav__list > li > a { color: var(--color-ink-soft); }
.nav__list > li > a:hover, .nav__list > li.is-open > a, .nav__list > li > a.is-active { color: var(--color-ink); background: rgba(7, 22, 52, .06); }
.nav__list > li > a::after { background: var(--color-accent); }
.header__cta { display: flex; align-items: center; gap: .6rem; }
.header .tel { color: var(--color-ink); border-color: rgba(17, 85, 240, .45); background: rgba(255, 255, 255, .55); }
.header .tel:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.header .tel .ico { color: var(--color-accent); }
.header .tel:hover .ico { color: #fff; }
.burger span { background: var(--color-ink); }
.nav__mobile-cta { display: none; }
.hero { padding-top: calc(84px + clamp(3rem, 2.25rem + 3vw, 5.5rem)); }
section[id], article[id] { scroll-margin-top: 76px; }

/* ---------- 0. boutons harmonisés ---------- */
.btn--cta { min-height: 56px; min-width: 220px; padding: 0 2rem; font-size: 1rem; font-weight: 700; letter-spacing: .02em; }
.btn--ghost.btn--cta { border-width: 2px; }

/* ---------- 0. rythme des titres ---------- */
.section__title, .about__title, .letter__title, .contact__title { margin-bottom: 0; }
.section__head, .proof__head, .letter__head, .faq__title { margin-bottom: var(--space-head); }
.about__title { margin-bottom: 1.25rem; }
.contact__title { margin-bottom: 1.5rem; }

/* ---------- 4. satisfaction + phrase de transition ---------- */
.quote p { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }

/* ---------- 5. solutions : cartes sans image, pictogrammes de marque ---------- */
.sol__visual { display: none; }
.sol__body { padding: 1.75rem 1.6rem 1.6rem; gap: .8rem; }
.picto { width: 52px; height: 52px; border-radius: 14px; background: #fff; border: var(--rule); display: grid; place-items: center; box-shadow: var(--shadow-card); }
.picto svg { width: 30px; height: 30px; }
.sol.is-open { grid-column: 1 / -1; }
.sol.is-open .sol__body { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 1.25rem; border-bottom: var(--rule); }
.sol.is-open .sol__title { flex: 1 1 auto; }
.sol.is-open .sol__p { flex-basis: 100%; order: 3; }
.sol.is-open .sol__more { order: 2; margin-top: 0; }
.sol__detail-in { padding: 0 1.6rem; columns: auto !important; }
.sol.is-open .sol__detail-in { padding: 1.75rem 1.6rem 2rem; columns: auto !important; }
.exp-detail { display: grid; gap: 1.75rem; }
.exp-detail__intro { max-width: 78ch; display: grid; gap: .8rem; }
.exp-detail__intro p, .exp-detail__col p, .exp-detail__col li { font-size: 1rem; line-height: 1.7; color: var(--color-ink-soft); margin: 0; }
.exp-detail__cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.exp-detail__col { background: var(--color-bone); border-radius: var(--radius-md); padding: 1.4rem 1.5rem; display: grid; gap: .7rem; align-content: start; }
.exp-detail__col--change { background: var(--color-sky); }
.exp-detail__h { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-deep); margin: 0 0 .2rem; }
.exp-detail__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.exp-detail__col li { position: relative; padding-left: 1.4rem; }
.exp-detail__col li::before { content: ""; position: absolute; left: 0; top: .6em; width: .55rem; height: .55rem; border-radius: 2px; background: var(--color-accent); }
.exp-detail__col strong { color: var(--color-ink); }
.sol__detail-cta { margin-top: 1.75rem; display: flex; justify-content: flex-start; }
.sol__detail-cta .btn { width: auto; }

/* ---------- 6. lettre : fond blanc, une phrase par ligne ---------- */
.letter-wrap { background: #fff; }
.letter { max-width: 780px; margin-inline: auto; background: transparent; border: 0; box-shadow: none; padding: 0; }
.letter__head { border-bottom: 0; padding-bottom: 0; text-align: center; }
.letter__title { max-width: 24ch; margin-inline: auto; font-size: var(--text-2xl); }
.letter .letter__title::after { margin-inline: auto; transform-origin: center; }
.letter__body { max-width: none; }
.letter__body p { font-size: 1.125rem !important; line-height: 1.75 !important; font-weight: 400; color: var(--color-ink-soft) !important; margin: 0 0 .35rem !important; }
.letter__body .letter__salut { margin-bottom: 1rem !important; }
.letter__body mark { background: linear-gradient(transparent 52%, rgba(0, 166, 255, .3) 52%); color: var(--color-ink); font-weight: 700; padding: 0 .1em; border-radius: 0; }
.letter__cta { justify-content: center; margin-top: var(--space-xl); }

/* ---------- 7. derrière DRS Digital + arguments ---------- */
.about { align-items: stretch; }
.portrait { display: flex; flex-direction: column; }
.portrait picture, .portrait > img { flex: 1; display: block; }
.portrait img { height: 100%; aspect-ratio: auto; min-height: 420px; object-fit: cover; object-position: 50% 20%; }
.about__text { display: flex; flex-direction: column; justify-content: center; }
.about__text > p { margin-bottom: 1rem; }
.about__intro { color: var(--color-ink) !important; font-weight: 600; }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: .25rem; }
.team__member { background: var(--color-bone); border-radius: var(--radius-md); padding: 1.2rem 1.25rem; display: grid; gap: .45rem; align-content: start; }
.team__name { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: 1.5rem; line-height: 1; }
.team__name span { display: block; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em; color: var(--color-accent-deep); margin-top: .4rem; }
.team__member p { font-size: .9375rem !important; line-height: 1.6; color: var(--color-muted); margin: 0 !important; }
.about__cta { margin-top: 1.75rem; }
.arguments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.argument { background: #fff; border: var(--rule); border-radius: var(--radius-md); padding: 1.6rem 1.6rem 1.7rem; display: grid; gap: .7rem; align-content: start; }
.argument__t { font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); line-height: 1.3; letter-spacing: -.01em; }
.argument p { color: var(--color-muted); font-size: 1rem; line-height: 1.7; margin: 0; }

/* ---------- 8. FAQ : pas de surlignage ---------- */
.qa__a mark { background: none; padding: 0; font-weight: inherit; }

/* ---------- 9-10. CTA final + formulaire ---------- */
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.steps-list li { display: flex; align-items: flex-start; gap: .9rem; color: var(--color-on-ink); font-size: 1.0625rem; line-height: 1.5; }
.steps-list__n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent); color: #fff; font-weight: 700; font-size: .9375rem; }
.contact__alt { gap: .75rem; margin-top: 2rem; }
.contact__alt .btn .ico { width: 1em; height: 1em; }
.consent__note { grid-column: 1 / -1; margin: -.3rem 0 0 1.8rem; font-size: .8125rem; color: var(--color-muted); }

@media (max-width: 1080px) {
  .about { align-items: start; }
  .portrait img { min-height: 0; aspect-ratio: 4 / 5; }
}
@media (max-width: 900px) {
  .header .header__cta { display: none; }
  .header.is-open .nav { background: #fff; border-bottom: var(--rule); }
  .header.is-open .nav__list > li > a { color: var(--color-ink); }
  .sub-menu a, .header.is-open .sub-menu a { color: var(--color-ink); }
  .sub-menu__hint { color: var(--color-muted); }
  .sub-menu { background: var(--color-bone); }
  .sub-menu a:hover, .header.is-open .sub-menu a:hover { background: var(--color-sky); color: var(--color-accent-deep); }
  .nav__mobile-cta { display: grid; gap: .6rem; margin-top: .9rem; }
  .hero { padding-top: calc(68px + 2.5rem); }
  section[id], article[id] { scroll-margin-top: 64px; }
  .exp-detail__cols, .team, .arguments { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 640px) {
  .btn--cta { min-width: 0; width: 100%; }
  .sol.is-open .sol__body { flex-direction: column; align-items: flex-start; }
  .sol.is-open .sol__more { order: 4; width: 100%; }
  .sol.is-open .sol__detail-in { padding: 1.25rem 1.1rem 1.5rem; }
  .exp-detail__col { padding: 1.1rem; }
  .sol__detail-cta .btn { width: 100%; }
  .letter__body p { font-size: 1.0625rem !important; }
  .argument { padding: 1.25rem 1.1rem; }
}

/* bloc déroulé : hauteur libre (le grid 0fr→1fr tronquait le contenu) */
.sol__detail { display: none; grid-template-rows: none; }
.sol.is-open .sol__detail { display: block; animation: rise var(--dur-long) var(--ease-out) both; }
.sol__detail-in { overflow: visible; }
.sol.is-open .sol__detail-in { opacity: 1; transform: none; }

/* ---------- titres display : interlignage aéré (les lignes Anton se touchaient) ---------- */
.display { line-height: 1.06; }
.hero__title { line-height: 1.06; }
.section__title, .letter__title, .contact__title, .faq__title, .about__title { line-height: 1.06; }
.quote p { line-height: 1.12; }
.team__name, .note-card__t { line-height: 1.1; }

/* ---------- typo « tech / code » : navigation, boutons du header, menus ---------- */
.nav__list > li > a,
.sub-menu a,
.header .tel,
.nav__mobile-cta .tel,
.footer__col a,
.footer__tel {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -.01em;
  font-feature-settings: "zero" 1, "ss02" 1;
}
.nav__list > li > a { font-size: .875rem; }
.header .tel, .nav__mobile-cta .tel { font-size: .8125rem; font-weight: 600; }
.sub-menu a { font-size: .8125rem; font-weight: 600; }
.sub-menu__hint { font-family: var(--font-mono); font-weight: 400; }
.footer__col a, .footer__tel { font-size: .8125rem; }
@media (max-width: 900px) {
  .header.is-open .nav__list > li > a { font-size: .9375rem; }
}

/* ---------- lettre : cadre blanc façon papier à lettre, sur fond texturé comme le hero ---------- */
.letter-wrap.paper { background: var(--color-sky); }
.letter-wrap.paper::before { opacity: .9; }
.letter {
  position: relative;
  max-width: 860px;
  background: #fff;
  border: 1px solid rgba(7, 22, 52, .08);
  border-radius: 4px;
  padding: clamp(2rem, 1.25rem + 3.5vw, 4.5rem) clamp(1.5rem, 1rem + 4vw, 5rem);
  box-shadow: 0 1px 2px rgba(7, 22, 52, .06), 0 40px 80px -40px rgba(7, 22, 52, .45);
}
/* liseré bleu en haut, comme un en-tête de papier à lettre */
.letter::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 4px 4px 0 0; background: linear-gradient(90deg, var(--color-accent-deep), var(--color-accent) 55%, var(--color-bright)); }
.letter__head { margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
@media (max-width: 640px) {
  .letter { padding: 1.75rem 1.15rem 2rem; }
}

/* ---------- titres : interlignage encore plus aéré ---------- */
.display, .hero__title, .section__title, .letter__title, .contact__title, .faq__title, .about__title { line-height: 1.16; }
.quote p { line-height: 1.2; }
.sol__title, .team__name, .note-card__t { line-height: 1.15; }

/* ---------- carte déroulée : en-tête (picto, titre, accroche, bouton) centré ---------- */
.sol.is-open .sol__body { flex-direction: column; flex-wrap: nowrap; align-items: center; text-align: center; row-gap: .7rem; padding-bottom: 1.75rem; }
.sol.is-open .sol__title { flex: none; }
.sol.is-open .sol__p { flex-basis: auto; order: 0; }
.sol.is-open .sol__more { order: 0; align-self: center; margin-top: .4rem; }
@media (max-width: 640px) {
  .sol.is-open .sol__body { align-items: center; }
  .sol.is-open .sol__more { width: auto; min-width: 180px; }
}

/* ---------- boutons en police « code » ---------- */
.btn, .form__submit, .chip {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -.01em;
  font-feature-settings: "zero" 1;
}
.btn--cta { font-size: .9375rem; }
.sol__more { font-size: .875rem; }

/* ---------- « En parler avec nous » centré dans le service déroulé ---------- */
.sol__detail-cta { justify-content: center; }

/* ---------- fond papier (même texture que le hero) : arguments + FAQ ---------- */
.arguments-wrap.paper, .faq-wrap.paper { background: var(--color-sky); }
.arguments-wrap.paper::before, .faq-wrap.paper::before { opacity: .9; mix-blend-mode: normal; }
.faq-wrap.paper .qa { background: #fff; box-shadow: 0 1px 2px rgba(7, 22, 52, .05); }

/* ---------- révélation des sections ---------- */
/* Variante « ligne » : chaque phrase de la lettre apparaît l’une après l’autre. */
.rv--line { transform: translateY(12px); }
/* Les éléments déjà dans une carte qui se révèle (lettre, texte « à propos ») s’animent après elle. */
.letter .rv--line, .about__text .team__member, .contact__side .steps-list > li, .freedom__text .freedom__q { transition-duration: 520ms; }

/* Titres : montée plus ample + fondu, déclenchés quand la section entre dans l’écran. */
.rv-title { opacity: 0; transform: translateY(.45em); transition: opacity 700ms var(--ease-out) 80ms, transform 700ms var(--ease-out) 80ms; }
.in-view .rv-title { opacity: 1; transform: none; }

/* Fond de section : léger fondu de la texture papier à l’entrée. */
main > section.paper::before { transition: opacity 900ms var(--ease-out); }
main > section.paper:not(.in-view)::before { opacity: 0; }

/* Bandeau de réassurance : le trait bleu de chaque chiffre se dessine de haut en bas. */
.stat { border-left-color: transparent; position: relative; }
.stat::after { content: ""; position: absolute; left: -3px; top: 0; bottom: 0; width: 3px; background: var(--color-accent); transform: scaleY(0); transform-origin: top; transition: transform 700ms var(--ease-out); transition-delay: inherit; }
.stat.in::after { transform: scaleY(1); }

/* Pictogrammes des services : petit rebond d’échelle quand la carte apparaît. */
.sol .picto { transform: scale(.6); opacity: 0; transition: transform 520ms var(--ease-out) 180ms, opacity 400ms var(--ease-out) 180ms; }
.sol.in .picto { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .rv-title, .sol .picto { opacity: 1; transform: none; transition: none; }
  main > section.paper:not(.in-view)::before { opacity: .9; }
  .stat::after { transform: none; transition: none; }
}

/* =====================================================================
   V3 — « Modifs site DRS.pdf » (oct. 2026)
   ===================================================================== */

/* Surlignage bleu (même effet que la lettre) : gras + trait bleu clair sous le texte. */
mark.hl { background: linear-gradient(transparent 52%, rgba(0, 166, 255, .3) 52%); color: var(--color-ink); font-weight: 700; padding: 0 .1em; border-radius: 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
mark.hl--soft { font-weight: inherit; color: inherit; }

/* 5. Nos expertises : tous les textes centrés dans le bloc déroulé. */
.exp-detail { justify-items: center; text-align: center; }
.exp-detail__intro { margin-inline: auto; }
.exp-detail__cols { width: 100%; }
.exp-detail__col { justify-items: center; text-align: center; }
.exp-detail__col ul { justify-items: center; }
.exp-detail__col li { padding-left: 0; }
.exp-detail__col li::before { position: static; display: inline-block; margin-right: .55rem; vertical-align: .12em; }
.sol__body { align-items: center; text-align: center; }
.sol__more { align-self: center; }

/* 8. Bouton « Nous rencontrer » centré (bloc « Derrière DRS Digital »). */
.about__cta { display: flex; justify-content: center; }

/* Arguments : titres centrés et sur une ligne (une carte par ligne). */
.arguments { grid-template-columns: minmax(0, 1fr); max-width: 980px; margin-inline: auto; }
.argument { justify-items: center; text-align: center; padding: 1.6rem 2rem 1.75rem; }
.argument__t { white-space: nowrap; font-size: clamp(1rem, .85rem + .75vw, 1.3125rem); }
.argument p { max-width: 78ch; }

/* 10. FAQ : moins d’espace blanc. */
.faq-wrap .faq__title { margin-bottom: 1.5rem; }
.faq { gap: .5rem; }
.qa__btn { padding: 1.05rem 1.4rem; }
.qa__a { padding-inline: 1.4rem; }
.qa.is-open .qa__a { padding-bottom: 1.1rem; }
.qa__a p + p { margin-top: .5rem; }

/* 11. Texture papier : une seule image étirée (plus de raccord visible entre deux tuiles). */
.paper::before { background: url("../img/hero-texture.jpg") center / cover no-repeat; }

/* Preuves réelles : capture + légende. */
.proofs--real { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.proof--real { padding: 0; overflow: hidden; gap: 0; align-content: start; }
.proof--real .proof__top { padding: 1rem 1.25rem; border-bottom: var(--rule); }
.proof--real .badge { text-transform: none; letter-spacing: 0; font-size: .75rem; }
.proof__shot { margin: 0; background: var(--color-bone); border-bottom: var(--rule); aspect-ratio: 16 / 9; overflow: hidden; }
.proof__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.proof__body { padding: 1.1rem 1.25rem 1.3rem; display: grid; gap: .55rem; }
.proof__client { font-size: 1.0625rem; font-weight: 700; color: var(--color-ink); letter-spacing: -.01em; }
.proof__lines { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.proof__lines li { font-size: .9375rem; line-height: 1.55; color: var(--color-ink-soft); }
.proof__lines li:first-child { font-weight: 700; color: var(--color-accent-deep); }
.proof__link { font-family: var(--font-mono); font-size: .8125rem; color: var(--color-accent); text-decoration: none; word-break: break-all; }
.proof__link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .proofs--real { grid-template-columns: minmax(0, 1fr); }
  .argument__t { white-space: normal; }
}
@media (max-width: 640px) {
  .argument { padding: 1.25rem 1.1rem; }
  .proof--real .proof__top { flex-wrap: wrap; gap: .4rem; }
}

/* 4 expertises : grille 2 × 2 (plus de carte orpheline). */
.solutions-wrap .solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; margin-inline: auto; }
@media (max-width: 640px) { .solutions-wrap .solutions { grid-template-columns: minmax(0, 1fr); } }

/* FAQ : la réponse occupe toute la largeur de la carte (moins de blanc à droite). */
.qa__a { max-width: none; }
