/* ==========================================================
   Shake and Bar — feuille de style unique, écrite à la main.
   Mesures reprises du site actuel : marges 25 px (20 px sur
   téléphone), colonnes 800 / 720 / 590 px, bascule à 810 px.
   ========================================================== */

/* ---------- Polices (hébergées avec le site) ---------- */
@font-face { font-family: "Gilda Display"; src: url(fonts/gilda-display-latin.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Raleway"; src: url(fonts/raleway-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Raleway"; src: url(fonts/raleway-italic-latin.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

/* ---------- Charte ---------- */
:root {
  --fond: #F5F5F5;
  --texte: #171616;
  --brun: #301914;          /* en touche : survols, bouton actif, libellés */
  --beige: #CFC0AF;         /* en touche : filets, focus sur fond sombre */
  --doux: #5e5a58;          /* texte courant : le gris de la cible, assombri pour la lisibilité */
  --doux-sombre: #a39e9b;   /* libellés sur fond sombre */
  --ligne: rgba(23, 22, 22, .12);
  --cadre: #E8E2DB;         /* fond des cadres « photo à venir » */
  --titre: "Gilda Display", Georgia, serif;
  --corps: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --marge: 25px;
  --h1: 64px; --h2: 54px; --h3: 34px;
  --ecart: 144px;           /* respiration entre les sections de l'accueil */
  --lh-h1: 1.2;
}
@media (min-width: 810px) and (max-width: 1199px) {
  :root { --h1: 54px; --h2: 46px; }
}
@media (max-width: 809px) {
  :root { --marge: 20px; --h1: 48px; --h2: 34px; --h3: 28px; --ecart: 100px; --lh-h1: 1.1; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 400 16px/1.7 var(--corps); overflow-wrap: break-word; overflow-x: clip;
  font-variant-numeric: lining-nums;   /* Raleway : chiffres alignés (téléphone, codes postaux) */
  letter-spacing: -.01em;
}
/* Titres resserrés comme la cible : h1 -0,05 em, titres de section -0,02 em, sous-titres -0,04 em */
h1, h2, h3, .accroche, .citation__phrase { margin: 0; font: 400 var(--h3)/1.3 var(--titre); letter-spacing: -.04em; }
/* Gilda Display : son crénage colle l'apostrophe au « é » suivant (L’énergie) ; on le coupe sur tout ce qui est en Gilda */
h1, h2, h3, .accroche, .citation__phrase, .pied__nom { font-kerning: none; }
/* .accroche : phrase d'ouverture mise en forme comme un titre, sans être un titre */
h1, .titre-xl { letter-spacing: -.05em; }
.bloc h2, .titre-l { letter-spacing: -.02em; }
p, ul, dl, dd, blockquote { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--brun); }
:focus-visible { outline: 2px solid var(--brun); outline-offset: 3px; }
.evitement, .visuellement-cache { position: absolute; left: -999px; }
.evitement:focus { left: 10px; top: 10px; z-index: 30; background: #fff; padding: 8px 12px; }

/* Lien souligné des sections (« Particuliers », « En savoir plus »…) */
.lien { font-size: 16px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Bouton blanc « Réserver » */
.bouton { display: inline-block; background: #fff; color: var(--texte); padding: 10px 14px; text-decoration: none; }
.bouton:hover { background: var(--beige); color: var(--texte); }

/* Cadre neutre qui remplace une photo retirée */
.photo-a-venir {
  display: grid; place-items: center; padding: 12px; text-align: center;
  background: var(--cadre); border: 1px solid var(--beige); color: var(--brun);
  font-size: 14px; letter-spacing: .03em; line-height: 1.4;
}

/* ---------- En-tête ---------- */
.entete {
  position: absolute; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; padding: 18px var(--marge); color: #fff;
}
.entete--clair { background: var(--fond); color: var(--texte); box-shadow: inset 0 -1px var(--ligne); }
.entete__logo { display: block; color: inherit; }
.entete__logo .logo { display: block; }
.entete__menu { flex: 1; display: flex; justify-content: flex-end; align-items: center; }
.entete__menu ul { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 40px; padding: 0; list-style: none; }
.entete__menu a { text-decoration: none; }
.entete__menu ul a { font-size: 15px; text-transform: uppercase; white-space: nowrap; }
.entete__menu a[aria-current] { border-bottom: 1px solid currentColor; }
.entete .entete__menu a:hover { color: var(--beige); }
.entete--clair .entete__menu a:hover { color: var(--brun); }
.entete__burger { display: none; }

/* Sous 1200 px : barre claire et menu repliable (bouton à deux traits) */
@media (max-width: 1199px) {
  .entete { padding: 20px var(--marge); background: var(--fond); color: var(--texte); box-shadow: inset 0 -1px var(--ligne); }
  .entete__burger {
    display: grid; gap: 6px; margin-left: auto; padding: 12px 0 12px 12px;
    background: none; border: 0; cursor: pointer; color: inherit;
  }
  .entete__burger span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .2s; }
  .est-ouvert .entete__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .est-ouvert .entete__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .entete__menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 22px;
    padding: 4px var(--marge) 28px; background: var(--fond); border-bottom: 1px solid var(--ligne);
  }
  .est-ouvert .entete__menu { display: flex; }
  .entete__menu ul { position: static; transform: none; flex-direction: column; gap: 14px; }
  .entete .entete__menu a:hover { color: var(--brun); }
  /* Sans JavaScript : pas de bouton, les liens s'affichent sous le logo */
  html:not(.js) .entete__burger { display: none; }
  html:not(.js) .entete { position: relative; flex-wrap: wrap; gap: 10px; }   /* dans le flux : ne recouvre pas le titre */
  html:not(.js) .entete__menu {
    display: flex; position: static; flex-basis: 100%; flex-direction: row; flex-wrap: wrap;
    gap: 8px 20px; padding: 0; background: none; border: 0;
  }
  html:not(.js) .entete__menu ul { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
}

/* ---------- Grand visuel de l'accueil et des ateliers ---------- */
.hero {
  position: relative; display: grid; place-items: center; min-height: 900px;
  color: #fff; text-align: center; overflow: hidden;
}
/* Téléphone et tablette : cadrage décalé vers la gauche quand le centre de la photo est vide */
@media (max-width: 1199px) { .hero > img.cadre-gauche { object-position: 15% center; } }
.hero > img, .hero > .photo-a-venir {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after { content: ""; position: absolute; inset: 0; }
/* Bandeau et citation : photo, voile et texte superposés dans une même case de grille */
.bandeau, .citation { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.bandeau > *, .citation > * { grid-area: 1 / 1; }
.bandeau > img, .bandeau > .photo-a-venir, .citation__photo { width: 100%; height: 100%; object-fit: cover; contain: size; }
.citation__photo img { width: 100%; height: 100%; object-fit: cover; }
.bandeau__voile, .citation__voile { place-self: stretch; }
.hero::after { background: rgba(0, 0, 0, .35); }
.hero__texte { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; max-width: 800px; padding: 0 var(--marge); }
.hero h1 { font-size: var(--h1); line-height: var(--lh-h1); }
.hero p { max-width: 600px; font-size: 18px; line-height: 1.8; }
.hero .bouton { margin-top: 21px; }

/* ---------- Bandeau photo des pages intérieures ---------- */
.bandeau { position: relative; place-items: center; height: 400px; color: #fff; text-align: center; overflow: hidden; }
.bandeau__voile { background: linear-gradient(rgba(0, 0, 0, .3) 60%, rgba(0, 0, 0, .75)); }
.bandeau h1 { position: relative; z-index: 1; padding: 0 var(--marge); font-size: var(--h1); line-height: var(--lh-h1); }
/* Cadre « photo à venir » dans un bandeau : sombre, pour garder le titre lisible */
.bandeau > .photo-a-venir { align-items: end; padding-bottom: 24px; background: #2b2827; border: 0; color: var(--beige); }
@media (max-width: 809px) {
  /* Sur téléphone, la photo commence sous la barre de menu (400 px de haut), comme la cible */
  .bandeau { height: 467px; padding-top: 67px; }
}

/* ---------- Accueil : sections ---------- */
.bloc { margin-top: var(--ecart); text-align: center; }
.bloc--prestations { padding: 0 var(--marge); }
.bloc--prestations .trio { padding: 0; }
.bloc__texte { display: grid; justify-items: center; gap: 15px; max-width: 720px; margin: 0 auto; }
.bloc h2 { font-size: var(--h2); line-height: 1.2; }
.bloc__texte p { max-width: 550px; color: var(--doux); font-size: 18px; line-height: 1.8; }
/* Accueil : 600 px pour garder les accroches sur deux lignes comme la cible (Raleway est plus large) */
.bloc:not(.atelier) .bloc__texte p { max-width: 600px; }

/* Rangée de trois photos (453 × 550 sur grand écran) */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding: 0 var(--marge); margin-top: 85px; }
.trio img, .trio .photo-a-venir { width: 100%; height: auto; aspect-ratio: 453 / 550; object-fit: cover; }
/* Une photo + les deux autres groupées (le groupe disparaît sur téléphone), comme la cible */
.trio--un { grid-template-columns: minmax(0, calc((100% - 30px) / 3)) minmax(0, 1fr); }
.trio__suite { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
/* Trios décalés de « Prestations sur mesure » : colonnes alignées en haut, décalage à l'intérieur */
.trio--haut { margin: 0 0 120px; }
.trio--haut > :not(:nth-child(2)), .trio--bas > :nth-child(2) { padding-top: 120px; }
.trio--bas { margin-top: 120px; }

/* Citation du fondateur sur photo */
.citation { position: relative; height: 780px; margin-top: var(--ecart); color: #fff; overflow: hidden; }
.citation__voile { background: rgba(0, 0, 0, .1) linear-gradient(90deg, rgba(0, 0, 0, .45), transparent 60%); }
.citation__texte { position: relative; z-index: 1; align-self: start; display: grid; justify-items: start; gap: 15px; max-width: 620px; margin: 40px var(--marge); }
.citation__phrase { font-size: var(--h3); line-height: 1.3; }
.citation__auteur { font-size: 18px; }

/* Ateliers : photos d'abord, texte ensuite */
.atelier { margin-top: 150px; }
.hero + .atelier { margin-top: 40px; }
.atelier .trio { margin: 0 0 60px; }
.atelier:last-child { margin-bottom: 150px; }
.citation .lien:hover, .pied a:hover { color: var(--beige); }

/* Avis Google : section vide, prête à recevoir les vrais avis */
.avis { padding-bottom: 80px; }
.avis__liste { list-style: none; padding: 0; margin: 40px auto 0; max-width: 720px; }
.avis__liste:empty::before {
  content: "Emplacement réservé aux avis Google"; display: block; padding: 48px 20px;
  border: 1px dashed var(--beige); color: var(--doux); font-size: 15px;
}

@media (max-width: 809px) {
  .bloc { padding: 0 var(--marge); }
  .trio { padding: 0; }
  .trio--un { grid-template-columns: 1fr; margin-top: 60px; }
  .trio__suite { display: none; }   /* une seule photo sur téléphone, comme la cible */
  .trio { gap: 20px; }
  .trio--haut { margin-bottom: 75px; }
  .trio--haut > :not(:nth-child(2)), .trio--bas > :nth-child(2) { padding-top: 75px; }
  .trio--bas { margin-top: 75px; }
  .trio .photo-a-venir { font-size: 11px; padding: 6px; }
  .citation { height: auto; }
  .citation__photo { display: contents; }
  .citation__photo img { position: absolute; inset: 0; }
  .citation__voile { display: none; }
  .citation::after { content: ""; position: absolute; inset: 0; }
  .citation__texte { align-self: end; margin-top: calc(375px - 9.5vw); }   /* bloc photo de 869 px à 390 px, 651 px à 768 px, comme la cible */
  .citation::after { background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .65) 45%); }
  .bloc__texte p { font-size: 16px; }
  .hero p { max-width: 300px; font-size: 16px; }
  .atelier { margin-top: 100px; }
  .hero + .atelier { margin-top: 24px; }
  .atelier:last-child { margin-bottom: 100px; }
}

/* ---------- Pages intérieures : colonne de texte (590 px) ---------- */
.article { max-width: calc(590px + 2 * var(--marge)); margin: 0 auto; padding: 100px var(--marge) 150px; }
.article > * + * { margin-top: 20px; }
.article p, .article li { color: var(--doux); font-size: 18px; line-height: 1.8; }
.article h2, .article h3 { margin-top: 60px; margin-bottom: 12px; color: var(--texte); }
.article .accroche { margin-bottom: 12px; color: var(--texte); font: 400 var(--h3)/1.3 var(--titre); }
.article h3 { font-size: var(--h3); }
.article > :first-child { margin-top: 0; }
.article .titre-xl { margin-bottom: 40px; font-size: var(--h1); line-height: var(--lh-h1); }
.article .titre-l { margin-bottom: 40px; font-size: var(--h2); line-height: 1.2; }
.article h2 span { display: block; }
.article ul { padding-left: 21px; }
.article li + li { margin-top: 0; }
.article strong { font-weight: 700; }
.article em, .article .signature { font-style: italic; }
.article .signature { margin-top: 5px; font-size: 16px; }

/* Cartes des prestations (2 par ligne) */
.article .cartes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 8px; padding: 0; list-style: none; }
.article .cartes li {
  margin: 0; padding: 15px 16px 20px; border-radius: 8px;
  background: #fff; box-shadow: 0 0 0 2px rgba(23, 22, 22, .05), 0 2px 6px rgba(23, 22, 22, .04);
}
.article .cartes h3 { margin: 0 0 5px; color: var(--texte); font: 400 18px/1.7 var(--corps); letter-spacing: -.01em; }
.article .cartes p { font-size: 16px; line-height: 1.7; }

/* Fiche pratique d'un atelier : intitulé à gauche, valeur à droite, détail dessous */
.infos { display: grid; gap: 25px; }
.infos > div { display: grid; grid-template-columns: 1fr auto; gap: 5px 20px; }
.infos dd { display: contents; }
.infos dt, .infos__valeur { font-size: 18px; line-height: 1.8; }
.infos__valeur { text-align: right; }
.infos__detail { grid-column: 1 / -1; color: var(--doux); font-size: 16px; line-height: 1.7; }

@media (max-width: 809px) {
  .article { padding: 60px var(--marge) 100px; }
  .article p, .article li { font-size: 15px; }   /* 14 px chez la cible : 15 px pour rester lisible */
  .article .cartes { grid-template-columns: 1fr; gap: 16px; }
  .article .cartes h3 { font-size: 15px; }
  .infos dt, .infos__valeur { font-size: 16px; }
  .infos__detail { font-size: 14px; }
}

/* ---------- Contact ---------- */
.contact { padding: 150px var(--marge); text-align: center; }
.contact h1 { font-size: var(--h1); line-height: var(--lh-h1); }
.contact__intro { max-width: 450px; margin: 10px auto 0; color: var(--doux); font-size: 18px; line-height: 1.8; }
.contact__intro a { color: var(--texte); white-space: nowrap; }
.formulaire { display: grid; gap: 22px; max-width: 370px; margin: 50px auto 0; text-align: left; }
.formulaire label { display: grid; gap: 8px; color: var(--doux); font-size: 14px; }
.formulaire input, .formulaire select, .formulaire textarea {
  width: 100%; min-height: 48px; padding: 12px; border: 0; border-bottom: 1px solid #8f8a87; border-radius: 0;
  background: #EAE8E6; color: var(--texte); font: 15px/1.5 var(--corps);
}
.formulaire textarea { min-height: 100px; resize: vertical; }
.formulaire button {
  min-height: 48px; border: 0; background: var(--texte); color: #fff; font: 15px var(--corps); cursor: pointer;
}
.formulaire button:hover { background: var(--brun); }
.formulaire__note { color: var(--doux); font-size: 14px; line-height: 1.6; }
.formulaire__etat { min-height: 1.7em; color: var(--brun); font-size: 14px; }
@media (max-width: 809px) { .contact { padding: 120px var(--marge) 100px; } .contact__intro { font-size: 16px; } }

/* ---------- Pages légales ---------- */
.legal { max-width: calc(670px + 2 * var(--marge)); margin: 0 auto; padding: 150px var(--marge); }
.legal h1 { margin-bottom: 30px; font-size: var(--h1); line-height: var(--lh-h1); }
.legal h2 { margin: 40px 0 12px; font-size: 24px; }
.legal p { color: var(--doux); font-size: 18px; line-height: 1.8; }
.legal p + p { margin-top: 20px; }
.a-completer { color: var(--brun); font-weight: 600; }
.introuvable { margin-top: 20px; padding-left: 21px; color: var(--doux); font-size: 18px; line-height: 2; }
@media (max-width: 809px) { .legal { padding: 120px var(--marge) 100px; } .legal p { font-size: 16px; } }

/* ---------- Pied de page ---------- */
.pied { background: var(--texte); color: #fff; }
.pied__contenu { padding: 25px var(--marge) 20px; }
.pied a { text-decoration: none; }
.pied__nom { font: var(--h3)/1.3 var(--titre); letter-spacing: -.04em; }
.pied__infos { display: grid; gap: 20px; margin-top: 40px; }
.pied__infos > div { display: grid; gap: 6px; justify-items: start; }
.pied__label { color: var(--doux-sombre); }
.a-fournir { border: 1px dashed var(--beige); padding: 0 8px; color: var(--beige); }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 60px; }
.pied__liens { display: grid; gap: 10px; padding: 0; list-style: none; text-transform: uppercase; }
.pied__fin { display: grid; gap: 6px; justify-items: end; text-align: right; }
.pied__copy { color: var(--doux-sombre); }
.pied__sante { color: #d9d4d0; font-size: 14px; }
@media (max-width: 809px) {
  .pied__fin { justify-items: start; text-align: left; }
}
.pied :focus-visible { outline-color: var(--beige); }
