/* ═══════════════════════════════════════════════════════════
   DPSI — Feuille de style
   Charte : noir & blanc + bleu marine d'accent, police Funnel Display
   ═══════════════════════════════════════════════════════════ */


/* ─────────── 1. Police de marque ─────────── */

@font-face {
  font-family: "Funnel Display";
  src: url("../fonts/FunnelDisplay-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Funnel Display";
  src: url("../fonts/FunnelDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Funnel Display";
  src: url("../fonts/FunnelDisplay-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Funnel Display";
  src: url("../fonts/FunnelDisplay-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Funnel Display";
  src: url("../fonts/FunnelDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}


/* ─────────── 2. Réglages généraux ─────────── */

:root {
  /* Couleurs */
  --encre:        #0A0A0A;
  --encre-douce:  #4A4A4A;
  --gris:         #767676;
  --papier:       #FFFFFF;
  --papier-casse: #F6F6F4;
  --trait:        #E2E2DE;
  --trait-sombre: #2A2A2A;

  --accent:       #0B3C5D;
  --accent-fonce: #072A42;
  --accent-clair: #6FB3D6;   /* version lisible sur fond noir */

  /* Rythme */
  --largeur:      1180px;
  --marge:        clamp(20px, 5vw, 48px);
  --section-y:    clamp(64px, 9vw, 120px);
  --radius:       2px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;   /* pour que l'en-tête fixe ne masque pas les titres */
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: "Funnel Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-fonce); }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--marge);
}

.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-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--encre); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Marqueur des informations à fournir — à retirer une fois complété */
.todo {
  background: #FFF3B0;
  color: #6A5200;
  padding: 0 .35em;
  border-bottom: 1px dashed #C9A400;
  font-size: .95em;
  white-space: normal;
}


/* ─────────── 3. Boutons ─────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-fonce);
  border-color: var(--accent-fonce);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  color: #fff;
}

.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-block { width: 100%; padding-block: 17px; font-size: 17px; }


/* ─────────── 4. En-tête ─────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.logo { display: block; flex: none; }
.logo img { height: 34px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.nav > a:not(.btn) {
  color: var(--encre);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav > a:not(.btn):hover { border-bottom-color: var(--accent); color: var(--accent); }

/* Bouton menu (téléphone) */
.burger {
  display: none;
  background: none;
  border: 1px solid var(--trait);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
}
.burger-bars { display: block; width: 20px; }
.burger-bars i {
  display: block;
  height: 2px;
  background: var(--encre);
  margin: 4px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] .burger-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-bars i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ─────────── 5. Bandeau d'accueil ─────────── */

.hero {
  position: relative;
  background: var(--encre);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(72px, 12vw, 150px);
}

.hero-watermark {
  position: absolute;
  right: -9%;
  top: 50%;
  transform: translateY(-50%);
  width: min(680px, 58vw);
  opacity: .042;
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 900px; }

.eyelet {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-clair);
  margin-bottom: 1.6em;
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: .55em;
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.4em;
}


/* ─────────── 6. Bandeau de confiance ─────────── */

.trust {
  background: var(--papier-casse);
  border-bottom: 1px solid var(--trait);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-block: 0;
}

.trust-item {
  padding: 34px clamp(16px, 2.4vw, 32px);
  border-left: 1px solid var(--trait);
}
.trust-item:first-child { border-left: 0; padding-left: 0; }

.trust-key {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .7em;
}

.trust-val {
  font-size: 15px;
  line-height: 1.5;
  color: var(--encre-douce);
}


/* ─────────── 7. Sections ─────────── */

.section { padding-block: var(--section-y); }
.section-alt { background: var(--papier-casse); }

.section-dark {
  background: var(--encre);
  color: #fff;
}
.section-dark .section-num { color: var(--accent-clair); }
.section-dark .section-intro { color: rgba(255,255,255,.7); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-num {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 1.2em;
}
.section-num::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-left: 12px;
  opacity: .5;
}

.section-head h2 {
  font-size: clamp(27px, 3.6vw, 40px);
  margin-bottom: .5em;
}

.section-intro {
  font-size: 17.5px;
  font-weight: 300;
  color: var(--encre-douce);
  margin: 0;
}


/* ─────────── 7 bis. Notre histoire ─────────── */

.histoire-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.histoire-texte p {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--encre-douce);
  margin-bottom: 1.35em;
}
.histoire-texte p:first-child {
  font-size: 19px;
  line-height: 1.6;
  color: var(--encre);
}
.histoire-texte p:last-child { margin-bottom: 0; }

.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.stats li {
  border-top: 1px solid var(--trait);
  padding: 22px 0;
}
.stats li:first-child { border-top: 2px solid var(--encre); }
.stats li:last-child { padding-bottom: 0; }

.stat-nombre {
  display: block;
  font-size: clamp(38px, 4.6vw, 52px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.stat-legende {
  display: block;
  margin-top: .5em;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gris);
}

/* Le marqueur jaune reste lisible même sur un très gros chiffre */
.stat-nombre.todo {
  display: inline-block;
  font-size: clamp(22px, 2.4vw, 30px);
}


/* ─────────── 8. Cartes ─────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--trait);
  border: 1px solid var(--trait);
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--papier);
  padding: clamp(28px, 3.2vw, 40px);
  transition: background-color .2s ease;
}
.section-alt .card { background: var(--papier-casse); }
.card:hover { background: #fff; }

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: .7em;
}

.card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--encre-douce);
  margin: 0;
}

.card-mark {
  width: 26px;
  height: 26px;
  opacity: .85;
  margin-bottom: 22px;
}

/* Carte occupant toute la largeur : une prestation qui complète les précédentes */
.card-wide { grid-column: 1 / -1; }
.card-wide h3 { font-size: 22px; max-width: 46ch; }
.card-wide > p:first-of-type { max-width: 72ch; }

.card-marques {
  margin-top: 1.1em !important;
  padding-top: .9em;
  border-top: 1px solid var(--trait);
  font-size: 14px !important;
  color: var(--encre) !important;
}
.card-marques strong { font-weight: 600; }


/* ─────────── 9. Pourquoi DPSI ─────────── */

.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 56px) clamp(40px, 5vw, 72px);
}

.reason {
  border-top: 2px solid var(--encre);
  padding-top: 22px;
}

.reason h3 {
  font-size: 19px;
  margin-bottom: .6em;
}

.reason p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--encre-douce);
  margin: 0;
}

/* Référence officielle mise en évidence sous un paragraphe */
.reason-ref {
  margin-top: 1em !important;
  padding-top: .9em;
  border-top: 1px solid var(--trait);
  font-size: 13.5px !important;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent) !important;
}


/* ─────────── 10. Déroulement ─────────── */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 44px);
  counter-reset: etape;
}

.step { border-top: 1px solid var(--trait-sombre); padding-top: 24px; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent-clair);
  border-radius: 50%;
  color: var(--accent-clair);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: .55em;
}

.step p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.65);
  margin: 0;
}


/* ─────────── 11. Contact ─────────── */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.coords {
  border-top: 2px solid var(--encre);
  padding-top: 26px;
}

.coords-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.8em;
}

.coords-list { margin: 0 0 2em; }

.coords-list dt {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gris);
  margin-top: 1.5em;
}
.coords-list dt:first-child { margin-top: 0; }

.coords-list dd {
  margin: .35em 0 0;
  font-size: 16.5px;
  color: var(--encre);
}

.coords-note {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--encre-douce);
  padding-top: 1.4em;
  border-top: 1px solid var(--trait);
  margin: 0;
}


/* ─────────── 12. Formulaire ─────────── */

.form-panel {
  background: var(--papier-casse);
  border: 1px solid var(--trait);
  padding: clamp(26px, 3.4vw, 44px);
}

.field { margin-bottom: 20px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--encre);
}

.req { color: var(--accent); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--trait);
  border-radius: var(--radius);
  background: #fff;
  color: var(--encre);
  font-family: inherit;
  font-size: 16px;   /* 16px minimum : évite le zoom automatique sur iPhone */
  line-height: 1.4;
  transition: border-color .16s ease, box-shadow .16s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea { resize: vertical; min-height: 110px; }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230A0A0A' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11,60,93,.12);
}

.field input::placeholder,
.field textarea::placeholder { color: #A6A6A2; }

/* État d'erreur */
.field.is-error input,
.field.is-error select,
.field.is-error textarea { border-color: #B3261E; }

.err {
  display: none;
  margin: 7px 0 0;
  font-size: 13.5px;
  color: #B3261E;
}
.field.is-error .err { display: block; }

/* Case à cocher */
.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 26px;
}
.field-check input {
  width: 18px; height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex: none;
}
.field-check label {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--encre-douce);
  margin: 0;
}
.field-check .err { grid-column: 1 / -1; }

/* Piège anti-robots */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

#btn-envoyer { margin-top: 28px; }
#btn-envoyer[disabled] { opacity: .6; cursor: progress; }

.form-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--gris);
  margin: 16px 0 0;
}

.form-status {
  display: none;
  margin: 20px 0 0;
  padding: 15px 18px;
  border-left: 3px solid var(--accent);
  background: #fff;
  font-size: 15px;
  line-height: 1.55;
}
.form-status.is-visible { display: block; }
.form-status.is-ok    { border-left-color: #1E7A3C; }
.form-status.is-ko    { border-left-color: #B3261E; }


/* ─────────── 13. Pied de page ─────────── */

.site-footer {
  background: var(--encre);
  color: rgba(255,255,255,.72);
  padding-top: clamp(52px, 6vw, 80px);
  font-size: 15px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  padding-bottom: clamp(40px, 5vw, 60px);
}

.footer-brand img { height: 32px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 38ch; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.6); }

.footer-col h4 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.4em;
}
.footer-col p { margin: 0 0 .6em; font-size: 14.5px; }
.footer-col a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid var(--trait-sombre);
  padding-block: 24px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13.5px;
  color: rgba(255,255,255,.5);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.6); }


/* ─────────── 14. Page mentions légales ─────────── */

.page-titre {
  background: var(--encre);
  color: #fff;
  padding-block: clamp(52px, 7vw, 90px);
}
.page-titre h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0;
}

.texte {
  max-width: 760px;
  padding-block: var(--section-y);
}
.texte h2 {
  font-size: 21px;
  margin-top: 2.4em;
  padding-top: 1.2em;
  border-top: 1px solid var(--trait);
}
.texte h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.texte h3 { font-size: 17px; margin-top: 1.8em; }
.texte p, .texte li { color: var(--encre-douce); font-size: 16px; }
.texte ul { padding-left: 1.2em; }
.texte li { margin-bottom: .5em; }

.retour {
  display: inline-block;
  margin-top: 3em;
  font-size: 15px;
}


/* ═══════════════ 15. Adaptation aux écrans ═══════════════ */

/* Tablette */
@media (max-width: 980px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--trait); }

  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .histoire-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
  .stats li { padding-bottom: 0; border-top: 2px solid var(--encre); }

  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Téléphone */
@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }

  .burger { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--trait);
    padding: 8px var(--marge) 22px;
    box-shadow: 0 18px 30px -18px rgba(0,0,0,.25);

    /* replié par défaut */
    display: none;
  }
  .nav.is-open { display: flex; }

  .nav > a:not(.btn) {
    padding: 15px 0;
    border-bottom: 1px solid var(--trait);
    font-size: 17px;
  }
  .nav > a:not(.btn):hover { border-bottom-color: var(--trait); }
  .nav .btn { margin-top: 18px; padding-block: 15px; }

  .hero-watermark { right: -22%; opacity: .04; }
  .hero-actions .btn { flex: 1 1 auto; }

  .trust-grid { grid-template-columns: 1fr; }
  .trust-item {
    border-left: 0;
    padding: 24px 0;
    border-bottom: 1px solid var(--trait);
  }
  .trust-item:last-child { border-bottom: 0; }

  .cards, .cards-3 { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 0; }
  .stats li { padding: 20px 0; border-top: 1px solid var(--trait); }
  .stats li:first-child { border-top: 2px solid var(--encre); }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* Impression */
@media print {
  .site-header, .hero-actions, .form-panel, .burger { display: none; }
  body { color: #000; font-size: 12pt; }
  .hero, .section-dark, .site-footer { background: #fff !important; color: #000 !important; }
}
