/* ============================================================
   SITE CÔTE-NORD — styles.css
   ------------------------------------------------------------
   Rien à changer ici pour les placeholders : [TÉLÉPHONE],
   [COURRIEL] et [PRÉNOM] sont dans index.html seulement.
   Le logo est chargé par index.html (src="logo.png").
   Palette : fond #F7F4EF · encre #1B3A4B · accent #0F6E6B
             blanc #FFFFFF · ligne #D6D1C7
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --fond: #F7F4EF;
  --encre: #1B3A4B;
  --encre-doux: #3E5A68;   /* texte secondaire, contraste AA sur crème */
  --accent: #0F6E6B;
  --accent-fonce: #0B5754;
  --blanc: #FFFFFF;
  --ligne: #D6D1C7;
  --rayon: 10px;
  --ombre: 0 1px 2px rgba(27, 58, 75, 0.06);
  --police: "Source Sans 3", "Source Sans Pro", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hauteur-entete: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hauteur-entete) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.55;
  padding-bottom: 88px; /* place pour la barre Appeler mobile */
}

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

h1, h2, h3 {
  margin: 0 0 0.4em;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-stretch: 95%;
}
h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-fonce); }
strong { font-weight: 700; }

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

.conteneur {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 20px;
}
.etroit { max-width: 720px; }

section { padding-block: 56px; }

.titre-section { text-align: center; margin-bottom: 0.3em; }
.sous-section {
  text-align: center;
  color: var(--encre-doux);
  margin: 0 auto 36px;
  max-width: 560px;
}
.note {
  color: var(--encre-doux);
  font-size: 1rem;
  margin: 0;
}

/* Lien "Aller au contenu" */
.saut {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--encre);
  color: var(--blanc);
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 100;
}
.saut:focus { left: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: var(--rayon);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-plein {
  background: var(--accent);
  color: var(--blanc);
  border-color: var(--accent);
}
.btn-plein:hover, .btn-plein:focus-visible {
  background: var(--accent-fonce);
  border-color: var(--accent-fonce);
  color: var(--blanc);
}
.btn-vide {
  background: transparent;
  color: var(--encre);
  border-color: var(--encre);
}
.btn-vide:hover, .btn-vide:focus-visible {
  background: var(--encre);
  color: var(--blanc);
}
.btn-xl { min-height: 56px; font-size: 1.15rem; padding-inline: 28px; }
.btn-bloc { width: 100%; }
.btn-faux { cursor: default; pointer-events: none; }

/* ---------- 1. Header ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--fond);
  border-bottom: 1px solid var(--ligne);
}
.entete-in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--hauteur-entete);
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }
.nav { display: none; }
.btn-entete { margin-left: auto; min-height: 44px; padding-inline: 18px; }

@media (min-width: 720px) {
  .logo img { height: 48px; }
  .nav { display: flex; gap: 28px; margin-left: 32px; }
  .nav a {
    color: var(--encre);
    text-decoration: none;
    font-weight: 600;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
  }
  .nav a:hover { border-bottom-color: var(--accent); color: var(--accent); }
}

/* ---------- 2. Hero ---------- */
.hero { padding-block: 64px 48px; text-align: center; }
.surtitre {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.hero h1 { max-width: 12ch; margin-inline: auto; }
.hero-sous {
  font-size: 1.2rem;
  max-width: 520px;
  margin: 16px auto 28px;
  color: var(--encre-doux);
}
.cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto 18px;
}
.cta .btn { width: 100%; }

@media (min-width: 720px) {
  .hero { padding-block: 96px 72px; }
  .cta { flex-direction: row; max-width: none; justify-content: center; }
  .cta .btn { width: auto; min-width: 240px; }
}

/* ---------- 3. Preuve ---------- */
.preuve { padding-block: 0 24px; }
.preuve-liste {
  list-style: none;
  display: grid;
  gap: 12px;
}
.preuve-liste li {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  padding: 16px 18px 16px 44px;
  position: relative;
}
.preuve-liste li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}
@media (min-width: 720px) {
  .preuve-liste { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* ---------- 4. Problème ---------- */
.probleme {
  background: var(--encre);
  color: var(--blanc);
  text-align: center;
}
.probleme h2 { color: var(--blanc); margin-bottom: 0.6em; }
.probleme p { max-width: 560px; margin: 0 auto; font-size: 1.1rem; opacity: 0.92; }

/* ---------- 5. Forfaits ---------- */
.grille-forfaits {
  display: grid;
  gap: 20px;
}
.carte {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 12px;
  padding: 28px 24px 24px;
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
  position: relative;
}
.carte h3 { font-size: 1.3rem; margin-bottom: 4px; }
.prix {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 8px 0 4px;
}
.delai { color: var(--encre-doux); margin-bottom: 18px; }
.coches {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}
.coches li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-top: 1px solid var(--ligne);
}
.coches li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}
.carte-vedette {
  border: 2px solid var(--accent);
  padding-top: 40px;
}
.bandeau {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: var(--blanc);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  margin: 0;
}
.promo {
  margin: 32px auto 8px;
  max-width: 620px;
  text-align: center;
  background: var(--blanc);
  border: 1px dashed var(--accent);
  border-radius: var(--rayon);
  padding: 14px 18px;
}
.note-hebergement {
  text-align: center;
  color: var(--encre-doux);
  font-size: 1rem;
  margin: 0;
}
@media (min-width: 720px) {
  .grille-forfaits { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
}

/* ---------- 6. Étapes ---------- */
.etapes { border-top: 1px solid var(--ligne); }
.grille-etapes {
  list-style: none;
  display: grid;
  gap: 24px;
  counter-reset: etape;
}
.grille-etapes li { padding-left: 56px; position: relative; }
.grille-etapes h3 { margin-bottom: 4px; }
.grille-etapes p { color: var(--encre-doux); margin: 0; }
.num {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--encre);
  color: var(--blanc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
@media (min-width: 720px) {
  .grille-etapes { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* ---------- 7. Exemples ---------- */
.exemples { border-top: 1px solid var(--ligne); }
.grille-demos { display: grid; gap: 20px; }
.demo {
  margin: 0;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--ombre);
}
.demo-image { aspect-ratio: 16 / 10; background: #EFEAE1; }
.demo-image svg { width: 100%; height: 100%; display: block; }
.demo figcaption { padding: 18px 20px 16px; }
.demo h3 { margin-bottom: 2px; }
.demo-ligne { color: var(--encre-doux); margin-bottom: 14px; }
.avertissement {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--encre-doux);
  text-align: center;
}
@media (min-width: 720px) {
  .grille-demos { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 8. Pour qui ---------- */
.pourqui { text-align: center; border-top: 1px solid var(--ligne); }
.puces-plates {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.puces-plates li {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
}

/* ---------- 9. FAQ ---------- */
.faq { border-top: 1px solid var(--ligne); }
.faq details {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 16px 48px 16px 18px;
  list-style: none;
  position: relative;
  min-height: 48px;
  border-radius: var(--rayon);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--ligne); border-radius: var(--rayon) var(--rayon) 0 0; }
.reponse { padding: 14px 18px 4px; color: var(--encre-doux); }
.reponse p:last-child { margin-bottom: 12px; }

/* ---------- 10. Contact ---------- */
.contact { text-align: center; border-top: 1px solid var(--ligne); }
.gros-numero {
  display: block;
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--accent);
  margin: 8px 0 4px;
}
.gros-numero:hover { text-decoration: underline; }
.formulaire {
  text-align: left;
  margin: 36px auto 0;
  max-width: 480px;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 12px;
  padding: 24px 20px;
}
.form-intro { font-weight: 600; margin-bottom: 18px; }
.champ { margin-bottom: 16px; }
.champ label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.champ input, .champ select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  color: var(--encre);
  background: var(--fond);
  border: 1px solid var(--ligne);
  border-radius: 8px;
}
.champ input:focus, .champ select:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.formulaire .btn { margin-top: 8px; }
.signature {
  margin: 40px 0 0;
  font-weight: 700;
  font-size: 1.2rem;
}

/* ---------- 11. Footer ---------- */
.pied {
  border-top: 1px solid var(--ligne);
  padding-block: 28px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--encre-doux);
}
.pied-logo { height: 120px; width: auto; margin: 0 auto 16px; }
.pied p { margin: 0 0 6px; }
.pied strong { color: var(--encre); }
.pied a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.pied a:hover { text-decoration: underline; }
.pied-zone { font-size: 0.9rem; }

/* ---------- Barre Appeler collante (mobile) ---------- */
.barre-appel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--fond);
  border-top: 1px solid var(--ligne);
}
@media (min-width: 720px) {
  .barre-appel { display: none; }
  body { padding-bottom: 0; }
}
