/* ==========================================================
   perrine-pascal.fr — feuille de style unique
   Mobile d'abord. Aucune ressource externe : pas de cookie,
   aucun transfert de données vers un tiers, chargement rapide.

   POLICES : voir LISEZMOI.md. Tant que les fichiers ne sont pas
   dans /fonts, le site utilise Georgia (déjà présente sur les appareils).
   Pour activer Cormorant Garamond (titres), décommenter le
   bloc « POLICES AUTO-HÉBERGÉES » juste en dessous.
   ========================================================== */

/* --- POLICES AUTO-HÉBERGÉES (à décommenter une fois les fichiers dans /fonts) ---
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
*/

/* ---------- 1. Variables ---------- */
:root {
  --bg: #f7f3ec;
  --bg-alt: #efe9dc;
  --ink: #2b241d;
  --ink-soft: #5a5042;
  --accent: #7a4a2e;
  --accent-fonce: #5e3720;
  --line: #ddd4c4;
  --sauge: #dfe6d3;        /* petit rappel de vert pastel */
  --sauge-fonce: #6f8260;
  --sur-accent: #fffaf2;   /* texte posé sur la couleur d'accent */

  --titre: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --texte: "Source Serif 4", Georgia, "Iowan Old Style", "Times New Roman", serif;

  --largeur: 1180px;
  --mesure: 62ch;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1812;
    --bg-alt: #241f17;
    --ink: #ece6da;
    --ink-soft: #b8ad9a;
    --accent: #d99a6c;
    --accent-fonce: #e8b48c;
    --line: #3a332a;
    --sauge: #2a3024;
    --sauge-fonce: #a9b894;
    --sur-accent: #1c1812;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 4px; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; line-height: 1.25; }

p { margin: 0 0 1.2em; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-fonce); }

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

.lien-evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.7rem 1rem;
  z-index: 100;
}
.lien-evitement:focus { left: 0.5rem; top: 0.5rem; color: var(--bg); }

/* ---------- 3. En-tête ---------- */
.entete { border-bottom: 1px solid var(--line); background: var(--bg); }

.entete__interieur {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.marque {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}
.marque:hover { color: var(--ink); }
.marque img { height: 58px; width: auto; }
@media (prefers-color-scheme: dark) {
  .marque img { filter: invert(1) brightness(0.92); }
}
.marque__nom {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1;
}
.marque__nom small {
  display: block;
  margin-top: 4px;
  font-family: var(--titre);
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 6px;
}
.nav a {
  display: block;
  padding: 8px 14px;
  min-height: 40px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--titre);
  font-size: 1.2rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 30rem) {
  .nav a { padding: 8px 9px; font-size: 1.08rem; }
}

/* ---------- 4. Mise en page ---------- */
.conteneur {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 24px;
}

/* Page avec galerie : photos à gauche, texte à droite (comme la page de Perrine) */
.wrap {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 32px 18px 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.gallery {
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.gallery figure { flex: 0 0 78%; margin: 0; scroll-snap-align: start; }
.gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  filter: saturate(0.97);
}
.gallery img.contain { object-fit: contain; background: var(--bg); }
.gallery figcaption {
  font-family: var(--titre);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 10px 6px 0;
  line-height: 1.4;
}
.gallery figcaption .sub { display: block; font-size: 0.9rem; margin-top: 3px; color: var(--accent); }

.content h1 { margin-bottom: 4px; }
.role {
  font-family: var(--titre);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.content h2 {
  margin: 44px 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.content p, .content li { max-width: var(--mesure); font-size: 1.08rem; }
.content p { margin-bottom: 20px; }

blockquote {
  margin: 28px 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  font-family: var(--titre);
  font-style: italic;
  font-size: 1.4rem;
  max-width: 56ch;
}

.signoff {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--titre);
  font-size: 1.45rem;
  font-style: italic;
}

/* Page simple : une colonne */
.page {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 40px 24px 64px;
}
.page > * { max-width: var(--mesure); }
.page h2 { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- 5. Boutons ---------- */
.bouton {
  display: inline-block;
  min-height: 46px;
  padding: 11px 26px;
  background: var(--accent);
  color: var(--sur-accent);
  border: 2px solid var(--accent);
  border-radius: 2px;
  font-family: var(--titre);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.bouton:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); color: var(--sur-accent); }
.bouton--clair { background: transparent; color: var(--accent); }
.bouton--clair:hover { background: var(--accent); color: var(--sur-accent); border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }

/* Bandeau Google Form, présent sur chaque page */
.appel {
  background: var(--sauge);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  text-align: center;
}
.appel p {
  margin: 0 auto 18px;
  max-width: 40ch;
  font-family: var(--titre);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
}

/* ---------- 6. Offre / blog / formulaire ---------- */
.repere {
  padding: 14px 18px;
  background: var(--bg-alt);
  border-left: 3px solid var(--sauge-fonce);
  color: var(--ink-soft);
  font-style: italic;
}

.construction {
  text-align: center;
  padding: 56px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  max-width: var(--mesure);
}
.construction h2 { border: 0; padding: 0; margin: 0 0 10px; }
.construction p { margin: 0 auto; }

.formulaire { display: grid; gap: 18px; max-width: 40rem; margin-top: 24px; }
.champ label { display: block; font-weight: 600; margin-bottom: 6px; }
.champ input, .champ textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--ink-soft);
  border-radius: 2px;
}
.champ input:focus, .champ textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.champ textarea { min-height: 10rem; resize: vertical; }
.champ--piege { position: absolute; left: -9999px; }
.mention-form { font-size: 0.92rem; color: var(--ink-soft); max-width: 40rem; }

/* ---------- 7. Pied de page ---------- */
.pied {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 36px 0 28px;
  font-size: 0.98rem;
}
.pied__grille { display: grid; gap: 24px; }
.pied h2 { font-size: 1.3rem; margin: 0 0 8px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { padding: 3px 0; }
.pied__bas {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- 8. Écrans plus larges ---------- */
@media (min-width: 40rem) {
  .pied__grille { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 54rem) {
  .entete__interieur { flex-direction: row; justify-content: space-between; }
  .wrap {
    grid-template-columns: 320px 1fr;
    gap: 56px;
    padding: 56px 24px 80px;
  }
  .gallery {
    flex-direction: column;
    overflow: visible;
    gap: 28px;
    position: sticky;
    top: 32px;
    align-self: start;
    padding-bottom: 0;
  }
  .gallery figure { flex: none; }
}

/* ---------- 9. Préférences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .entete, .appel, .pied, .nav, .gallery { display: none; }
  body { background: #fff; color: #000; }
}

/* ==========================================================
   10. Accueil : mise en page par bandes
   ========================================================== */
:root { --sable: #efe7d6; --nuit: #33261b; --sur-nuit: #f7f3ec; }
@media (prefers-color-scheme: dark) {
  :root { --sable: #241f17; --nuit: #120f0a; --sur-nuit: #ece6da; }
}

.surtitre {
  margin: 0 0 14px;
  font-family: var(--texte);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sauge-fonce);
  font-weight: 600;
}

.hero {
  background:
    radial-gradient(circle at 85% 20%, var(--sauge) 0, transparent 55%),
    var(--bg);
  padding: 40px 24px 56px;
}
.hero__grille {
  max-width: var(--largeur);
  margin: 0 auto;
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero h1 { font-size: clamp(3rem, 11vw, 5.6rem); font-weight: 500; letter-spacing: -0.01em; margin-bottom: 10px; }
.hero .role { font-size: 1.55rem; margin-bottom: 24px; }
.hero__intro {
  font-family: var(--titre);
  font-size: 1.7rem;
  line-height: 1.25;
  max-width: 22ch;
  margin-bottom: 28px;
}
.hero__photo { margin: 0; justify-self: center; width: min(100%, 420px); }
.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 6px 6px;
  box-shadow: 14px 14px 0 var(--sauge);
}
.hero__photo figcaption, .cadre figcaption {
  font-family: var(--titre);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 14px 6px 0;
  line-height: 1.4;
}
.cadre figcaption .sub { display: block; font-size: 0.95rem; margin-top: 3px; color: var(--accent); }

.bande { padding: 64px 24px; }
.bande--sauge { background: var(--sauge); }
.bande--sable { background: var(--sable); }
.bande--nuit { background: var(--nuit); color: var(--sur-nuit); text-align: center; padding: 88px 24px; }

.colonne { max-width: 44rem; margin: 0 auto; }
.colonne h2, .texte-bloc h2 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 500;
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}
.colonne p, .texte-bloc p { font-size: 1.12rem; max-width: 60ch; margin-bottom: 18px; }
.colonne .actions { margin-top: 28px; }

.accroche {
  font-family: var(--titre);
  font-size: 1.75rem !important;
  line-height: 1.25;
  color: var(--accent);
  margin: 28px 0 !important;
}
.grande-citation {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.2;
  margin: 36px 0;
  padding: 0 0 0 22px;
  max-width: 20ch;
}

.duo {
  max-width: var(--largeur);
  margin: 0 auto;
  display: grid;
  gap: 40px;
  align-items: center;
}
.cadre { margin: 0; width: min(100%, 420px); justify-self: center; }
.cadre img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: var(--bg);
  border-radius: 4px;
  box-shadow: 12px 12px 0 var(--sauge);
}
.bande--sable .cadre img { box-shadow: 12px 12px 0 var(--bg); }

.carte-offre {
  margin: 36px 0;
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 4px;
}
.carte-offre h3 { font-size: 2.2rem; font-weight: 500; margin: 0 0 12px; }
.carte-offre p { margin-bottom: 22px; }

.signoff-grand {
  margin: 0 auto;
  max-width: 20ch;
  font-family: var(--titre);
  font-style: italic;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.3;
}

@media (min-width: 54rem) {
  .hero { padding: 72px 24px 88px; }
  .hero__grille { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
  .bande { padding: 96px 24px; }
  .duo { grid-template-columns: 0.8fr 1.2fr; gap: 80px; }
  .duo--inverse { grid-template-columns: 1.2fr 0.8fr; }
  .duo--inverse .cadre { order: 2; }
  .duo--inverse .texte-bloc { order: 1; }
}

/* ==========================================================
   11. Refonte moderne : sobre, aérée, arrondie
   (surcharge les sections précédentes)
   ========================================================== */
:root {
  --texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rayon: 22px;
  --ombre: 0 18px 50px -20px rgba(43, 36, 29, 0.35);
}
@media (prefers-color-scheme: dark) { :root { --ombre: 0 18px 50px -20px rgba(0, 0, 0, 0.7); } }

body { font-size: 1.0625rem; line-height: 1.7; letter-spacing: 0.005em; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.015em; }

/* En-tête flottant, discret */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.entete__interieur { padding: 10px 24px; gap: 4px; }
.marque img { height: 44px; }
.marque__nom { font-size: 1.45rem; }
.marque__nom small { display: none; }
.nav a {
  font-family: var(--texte);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-bottom-width: 1px;
}

/* Boutons : pilules */
.bouton {
  border-radius: 999px;
  font-family: var(--texte);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 30px;
  min-height: 48px;
}
.bouton--clair { border-width: 1.5px; }
.actions { gap: 12px; }

.surtitre { font-size: 0.74rem; letter-spacing: 0.22em; color: var(--accent); }

/* Hero : aéré, titre immense, photo arrondie */
.hero { background: var(--bg); padding: 48px 24px 72px; overflow: hidden; }
.hero__grille { gap: 44px; }
.hero h1 { font-size: clamp(3.4rem, 14vw, 7.5rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 18px; }
.hero .role { font-family: var(--texte); font-style: normal; font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 32px; }
.hero__intro { font-family: var(--titre); font-style: italic; font-size: 1.9rem; max-width: 20ch; color: var(--accent); margin-bottom: 36px; }
.hero__photo { width: min(100%, 480px); position: relative; }
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 8% -8% -6% 10%;
  background: var(--sauge);
  border-radius: var(--rayon);
  z-index: 0;
}
.hero__photo img {
  position: relative;
  z-index: 1;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  aspect-ratio: 4 / 5;
}
.hero__photo figcaption { position: relative; z-index: 1; font-family: var(--texte); font-style: normal; font-size: 0.8rem; letter-spacing: 0.08em; padding-top: 16px; }

/* Bandes : plus de contraste de fond, plus d'espace */
.bande { padding: 72px 24px; }
.bande--sauge { background: var(--sauge); border-radius: 36px; margin: 0 12px; }
.bande--sable { background: transparent; }
.bande--nuit { border-radius: 36px 36px 0 0; margin: 40px 12px 0; padding: 96px 24px; }

.colonne { max-width: 40rem; }
.colonne h2, .texte-bloc h2 { font-size: clamp(2.3rem, 7vw, 3.6rem); line-height: 1.02; margin-bottom: 28px; }
.colonne p, .texte-bloc p { font-size: 1.04rem; color: var(--ink); max-width: 56ch; }
.accroche { font-size: 1.85rem !important; font-style: italic; letter-spacing: -0.01em; color: var(--accent); }

.grande-citation {
  border: 0;
  padding: 0;
  max-width: 14ch;
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  line-height: 1.02;
  margin: 44px 0;
  color: var(--accent);
}
.grande-citation::before { content: ""; display: block; width: 48px; height: 2px; background: var(--accent); margin-bottom: 24px; }

/* Photos : coins arrondis, ombre douce, plus de décalage */
.cadre img { border-radius: var(--rayon); box-shadow: var(--ombre); background: var(--bg-alt); }
.bande--sable .cadre img { box-shadow: var(--ombre); }
.cadre figcaption { font-family: var(--texte); font-style: normal; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-soft); }
.cadre figcaption .sub { font-family: var(--titre); font-style: italic; font-size: 1.05rem; letter-spacing: 0; }

/* Carte de l'offre */
.carte-offre {
  border: 0;
  border-radius: var(--rayon);
  background: var(--bg-alt);
  padding: 40px 32px;
  box-shadow: none;
}
.carte-offre h3 { font-size: 2.8rem; line-height: 1; margin-bottom: 16px; }

.signoff-grand { font-size: clamp(2.4rem, 9vw, 4.6rem); line-height: 1.12; max-width: 14ch; }

/* Pages intérieures */
.page { padding: 56px 24px 88px; }
.page h1 { font-size: clamp(2.8rem, 10vw, 5rem); line-height: 1; margin-bottom: 14px; }
.page .role { font-family: var(--texte); font-style: normal; font-size: 1rem; }
.page h2 { border-top: 0; padding-top: 0; font-size: 2rem; margin-top: 52px; }
.repere, .construction { border-radius: var(--rayon); border-left: 0; }
.construction { background: var(--sauge); border: 0; }
.champ input, .champ textarea { border-radius: 14px; border: 1px solid var(--line); background: var(--bg-alt); padding: 14px 16px; }

/* Bandeau Google Form */
.appel { background: var(--bg-alt); border: 0; border-radius: 36px; margin: 0 12px 12px; padding: 64px 24px; }
.appel p { font-size: clamp(1.7rem, 5vw, 2.4rem); max-width: 24ch; }

/* Pied de page */
.pied { background: transparent; border-top: 0; }
.pied h2 { font-family: var(--texte); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }

@media (min-width: 54rem) {
  .entete__interieur { padding: 12px 32px; }
  .hero { padding: 80px 32px 120px; }
  .hero__grille { grid-template-columns: 1.2fr 0.8fr; gap: 88px; }
  .bande { padding: 120px 32px; }
  .bande--sauge, .appel, .bande--nuit { margin-left: 24px; margin-right: 24px; }
  .duo { gap: 112px; }
}

/* Photos : remplissage complet du cadre, sans bandes */
.cadre img, .cadre img.contain { object-fit: cover; max-height: none; background: transparent; }
.cadre img[src*="photo-1"] { aspect-ratio: 3 / 4; }
.cadre img[src*="photo-3"] { aspect-ratio: 4 / 3; }
.duo--inverse .cadre { width: min(100%, 560px); }
