/* Breizh Gonflable · « Le gonflage »
   Les titres sont en Fraunces variable : fins et secs au repos, bombés une fois gonflés.
   Voir DESIGN.md. */

@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --toile: #FAF7F0;
  --surface: #FFFFFF;
  --encre: #1E2330;
  --encre-douce: #5B6170;
  --filet: rgba(30, 35, 48, 0.12);
  --rouge: #D93A2B;
  --rouge-fonce: #B92D20;
  --jaune: #FFC93C;
  --bleu: #1F5FA8;
  --ciel: #E3EEF8;

  --display: "Fraunces", Georgia, serif;
  --texte: "Figtree", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --rebond: cubic-bezier(0.34, 1.56, 0.64, 1);  /* un léger dépassement, comme une structure qui se tend */

  /* Les deux états d'une lettre (mêmes axes, dans le même ordre, pour que la transition passe) */
  --plat: "wght" 140, "SOFT" 0, "opsz" 144, "WONK" 0;
  --gonfle: "wght" 740, "SOFT" 60, "opsz" 144, "WONK" 0;
  --appui: "wght" 560, "SOFT" 60, "opsz" 144, "WONK" 0;

  --gouttiere: clamp(16px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--toile); color: var(--encre); font: 400 17px/1.6 var(--texte); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; font-variation-settings: var(--gonfle); letter-spacing: -0.02em; }
p, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--jaune); color: var(--encre); }
.evitement { position: fixed; left: 16px; top: -60px; z-index: 60; background: var(--encre); color: var(--toile); padding: 10px 16px; border-radius: 99px; text-decoration: none; }
.evitement:focus { top: 16px; }

/* ---------- Lettres qui se gonflent ---------- */
.gonfle .mot { display: inline-block; white-space: nowrap; }
.gonfle .lettre {
  display: inline-block;
  font-variation-settings: var(--plat);
  transform-origin: 50% 85%;
  transition: font-variation-settings 850ms var(--rebond), transform 480ms var(--rebond);
  transition-delay: calc(var(--i, 0) * 18ms), 0ms;
}
.gonfle.gonflee .lettre { font-variation-settings: var(--gonfle); }
/* Appuyer sur une lettre : elle s'écrase un instant puis reprend sa forme */
.gonfle.gonflee .lettre.appuyee {
  font-variation-settings: var(--appui);
  transform: scale(1.07, 0.86);
  transition-duration: 160ms, 110ms;
  transition-delay: 0ms, 0ms;
}

/* ---------- Boutons ---------- */
.bouton {
  --fond: var(--rouge);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border: 0; border-radius: 99px;
  background: var(--fond); color: #FFFFFF;
  font: 600 16px/1 var(--texte); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.bouton svg { font-size: 19px; }
.bouton:active { transform: scale(0.97); }
.bouton--petit { min-height: 44px; padding: 0 18px; font-size: 15px; }
.bouton--plein { width: 100%; }
.bouton--bleu { --fond: var(--bleu); width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .bouton:hover { --fond: var(--rouge-fonce); }
  .bouton--bleu:hover { --fond: #194E8A; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; z-index: 30; top: 14px; left: var(--gouttiere); right: var(--gouttiere);
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 6px 6px 8px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-radius: 99px;
  box-shadow: 0 0 0 1px var(--filet), 0 14px 36px -24px rgba(30, 35, 48, 0.4);
}
.nav__marque { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-variation-settings: "wght" 700, "SOFT" 100, "opsz" 36, "WONK" 0; font-size: 19px; }
.nav__logo { display: block; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #FFFFFF; box-shadow: 0 0 0 1px var(--filet); }
.nav__logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }

/* ---------- Accueil ---------- */
.accueil {
  min-height: 100dvh;
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
  align-items: center; gap: 5vw;
  padding: 140px var(--gouttiere) 10vh;
}
.surtitre { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bleu); }
.accueil h1 { margin: 22px 0 30px; font-size: clamp(56px, 8.6vw, 150px); line-height: 0.98; }
.pastille {
  display: inline-block; vertical-align: -0.06em;
  width: 1.45em; height: 0.78em; margin: 0 0.08em 0 0.02em;
  border-radius: 99px; overflow: hidden;
  background: var(--jaune);
  transform: scale(0.4, 0.2); opacity: 0;
  transition: transform 1100ms var(--rebond) 350ms, opacity 400ms ease 350ms;
}
.pastille img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.gonflee .pastille { transform: none; opacity: 1; }
.accueil__chapo { max-width: 34em; font-size: 19px; color: var(--encre-douce); margin-bottom: 34px; }

.accueil__note {
  justify-self: end; width: 100%; max-width: 280px;
  padding: 26px 26px 24px; border-radius: 28px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--filet), 0 30px 60px -40px rgba(30, 35, 48, 0.35);
}
.note__chiffre { font-family: var(--display); font-variation-settings: var(--gonfle); font-size: 64px; line-height: 1; color: var(--rouge); }
.note__etoiles { display: flex; gap: 3px; margin: 10px 0 6px; color: var(--jaune); font-size: 20px; }
.note__texte { font-size: 14px; color: var(--encre-douce); }
.note__citation { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--filet); font-size: 15px; }

/* ---------- Photos qui se gonflent ---------- */
.gonfle-photo {
  overflow: hidden; border-radius: 28px; background: var(--ciel);
  transform: scale(0.82, 0.5); opacity: 0.3;
  transition: transform 800ms var(--rebond), opacity 400ms ease;
  transform-origin: 50% 100%;
}
.gonfle-photo.vu { transform: none; opacity: 1; }
.gonfle-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Vedette ---------- */
.vedette {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 6vw; align-items: center;
  padding: clamp(80px, 14vh, 160px) var(--gouttiere);
}
.vedette__cadre { aspect-ratio: 1; max-width: 620px; }
.vedette h2 { font-size: clamp(44px, 5.4vw, 88px); line-height: 0.98; }
.vedette__texte > p { margin-top: 22px; max-width: 30em; color: var(--encre-douce); }
.fiche { margin-top: 30px; display: grid; gap: 0; border-top: 1px solid var(--filet); }
.fiche > div { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--filet); }
.fiche dt { font-size: 14px; color: var(--encre-douce); }

/* ---------- La phrase gonflée au défilement ---------- */
.souffle { height: 180vh; background: var(--jaune); }
/* Aligné à gauche : le bord du texte ne bouge pas pendant que les mots se gonflent */
.souffle__scene { position: sticky; top: 0; height: 100vh; height: 100dvh; display: grid; align-items: center; justify-items: start; padding: 0 var(--gouttiere); overflow: hidden; contain: layout paint; }
.souffle__texte br.m { display: none; }
.souffle__texte { max-width: 1300px; font-family: var(--display); font-size: clamp(46px, 7.4vw, 128px); line-height: 1; letter-spacing: -0.02em; color: var(--encre); text-align: left; }
.souffle__texte .mot { display: inline-block; font-variation-settings: var(--plat); }

/* ---------- Les structures ---------- */
.structures { max-width: 1400px; margin: 0 auto; padding: clamp(100px, 16vh, 180px) var(--gouttiere) 0; }
.tete h2 { font-size: clamp(48px, 6.4vw, 104px); line-height: 0.98; }
.tete p { margin-top: 20px; max-width: 36em; color: var(--encre-douce); }
/* Grille sans case vide : une grande (2 × 2), deux petites, une large, sur 4 colonnes */
.grille { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 18px; }
.case { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.case h3 { font-size: 24px; font-variation-settings: "wght" 700, "SOFT" 100, "opsz" 36, "WONK" 0; }
.case p { font-size: 14px; }
.case--grande { grid-column: span 2; grid-row: span 2; }
.case--grande .case__cadre { flex: 1; min-height: 320px; }
.case:not(.case--grande) .case__cadre { aspect-ratio: 1; }
.case:last-child { grid-column: 3 / span 2; }
.case:last-child .case__cadre { aspect-ratio: 2 / 1; }
.case--vide h3 { font-size: 15px; }
/* Une structure pas encore gonflée : plate, en pointillés */
.case__cadre--plat {
  display: grid; place-items: center;
  border-radius: 28px;
  background: repeating-linear-gradient(135deg, rgba(31, 95, 168, 0.05) 0 12px, transparent 12px 24px), var(--surface);
  box-shadow: inset 0 0 0 2px rgba(30, 35, 48, 0.14);
  transition: transform 500ms var(--rebond);
}
.case__cadre--plat span { font-family: var(--display); font-variation-settings: var(--plat); font-size: 26px; color: var(--encre-douce); }
@media (hover: hover) and (pointer: fine) {
  .case--vide:hover .case__cadre--plat { transform: scale(1.03); }
  .case--vide:hover .case__cadre--plat span { font-variation-settings: var(--gonfle); }
}

/* ---------- Réserver ---------- */
.reserver {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 6vw; align-items: end;
  padding: clamp(110px, 18vh, 200px) var(--gouttiere) 0;
}
.reserver h2 { font-size: clamp(48px, 6.4vw, 104px); line-height: 0.98; }
.numero { display: inline-block; margin: 26px 0 14px; font-family: var(--display); font-variation-settings: var(--gonfle); font-size: clamp(40px, 5.2vw, 84px); line-height: 1; letter-spacing: -0.01em; color: var(--rouge); text-decoration: none; transition: transform 300ms var(--rebond); }
@media (hover: hover) and (pointer: fine) { .numero:hover { transform: scale(1.03); } }
.reserver__appel > p { color: var(--encre-douce); max-width: 30em; }
.conditions { display: grid; border-top: 1px solid var(--filet); }
.conditions > div { padding: 16px 0; border-bottom: 1px solid var(--filet); display: grid; gap: 4px; }
.conditions dt { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bleu); }
.conditions dd { font-size: 17px; }

/* ---------- Avis ---------- */
.avis { max-width: 1400px; margin: 0 auto; padding: clamp(110px, 18vh, 200px) var(--gouttiere) 0; }
.avis__titre { font-family: var(--texte); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bleu); font-variation-settings: normal; }
.avis__liste { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 6vw; }
.avis__bloc p { font-family: var(--display); font-size: clamp(36px, 4.4vw, 68px); line-height: 1.05; }
.avis__bloc--decale { margin-top: 8vh; }
.avis__bloc footer { margin-top: 14px; font-size: 14px; color: var(--encre-douce); }

/* ---------- Contact ---------- */
.contact {
  margin-top: clamp(110px, 18vh, 200px);
  padding: clamp(90px, 14vh, 160px) var(--gouttiere);
  background: var(--ciel);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 6vw; align-items: start;
}
.contact h2 { font-size: clamp(48px, 6.4vw, 104px); line-height: 0.98; }
.contact__texte p { margin-top: 22px; max-width: 28em; color: var(--encre-douce); }
.formulaire { display: grid; gap: 18px; padding: 30px; border-radius: 28px; background: var(--surface); box-shadow: 0 30px 60px -40px rgba(30, 35, 48, 0.3); }
.champ { display: grid; gap: 7px; min-width: 0; }
.champs-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.champ label, .formulaire__suite label { font-size: 14px; font-weight: 600; }
.champ input, .champ textarea, .formulaire__suite textarea {
  width: 100%; min-width: 0; min-height: 50px; padding: 13px 15px;
  border: 0; border-radius: 14px;
  background: var(--toile); color: var(--encre);
  font: 400 16px/1.4 var(--texte);
  box-shadow: inset 0 0 0 1px var(--filet); transition: box-shadow 200ms ease;
}
.champ textarea { resize: vertical; }
.champ input::placeholder, .champ textarea::placeholder { color: #8C909B; }
.champ input:focus, .champ textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--rouge); }
.formulaire__erreur { color: var(--rouge-fonce); font-size: 14px; }
.formulaire__suite { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--filet); }
.formulaire__suite[hidden] { display: none; }
.formulaire__suite textarea { resize: none; background: var(--ciel); }
.formulaire__note { font-size: 13px; color: var(--encre-douce); }

/* ---------- Pied ---------- */
.pied { padding: 56px var(--gouttiere) 44px; display: grid; gap: 8px; text-align: center; font-size: 15px; color: var(--encre-douce); }
.pied__nom { font-family: var(--display); font-variation-settings: var(--gonfle); font-size: 32px; color: var(--encre); }
.pied__petit { font-size: 13px; }

/* Apparitions */
.revele { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-out); }
.revele.vu { opacity: 1; transform: none; }

/* ---------- Repères de maquette (à retirer à la livraison) ---------- */
.maquette .trou { display: inline-block; padding: 1px 10px; border-radius: 99px; border: 1px dashed var(--rouge); color: var(--rouge-fonce); font: 600 12.5px/1.6 var(--texte); letter-spacing: 0; text-transform: none; font-variation-settings: normal; }
body:not(.maquette) .trou { display: none; }
.compteur-trous { position: fixed; right: 16px; bottom: 16px; z-index: 30; padding: 8px 14px; border-radius: 99px; background: var(--encre); color: var(--toile); font-size: 12px; }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 900px) {
  .accueil { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 0; padding-top: 120px; }
  .accueil__note { justify-self: start; }
  .vedette, .reserver, .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .avis__liste { grid-template-columns: minmax(0, 1fr); }
  .avis__bloc--decale { margin-top: 0; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .nav { left: 12px; right: 12px; top: 10px; }
  .nav__marque > span:last-child { font-size: 17px; }
  .bouton--petit span { display: none; }
  .bouton--petit { width: 44px; padding: 0; }
  .accueil h1 { font-size: clamp(50px, 14.5vw, 76px); }
  /* La photo du titre s'intercale entre les deux lignes du titre */
  .accueil h1 .pastille { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 14px 0 10px; vertical-align: 0; border-radius: 24px; }
  .accueil h1 br { display: none; }
  .accueil__chapo { font-size: 17px; }
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .case--grande { grid-column: span 2; grid-row: auto; }
  .case--grande .case__cadre { aspect-ratio: 1; min-height: 0; }
  .case:last-child { grid-column: span 2; }
  .champs-duo { grid-template-columns: minmax(0, 1fr); }
  .formulaire { padding: 22px 18px; }
  .compteur-trous { left: 12px; right: auto; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .gonfle .lettre { font-variation-settings: var(--gonfle); transition: none; }
  .gonfle.gonflee .lettre.appuyee { transform: none; font-variation-settings: var(--gonfle); }
  .pastille, .gonfle-photo { transform: none; opacity: 1; transition: opacity 300ms ease; }
  .souffle__texte .mot { font-variation-settings: var(--gonfle) !important; }
  .revele { transform: none; }
  .case__cadre--plat, .numero { transition: none; }
}
.gonfle.pose .lettre { transition-delay: 0ms, 0ms; }
.case__cadre--plat span { font-variation-settings: "wght" 320, "SOFT" 0, "opsz" 36, "WONK" 0; }
@media (hover: hover) and (pointer: fine) { .case--vide:hover .case__cadre--plat span { font-variation-settings: "wght" 820, "SOFT" 100, "opsz" 36, "WONK" 0; } }
/* La grande case montre un autre cadrage de la même photo : la tête du clown */
.case--grande .case__cadre img { object-position: 50% 0%; } /* pas d'agrandissement : la photo ne fait que 640 px */
@media (max-width: 767px) { .surtitre { font-size: 11px; letter-spacing: 0.1em; } }

.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 767px) {
  .souffle__texte { font-size: clamp(34px, 10.5vw, 56px); }
  .souffle__texte br.m { display: inline; }
  .avis__bloc p { font-size: clamp(26px, 7.2vw, 40px); }
}
