/* ==========================================================
   Thyris — feuille de style
   Polices auto-hébergées (aucun appel à Google Fonts).
   ========================================================== */

/* ---------- Polices ---------- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Grec : uniquement pour « θυρίς » */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-greek-400-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* ---------- Variables ---------- */
:root {
  --marine: #0F2A43;
  --marine-2: #17395A;
  --ambre: #F2B24A;
  --ambre-survol: #F7C16A;
  --fond: #F6F7F9;
  --blanc: #FFFFFF;
  --texte: #2C3E50;
  --discret: #4A5766;
  --bleu-gris: #B9C7D6;
  --bleu-pale: #E3EAF1;
  --bordure: #D5DAE1;
  --contour: #5C7A99;
  --gris-carte: #EEF1F5;
  --erreur: #A12B24;

  --font-titre: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad-x: clamp(20px, 5vw, 64px);
  --section-y: clamp(56px, 9vw, 88px);
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--marine);
  font-family: var(--font-texte);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, p, ul, ol, hr, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

h1, h2, h3 { font-family: var(--font-titre); font-weight: 700; color: var(--marine); }
h2 { font-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.625rem); line-height: 1.1; }
h3 { line-height: 1.2; }

a { color: inherit; }

.balance { text-wrap: balance; }

/* Focus visible : marine sur fond clair, ambre sur fond marine */
:focus-visible { outline: 3px solid var(--marine); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--ambre); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ambre);
  color: var(--marine);
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { max-width: 1152px; margin: 0 auto; }

.section { padding: var(--section-y) var(--pad-x); }
.section--clair { background: var(--fond); }
.section--blanc { background: var(--blanc); }

.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-22 { display: flex; flex-direction: column; gap: 22px; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }

.lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.55; color: var(--texte); max-width: 680px; }
.stack-12 .balance { max-width: 760px; }

.on-dark { color: var(--blanc); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: var(--font-texte);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn--primary { background: var(--ambre); border-color: var(--ambre); color: var(--marine); }
.btn--primary:hover { background: var(--ambre-survol); border-color: var(--ambre-survol); }
.btn--secondary { border-color: var(--contour); color: var(--blanc); background: transparent; }
.btn--secondary:hover { background: var(--marine-2); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- En-tête ---------- */
.site-header { background: var(--marine); padding: 20px var(--pad-x); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--blanc);
  text-decoration: none;
  min-height: 44px;
}
.brand-name {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.06em;
}

.main-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.main-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bleu-pale);
  text-decoration: none;
}
.main-nav a:not(.btn):hover { color: var(--blanc); text-decoration: underline; text-underline-offset: 4px; }

/* Bouton menu : visible seulement avec JavaScript et sur petit écran */
.nav-toggle { display: none; }

@media (max-width: 759px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    background: transparent;
    border: 2px solid var(--contour);
    border-radius: 10px;
    color: var(--blanc);
    font-family: var(--font-texte);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
  }
  .js .main-nav { display: none; width: 100%; }
  .js .main-nav.is-open { display: block; }
  .js .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; padding-top: 8px; }
  .js .main-nav a:not(.btn) { width: 100%; min-height: 48px; }
  .js .main-nav .btn { width: 100%; margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--marine); padding: clamp(40px, 6vw, 56px) var(--pad-x) clamp(56px, 9vw, 96px); }
.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ambre); }
.hero h1 {
  color: var(--blanc);
  font-size: clamp(2.5rem, 1.2rem + 5.2vw, 4.75rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.55; color: var(--bleu-pale); max-width: 520px; }
.hero-origin { font-size: 0.9375rem; line-height: 1.5; color: var(--bleu-gris); max-width: 480px; }
.hero-visual { flex: 0 1 440px; width: 100%; max-width: 440px; height: auto; margin-inline: auto; }

/* ---------- Cartes « Pourquoi » ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 16px;
}
.card h3 { font-size: 1.375rem; }
.card p { font-size: 1.0625rem; line-height: 1.55; color: var(--texte); }

/* ---------- Méthode ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 32px; }
.step { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--marine);
  color: var(--ambre);
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 1.375rem;
}
.step--option .step-num { background: var(--ambre); color: var(--marine); }
.step h3 { font-size: 1.3125rem; }
.step p { font-size: 1rem; line-height: 1.55; color: var(--texte); }

/* ---------- Offres ---------- */
.offers { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.offer {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 20px;
}
.offer h3 { font-size: 2rem; }
.offer-label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--discret); }
.offer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { background: var(--ambre); color: var(--marine); font-size: 0.8125rem; font-weight: 600; border-radius: 999px; padding: 4px 12px; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price-amount { font-family: var(--font-titre); font-weight: 700; font-size: clamp(3rem, 2.4rem + 2.6vw, 4rem); line-height: 1; color: inherit; }
.price-note { font-size: 1rem; color: var(--discret); }
.price-block { display: flex; flex-direction: column; gap: 6px; }
.price-monthly { font-size: 1.25rem; font-weight: 600; color: var(--ambre); }

.offer hr { width: 100%; height: 1px; border: 0; background: var(--bordure); }

.offer-list { display: flex; flex-direction: column; gap: 12px; }
.offer-list li { position: relative; padding-left: 21px; font-size: 1.0625rem; line-height: 1.45; }
.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--marine);
}

.offer-note {
  margin-top: auto;
  padding: 14px 16px;
  background: var(--gris-carte);
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--texte);
}

.offer--pro { background: var(--marine); border-color: var(--marine); color: var(--blanc); }
.offer--pro h3 { color: var(--blanc); }
.offer--pro .offer-label, .offer--pro .price-note { color: var(--bleu-gris); }
.offer--pro hr { background: #3A587A; }
.offer--pro .offer-list li::before { background: var(--ambre); }
.offer--pro .offer-note { background: var(--marine-2); color: var(--bleu-pale); }

.fine-print { display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; line-height: 1.55; color: var(--discret); }
.fine-print strong { color: var(--marine); font-weight: 600; }

/* ---------- Réalisations ---------- */
.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 20px;
  overflow: hidden;
}
.project-visual { background: var(--bleu-pale); }
.project-visual img { width: 100%; height: auto; }
.project-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: clamp(22px, 4vw, 36px); }
.project-text h3 { font-size: 1.5rem; }
.project-text p { font-size: 1rem; line-height: 1.55; color: var(--texte); }
.pill { border-radius: 999px; padding: 4px 12px; font-size: 0.8125rem; font-weight: 600; color: var(--marine); }
.pill--online { background: #D8F1EA; }
.link-strong { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--marine); display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 860px) {
  .project { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- Contact ---------- */
.contact-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.contact-grid > .stack-22 { flex: 1 1 360px; min-width: 0; }
.contact-details { display: flex; flex-direction: column; gap: 2px; font-size: 1.125rem; color: var(--marine); }
.contact-name { font-weight: 600; }
.contact-details a { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; color: var(--marine); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 3px; }

.form {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 4vw, 32px);
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.9375rem; font-weight: 600; color: var(--marine); }
.optional { font-weight: 400; color: var(--discret); }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--blanc);
  color: var(--marine);
  border: 1px solid var(--contour);
  border-radius: 10px;
  font-family: var(--font-texte);
  font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border: 2px solid var(--erreur); }
.field-error { font-size: 0.875rem; font-weight: 500; color: var(--erreur); }

/* Piège à robots : hors écran, mais pas display:none */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form .btn { align-self: flex-start; }
.form-status { font-size: 0.9375rem; line-height: 1.5; color: var(--marine); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--erreur); font-weight: 500; }
.form-status.is-ok { padding: 12px 14px; background: #D8F1EA; border-radius: 10px; font-weight: 500; }
.form-note { font-size: 0.875rem; line-height: 1.5; color: var(--discret); }
.form-note a { color: var(--marine); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--marine); color: var(--bleu-pale); padding: 48px var(--pad-x); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-family: var(--font-titre); font-weight: 700; font-size: 1.375rem; color: var(--blanc); }
.footer-line { margin-top: 2px; font-size: 0.875rem; color: var(--bleu-gris); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 0.9375rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bleu-pale); }
.footer-links a:hover { color: var(--blanc); }

/* ---------- Pages légales ---------- */
.legal { padding: clamp(40px, 7vw, 72px) var(--pad-x) clamp(56px, 9vw, 96px); background: var(--fond); }
.legal-inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem); line-height: 1.1; }
.legal h2 { font-size: 1.5rem; margin-bottom: 10px; }
.legal section { display: flex; flex-direction: column; gap: 4px; }
.legal p, .legal li { font-size: 1.0625rem; line-height: 1.65; color: var(--texte); }
.legal ul { display: flex; flex-direction: column; gap: 6px; padding-left: 22px; list-style: disc; margin: 6px 0; }
.legal a { color: var(--marine); text-underline-offset: 3px; }
.legal .meta { font-size: 0.9375rem; color: var(--discret); }
.legal .back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.todo { background: #FCE7B8; padding: 0 4px; border-radius: 4px; color: var(--marine); font-weight: 600; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
