/* CAMELIA Confort · page de réservation. Couleurs : anthracite du boîtier, orange du bouton. */
:root {
  color-scheme: light;
  --encre: #1d2026;
  --encre-douce: #4a4f59;
  --fond: #f6f3ee;
  --fond-clair: #ece7df;
  --surface: #ffffff;
  --image: #eef0f4;
  --trait: #d9d3c9;
  --orange: #e8701a;          /* boutons : texte anthracite dessus (contraste 5,2:1) */
  --orange-survol: #f08a2c;
  --orange-texte: #a1460a;    /* orange lisible sur fond clair (5:1) */
  --orange-sur-sombre: #f5a25a;
  --vert: #2f7d4f;
  --rouge: #b3261e;
  --focus: #1a5fd0;
  --rayon: 18px;
  --entete: 72px;
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--entete);
  -webkit-text-size-adjust: 100%;
}
@media (pointer: fine) { html { overscroll-behavior: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.015em; font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
[id] { scroll-margin-top: 16px; }

a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--orange-texte); }

a, button, summary, input, select, textarea, label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(232, 112, 26, .18);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.conteneur {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.etroit { max-width: 860px; }

section { padding: clamp(64px, 9vw, 112px) 0; }
.clair { background: var(--fond-clair); }
.sombre { background: var(--encre); color: #f3f1ed; }

.sur-titre {
  color: var(--orange-texte);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .6em;
}
.intro { font-size: 1.2rem; color: var(--encre-douce); max-width: 46rem; }
.note { font-size: 1rem; color: var(--encre-douce); border-left: 3px solid var(--orange); padding-left: 14px; }

/* ---------- Lien d'évitement ---------- */
.evitement {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--encre); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 700;
}
.evitement:focus { top: 12px; color: #fff; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 238, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--trait);
  padding-top: env(safe-area-inset-top);
}
.entete-ligne { display: flex; align-items: center; gap: 24px; min-height: var(--entete); }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.marque svg { flex: none; }
.marque-texte { display: flex; flex-direction: column; font-weight: 800; font-size: 1.3rem; line-height: 1.1; }
.marque-texte small { font-weight: 500; font-size: .8rem; color: var(--encre-douce); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 10px 14px; border-radius: 10px;
  transition: background-color .15s ease, color .15s ease;
}
.nav a:hover { background: var(--fond-clair); color: var(--encre); }
@media (max-width: 860px) {
  .nav { display: none; }
  .entete-ligne > .bouton { margin-left: auto; }
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  background: var(--orange); color: var(--encre);
  border: 2px solid var(--orange); border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1.1rem; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.bouton:hover { background: var(--orange-survol); border-color: var(--orange-survol); color: var(--encre); box-shadow: 0 6px 18px rgba(232, 112, 26, .35); }
.bouton:active { transform: translateY(1px); }
.bouton-second { background: transparent; border-color: var(--encre); }
.bouton-second:hover { background: var(--encre); border-color: var(--encre); color: #fff; box-shadow: none; }
.bouton-petit { min-height: 48px; padding: 0 22px; font-size: 1rem; }
.bouton-large { width: 100%; margin-top: 8px; }
.bouton[disabled] { cursor: progress; opacity: .8; }

/* ---------- Héros ---------- */
.heros { padding-top: clamp(40px, 6vw, 80px); }
.heros-grille { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.heros-texte { min-width: 0; }
.pastille {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--trait); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: .95rem;
}
.point { width: 10px; height: 10px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 4px rgba(47, 125, 79, .18); }
.chapeau { font-size: clamp(1.2rem, 2.2vw, 1.4rem); color: var(--encre-douce); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.rassurances { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-weight: 600; }
.rassurances li { display: flex; gap: 10px; align-items: flex-start; }
.rassurances svg, .merci svg {
  flex: none; width: 24px; height: 24px; margin-top: 2px;
  fill: none; stroke: var(--vert); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.heros-visuel, .figure { margin: 0; }
.heros-visuel img, .figure img { background: var(--image); border-radius: 28px; width: 100%; }
figcaption { font-size: .9rem; color: var(--encre-douce); margin-top: 10px; }
@media (max-width: 860px) {
  .heros-grille { grid-template-columns: 1fr; }
  .heros-visuel { max-width: 520px; }
}

/* ---------- Problème ---------- */
.probleme { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.citation { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 0; color: #fff; }
.probleme p { font-size: 1.2rem; color: #d8d5cf; }
@media (max-width: 760px) { .probleme { grid-template-columns: 1fr; } }

/* ---------- Cartes et étapes ---------- */
.carte {
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: clamp(22px, 3vw, 32px); min-width: 0;
}
.etapes { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.etape-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 50%; background: var(--encre); color: var(--orange-sur-sombre);
  font-weight: 800; font-size: 1.2rem; font-variant-numeric: tabular-nums;
}
.etapes p { color: var(--encre-douce); }
@media (max-width: 860px) { .etapes { grid-template-columns: 1fr; } }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.duo-inverse { margin-top: 0; }
.duo-texte { min-width: 0; }
.duo-texte > p:not(.sur-titre) { color: var(--encre-douce); }
.duo h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .duo-inverse .figure { order: -1; }
}

/* ---------- Atouts ---------- */
.atouts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.atouts li { background: var(--surface); border-radius: var(--rayon); padding: 26px; min-width: 0; }
.atouts p { color: var(--encre-douce); font-size: 1.05rem; }
.icone {
  width: 44px; height: 44px; padding: 9px; margin-bottom: 14px; border-radius: 12px;
  background: var(--encre); fill: none; stroke: var(--orange-sur-sombre); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 1000px) { .atouts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .atouts { grid-template-columns: 1fr; } }

/* ---------- Listes cochées ---------- */
.liste-coches { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.liste-coches li { position: relative; padding-left: 34px; }
.liste-coches li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%231d2026' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Frise du projet ---------- */
.frise { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: etape; }
.frise li { position: relative; background: var(--surface); border-radius: var(--rayon); padding: 24px; border-top: 6px solid var(--trait); min-width: 0; }
.frise li.fait { border-top-color: var(--vert); }
.frise li.en-cours { border-top-color: var(--orange); }
.frise p { color: var(--encre-douce); font-size: 1.05rem; }
.etat {
  display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 700; background: var(--fond-clair); color: var(--encre-douce);
}
.fait .etat { background: #dcefe3; color: #1f5a37; }
.en-cours .etat { background: #fde4cf; color: #8a3c06; }
@media (max-width: 1000px) { .frise { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .frise { grid-template-columns: 1fr; } }

/* ---------- Réservation ---------- */
.reserver { background: var(--encre); color: #f3f1ed; }
.reserver .sur-titre { color: var(--orange-sur-sombre); }
.reserver h2 { color: #fff; }
.reserver-texte p { color: #d8d5cf; font-size: 1.15rem; }
.reserver-texte a:hover { color: var(--orange-sur-sombre); }
.reserver-grille { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .reserver-grille { grid-template-columns: 1fr; } }

.formulaire-carte { color: var(--encre); border: 0; }
.champ { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
label, legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.facultatif { font-weight: 400; color: var(--encre-douce); }
input[type="text"], input[type="email"], select, textarea {
  display: block; width: 100%; min-height: 54px;
  padding: 12px 14px; border: 2px solid #b9b2a7; border-radius: 12px;
  background-color: #fff; color: var(--encre);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: #767b84; }
input:hover, select:hover, textarea:hover { border-color: var(--encre-douce); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(26, 95, 208, .3);
}
[aria-invalid="true"] { border-color: var(--rouge) !important; }

.choix-liste { display: grid; gap: 8px; }
.choix-grille { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .choix-grille { grid-template-columns: 1fr; } }
.choix {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; margin: 0; padding: 10px 14px;
  border: 2px solid var(--trait); border-radius: 12px;
  font-weight: 600; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.choix:hover { border-color: var(--encre-douce); }
.choix:has(input:checked) { border-color: var(--orange); background: #fff4ea; }
.choix:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choix input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--orange-texte); }
.choix input:focus-visible { outline: none; }
.choix-plein { margin-bottom: 20px; }
.consentement { align-items: flex-start; font-weight: 500; font-size: 1rem; }
.consentement input { margin-top: 2px; }
fieldset[aria-invalid="true"] .choix, .choix:has(input[aria-invalid="true"]) { border-color: var(--rouge); }

.aide { font-size: .95rem; color: var(--encre-douce); margin-top: 6px; }
.erreur { color: var(--rouge); font-weight: 600; font-size: 1rem; margin: 6px 0 0; }
.erreur::before { content: "⚠ " / ""; }
.statut:empty { display: none; }
.statut { margin: 14px 0 0; font-weight: 600; }
.statut.ko { color: var(--rouge); }
.robot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.roue {
  display: none; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(29, 32, 38, .3); border-top-color: var(--encre);
  animation: tourne .8s linear infinite;
}
.bouton[aria-busy="true"] .roue { display: inline-block; }
@keyframes tourne { to { transform: rotate(360deg); } }

.merci { text-align: center; padding: 24px 8px; }
.merci:focus { outline: none; }
.merci svg { width: 56px; height: 56px; margin: 0 auto 12px; padding: 10px; border-radius: 50%; background: #dcefe3; }
.merci p { color: var(--encre-douce); }

/* ---------- Questions ---------- */
details { border-bottom: 1px solid var(--trait); }
details:first-of-type { border-top: 1px solid var(--trait); margin-top: 28px; }
summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 14px 4px; cursor: pointer;
  font-weight: 700; font-size: 1.15rem; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-right: 6px;
  border-right: 3px solid var(--orange-texte); border-bottom: 3px solid var(--orange-texte);
  transform: rotate(45deg) translate(-3px, -3px); transform-origin: center;
  transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
summary:hover { color: var(--orange-texte); }
details p { color: var(--encre-douce); padding: 0 4px 20px; }

/* ---------- Pied de page ---------- */
.pied {
  background: #15171b; color: #c9c6bf;
  padding: 48px 0 max(28px, env(safe-area-inset-bottom));
}
.pied-grille { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.pied-marque { color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 4px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied a { display: inline-block; padding: 8px 0; }
.pied a:hover { color: var(--orange-sur-sombre); }
.mention { font-size: .9rem; margin-top: 28px; color: #9a978f; }

/* ---------- V2 : référencement (SEO / GEO) ---------- */
.h1-sous {
  display: block; margin-top: .45em;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 700; letter-spacing: 0;
  color: var(--orange-texte);
}
.maj { font-size: .95rem; color: var(--encre-douce); margin-top: 28px; }
.contact-direct { margin-top: 24px; }
.contact-direct a { font-weight: 700; white-space: nowrap; }
.pied-contact { margin-top: 10px; }
.pied-contact a { padding: 4px 0; }
.pied-adresse { margin-top: 6px; font-style: normal; }

/* Pages d'article (guide, compatibilité) */
.fil { font-size: .95rem; color: var(--encre-douce); margin-bottom: 1.2em; }
.fil a { color: inherit; }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); }
.article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article p, .article li { color: var(--encre-douce); }
.article strong { color: var(--encre); }
.article ul:not(.liste-coches) { padding-left: 1.2em; }
.article ul:not(.liste-coches) li { margin-bottom: .4em; }
.resume {
  background: var(--surface); border: 1px solid var(--trait); border-left: 6px solid var(--orange);
  border-radius: var(--rayon); padding: 22px 26px; margin: 24px 0 8px;
}
.resume p { color: var(--encre); }
.tableau-defile { overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch; }
.comparatif { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--surface); border-radius: var(--rayon); overflow: hidden; font-size: 1rem; }
.comparatif caption { text-align: left; font-weight: 700; padding: 0 0 10px; }
.comparatif th, .comparatif td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--trait); vertical-align: top; }
.comparatif thead th { background: var(--encre); color: #fff; font-size: .95rem; }
.comparatif tbody th { font-weight: 700; }
.comparatif td { color: var(--encre-douce); }
.comparatif tr.nous th, .comparatif tr.nous td { background: #fff4ea; }
.encart-cta {
  background: var(--encre); color: #f3f1ed; border-radius: var(--rayon);
  padding: clamp(24px, 4vw, 36px); margin: 40px 0 0;
}
.encart-cta h2 { color: #fff; margin-top: 0; }
.encart-cta p { color: #d8d5cf; }
.encart-cta .bouton { margin-top: 8px; }

/* Liens vers les pages de contenu */
.suite { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.suite a { display: block; height: 100%; text-decoration: none; }
.suite a:hover { border-color: var(--orange); color: var(--encre); }
.suite h3 { margin-bottom: .3em; }
.suite p { color: var(--encre-douce); font-size: 1.05rem; }
@media (max-width: 760px) { .suite { grid-template-columns: 1fr; } }

/* v4 · nom CAMELIA Confort plus long : rester sur une ligne sur téléphone */
.marque-texte { white-space: nowrap; }
@media (max-width: 480px) {
  .marque-texte { font-size: 1.12rem; }
  .marque-texte small { display: none; }
}
@media (max-width: 350px) {
  .marque { gap: 8px; }
  .marque svg { width: 32px; height: 32px; }
  .marque-texte { font-size: 1rem; }
  .entete .bouton-petit { padding-left: 14px; padding-right: 14px; font-size: .92rem; }
}
