/* =========================================================
   La Canopée céleste — Saint-Chély-du-Tarn, Gorges du Tarn
   Palette et typographie calées sur le logo :
   crème #EBE9DA, pétrole #1E4045, bleu-gris #677F85.
   ========================================================= */

:root {
  --creme:         #EBE9DA;
  --creme-2:       #E1DECD;
  --creme-3:       #F3F1E6;
  --petrole:       #1E4045;
  --petrole-fonce: #16302F;
  --petrole-clair: #2B5459;
  --ardoise:       #677F85;
  --ardoise-fonce: #4E666D;
  --ardoise-clair: #A5B0AD;
  --texte:         #3A4E50;
  --texte-clair:   #66757A;
  --texte-pale:    #8B9799;
  --ligne:         #D2CFBC;
  --ligne-sombre:  #315255;
  --ambre:         #B8863F;   /* unique touche chaude : options, mises en avant */

  --serif: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --marge: clamp(20px, 5vw, 76px);
  --bloc:  clamp(56px, 8vw, 100px);
  --arrondi: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--petrole);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--petrole); text-decoration: none; }
a:hover { color: var(--ardoise-fonce); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { margin: 0; font-size: clamp(33px, 5vw, 58px); line-height: 1.1; letter-spacing: 0.004em; }
h2 { margin: 0; font-size: clamp(27px, 3.5vw, 40px); line-height: 1.18; }
h3 { margin: 0; font-size: clamp(20px, 2vw, 25px); line-height: 1.26; }
p  { margin: 0; }
sup { font-size: .66em; }

:focus-visible { outline: 2px solid var(--ardoise-fonce); outline-offset: 3px; }

/* ---------- briques réutilisées ---------- */

.surtitre {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ardoise-fonce);
}
.surtitre--clair { color: var(--ardoise-clair); }

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 46px;   /* 28px d'arrondi + 18px de respiration */
  background: var(--petrole);
  color: var(--creme);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--petrole);
  border-radius: 100px;          /* pilule : ça répond à la rondeur du logo */
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.bouton:hover {
  background: var(--petrole-clair);
  border-color: var(--petrole-clair);
  color: var(--creme);
  box-shadow: 0 7px 20px rgba(30, 64, 69, .18);
  transform: translateY(-1px);
}
.bouton:active { transform: none; box-shadow: none; }

.bouton--fantome {
  background: transparent;
  color: var(--petrole);
  border-color: var(--ardoise);
}
.bouton--fantome:hover {
  background: transparent;
  border-color: var(--petrole);
  color: var(--petrole);
  box-shadow: 0 6px 16px rgba(30, 64, 69, .10);
}

.bouton--compact { min-height: 48px; padding: 0 40px; font-size: 14.5px; }

.section          { padding: var(--bloc) var(--marge); }
.section--creme   { background: var(--creme-2); }
.section--clair   { background: var(--creme-3); }
.section--sombre  { background: var(--petrole); color: #C9D4D2; }
.section--sombre h1, .section--sombre h2, .section--sombre h3 { color: var(--creme); }
.section--sombre p { color: #BCCAC8; }
.section--sombre a { color: var(--creme); }

.mesure { max-width: 62ch; }

/* ---------- croquis au trait ---------- */

.croquis        { width: 100%; height: auto; opacity: .88; }
.croquis--petit { max-width: 300px; }
.croquis--moyen { max-width: 460px; }

.bande-croquis {
  display: block;
  width: 100%;
  height: clamp(56px, 7vw, 92px);
  object-fit: cover;
  opacity: .5;
}
.section--sombre .croquis,
.section--sombre .bande-croquis { filter: brightness(1.45); opacity: .72; }

.croquis-flottant {
  display: block;
  margin: 0 auto;
  max-width: 380px;
  opacity: .78;
}

/* ---------- en-tête ---------- */

.bandeau {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 10px var(--marge);
  background: var(--petrole);
  color: #A9BAB8;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.entete {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--marge);
  border-bottom: 1px solid var(--ligne);
}

.logo { display: flex; align-items: center; gap: 13px; }
.logo img { width: 52px; height: auto; flex: none; }
.logo b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.1;
  letter-spacing: 0.03em;
}
.logo small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--texte-pale);
}

.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-size: 15px; }
.nav a { padding: 6px 0; }
.nav .bouton { display: none; }   /* visible seulement dans le tiroir du téléphone */
.nav a[aria-current="page"] { color: var(--ardoise-fonce); font-weight: 700; }

.menu-case, .menu-bouton { display: none; }

/* ---------- bandeau d'ouverture ---------- */

.hero { display: grid; grid-template-columns: 5fr 6fr; }

.hero__texte {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: var(--bloc) clamp(24px, 4vw, 56px) var(--bloc) var(--marge);
  min-height: 560px;
}
.hero__texte p { font-size: 18px; line-height: 1.72; color: var(--texte); max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }

.hero__image { position: relative; background: var(--creme-2); min-height: 420px; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }
.hero__legende {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 7px 13px;
  background: rgba(22, 48, 47, .78);
  color: var(--creme);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- bandeau de chiffres ---------- */

.chiffres {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--creme-2);
  border-bottom: 1px solid var(--ligne);
}
.chiffres > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 26px clamp(18px, 2.6vw, 34px);
  border-right: 1px solid var(--ligne);
}
.chiffres > div:last-child { border-right: 0; }
.chiffres strong { font-family: var(--serif); font-weight: 400; font-size: 31px; line-height: 1.1; }
.chiffres span { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-clair); }

/* ---------- blocs deux colonnes ---------- */

.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.duo--inverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }

.colonne { display: flex; flex-direction: column; gap: 19px; }
.colonne p { color: var(--texte); line-height: 1.8; }
.section--sombre .colonne p { color: #BCCAC8; line-height: 1.85; }

/* ---------- galeries ---------- */

.galerie { display: grid; gap: 18px; }
.galerie--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.galerie--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.galerie--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.galerie img { width: 100%; height: 250px; object-fit: cover; border-radius: var(--arrondi); }
.galerie figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.galerie figcaption { font-size: 14px; color: var(--texte-clair); }
.galerie .large { grid-column: span 2; }

.entete-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 40px;
  margin-bottom: 30px;
}
.entete-section p { font-size: 14px; color: var(--texte-clair); max-width: 46ch; }

/* ---------- cartes ---------- */

.cartes { display: grid; gap: 20px; }
.cartes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cartes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cartes--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.carte {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  background: var(--creme-3);
  border: 1px solid var(--ligne);
  border-top: 2px solid var(--ardoise);
  border-radius: var(--arrondi);
}
.carte p { font-size: 15px; line-height: 1.7; color: var(--texte); }
.carte__distance {
  margin-top: auto;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texte-pale);
}
.carte--nue { background: none; border: 0; padding: 0; }

/* ---------- étiquettes ---------- */

.etiquettes { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 4px; }
.etiquettes span {
  padding: 7px 14px;
  border: 1px solid var(--ligne);
  border-radius: 100px;
  font-size: 14px;
  color: var(--texte);
}

/* ---------- tarifs ---------- */

.tarifs { display: flex; flex-direction: column; border-top: 2px solid var(--petrole); }
.tarifs__ligne {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--ligne);
}
.tarifs__ligne strong { font-size: 18px; font-weight: 600; }
.tarifs__ligne em { display: block; font-style: normal; font-size: 14px; color: var(--texte-clair); }
.tarifs__prix { font-family: var(--serif); font-size: 30px; white-space: nowrap; }
.tarifs__prix small { font-family: var(--sans); font-size: 14px; color: var(--texte-clair); }

.petites-lignes { font-size: 15px; line-height: 1.85; color: var(--texte-clair); }

/* ---------- planning de disponibilités ---------- */

.planning { display: flex; flex-direction: column; gap: 30px; }

.planning__legende { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; }
.planning__legende span { display: inline-flex; align-items: center; gap: 9px; }
.pastille { width: 17px; height: 17px; border-radius: 3px; flex: none; }
.pastille--libre  { background: #C7DBD4; }
.pastille--option { background: #EEDCBE; }
.pastille--prise  { background: #D8D4C1; }
.pastille--fermee { background: transparent; border: 1px dashed var(--ligne); }

.mois-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: clamp(16px, 2.2vw, 26px); }

.mois {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 18px 17px;
  background: var(--creme-3);
  border: 1px solid var(--ligne);
  border-radius: 6px;
}
.mois__titre {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  text-transform: capitalize;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ligne);
}
.mois__jours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mois__entete {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--texte-pale);
  padding-bottom: 6px;
}
.jour {
  position: relative;
  aspect-ratio: 1;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--texte);
}
.jour > span { position: relative; z-index: 1; }
.jour--vide { visibility: hidden; }

/* les jours d'une même semaine forment une bande continue */
.jour--debut { border-radius: 14px 0 0 14px; }
.jour--fin   { border-radius: 0 14px 14px 0; }

.jour--fermee { color: var(--texte-pale); opacity: .45; }
.jour--libre  { background: #C7DBD4; color: var(--petrole); font-weight: 600; }
.jour--option { background: #EEDCBE; color: #7A5A22; font-weight: 600; }
.jour--prise  { background: #D8D4C1; color: #8E8873; }
.jour--prise::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%; top: 50%;
  border-top: 1px solid #A8A18A;
  transform: rotate(-34deg);
}
.jour--debut::before {
  content: "";
  position: absolute;
  left: 4px; top: 22%; bottom: 22%;
  border-left: 2px solid var(--ardoise-fonce);
  opacity: .55;
}

.mois__resume {
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--texte-clair);
  padding-top: 4px;
}

.semaines-libres { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 12px; }
.semaine-libre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding: 12px 18px;
  background: var(--creme-3);
  border: 1px solid var(--ligne);
  border-left: 3px solid var(--ardoise-fonce);
  border-radius: var(--arrondi);
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  color: var(--petrole);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.semaine-libre:hover { background: #DDE8E3; }
.semaine-libre.est-choisie { background: #C7DBD4; border-color: var(--petrole); }
.semaine-libre--option { border-left-color: var(--ambre); }
.semaine-libre b { display: block; font-weight: 600; }
.semaine-libre em { font-style: normal; font-size: 13px; color: var(--texte-clair); }
.semaine-libre__prix { font-family: var(--serif); font-size: 22px; white-space: nowrap; }

/* ---------- étapes ---------- */

.etapes { display: flex; flex-direction: column; gap: 15px; }
.etape { display: flex; gap: 14px; }
.etape b {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ardoise-fonce);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  color: var(--ardoise-fonce);
}
.etape span { font-size: 15px; line-height: 1.6; color: var(--texte); }

/* ---------- formulaire ---------- */

.formulaire {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--petrole);
  color: #C9D4D2;
  border-radius: var(--arrondi);
}
.formulaire h2, .formulaire h3 { color: var(--creme); }
.formulaire > p { font-size: 15px; color: #A9BAB8; line-height: 1.7; }

.champs { display: flex; flex-direction: column; gap: 11px; }
.champs-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }

.formulaire label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93A8A6;
}
.formulaire input, .formulaire textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--petrole-clair);
  border: 1px solid var(--ligne-sombre);
  border-radius: var(--arrondi);
  color: var(--creme);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
}
.formulaire textarea { min-height: 96px; resize: vertical; }
.formulaire input::placeholder, .formulaire textarea::placeholder { color: #7C9290; }
.formulaire input:focus, .formulaire textarea:focus { outline: 0; border-color: var(--ardoise-clair); }
.formulaire .bouton { background: var(--creme); color: var(--petrole); }
.formulaire .bouton:hover { background: #FFFDF3; color: var(--petrole); }
.formulaire small { font-size: 13px; color: #93A8A6; }
.formulaire a { color: var(--ardoise-clair); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- appel final ---------- */

.final { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.final h2 { max-width: 22ch; }
.final .croquis-flottant { margin-bottom: 4px; }

/* ---------- pied de page ---------- */

.pied {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px 40px;
  padding: 54px var(--marge) 44px;
  background: var(--petrole-fonce);
  color: #9DAFAD;
  font-size: 15px;
}
.pied > div { display: flex; flex-direction: column; gap: 9px; }
.pied__marque { display: flex; align-items: center; gap: 13px; margin-bottom: 4px; }
.pied__marque img { width: 54px; height: auto; filter: brightness(1.35); }
.pied__marque b { font-family: var(--serif); font-weight: 400; font-size: 23px; color: var(--creme); letter-spacing: .03em; }
.pied h2 {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6F8886;
}
.pied a { color: #9DAFAD; text-decoration: underline; text-underline-offset: 3px; }
.pied a:hover { color: var(--creme); }
.pied__bas {
  grid-column: 1 / -1;
  border-top: 1px solid var(--ligne-sombre);
  padding-top: 20px;
  font-size: 13px;
  color: #6F8886;
}

/* ---------- barre collante du téléphone ---------- */

.barre-tel { display: none; }

/* =========================================================
   Adaptations écran
   ========================================================= */

@media (max-width: 1080px) {
  .galerie--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cartes--4  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__texte { padding: clamp(32px, 6vw, 56px) var(--marge); min-height: 0; }
  .hero__image { min-height: 320px; height: 48vw; max-height: 420px; }

  .duo, .duo--inverse { grid-template-columns: 1fr; }
  .duo img { max-height: 380px; object-fit: cover; width: 100%; }

  .cartes--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerie--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerie .large { grid-column: span 2; }

  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffres > div:nth-child(2n) { border-right: 0; }
  .chiffres > div:nth-child(-n+2) { border-bottom: 1px solid var(--ligne); }

  .pied { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .entete { flex-wrap: wrap; }
  .menu-bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    margin-right: -12px;
    cursor: pointer;
  }
  .entete > .bouton { display: none; }
  .nav {
    display: none;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-bottom: 8px;
  }
  .nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 2px;
    border-top: 1px solid var(--ligne);
    font-size: 17px;
  }
  .nav .bouton { display: inline-flex; margin-top: 14px; border-top: 0; justify-content: center; }
  .menu-case:checked ~ .nav { display: flex; }
}

@media (max-width: 620px) {
  .bandeau { font-size: 10.5px; letter-spacing: .12em; }
  .bandeau span:last-child { display: none; }

  .galerie--2, .galerie--3, .galerie--4 { grid-template-columns: 1fr; }
  .galerie .large { grid-column: span 1; }
  .galerie img { height: 240px; }

  .cartes--2, .cartes--3, .cartes--4 { grid-template-columns: 1fr; }
  .champs-duo { grid-template-columns: 1fr; }

  .tarifs__ligne { grid-template-columns: 1fr; }
  .tarifs__prix { font-size: 26px; }

  .pied { grid-template-columns: 1fr; }
  .hero__actions .bouton { width: 100%; }

  .barre-tel {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 20;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px var(--marge);
    background: var(--creme);
    border-top: 1px solid var(--ligne);
  }
  .barre-tel div { display: flex; flex-direction: column; line-height: 1.3; }
  .barre-tel em { font-style: normal; font-size: 13px; color: var(--texte-clair); }
  .barre-tel strong { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  .entete, .bandeau, .barre-tel, .menu-bouton, .croquis, .bande-croquis { display: none; }
  body { background: #fff; color: #000; }
}
