/* Gabarit « vitrine » : fond crème, brun foncé, une seule police à empattements, scroll calme.
   Couleurs (couleurs.* de la config) et police (site.police) injectées par site.js. */
:root {
  --fond: #E2E0D4; --texte: #322312; --principale: #322312; --secondaire: #FFFFFF; --accent: #B1A98F; --texte-bouton: #FFFFFF;
  --police: Georgia, "Times New Roman", serif; --fondu: 1500ms; --marge: clamp(20px, 6vw, 96px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--police); font-size: 16px; line-height: 1.6; }
@media (min-width: 900px) { body { font-size: 22px; } }
img { display: block; max-width: 100%; }
a { color: inherit; }
strong { font-weight: 600; }
h1, h2 { font-weight: 400; margin: 0; }
h2 { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.4em; color: var(--texte); }
[hidden] { display: none !important; }

/* Boutons : majuscules, rectangle brun foncé, coins carrés, texte blanc. */
.bouton { display: inline-block; background: var(--principale); color: var(--texte-bouton); text-decoration: none; text-transform: uppercase;
  letter-spacing: .14em; font-size: .72rem; padding: 1.1em 2.2em; border-radius: 0; transition: background .3s ease; }
@media (min-width: 900px) { .bouton { font-size: .62rem; } }
.bouton:hover { background: color-mix(in srgb, var(--principale) 80%, var(--accent)); }

/* ---------- En-tête transparent par-dessus l'ouverture ---------- */
.entete { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--marge); color: var(--secondaire); transition: background .6s ease, color .6s ease; }
.entete.defile { background: var(--fond); color: var(--texte); box-shadow: 0 1px 0 color-mix(in srgb, var(--texte) 12%, transparent); }
.entete-nom { text-decoration: none; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.entete-nom img { max-height: 44px; width: auto; }
.menu { display: flex; gap: 2.2em; }
.menu a { text-decoration: none; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.menu a:hover { text-decoration: underline; text-underline-offset: 6px; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }
.burger span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s ease; }
@media (max-width: 899px) {
  .burger { display: block; position: relative; z-index: 2; }
  .menu { position: fixed; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 1.6em;
    background: var(--principale); color: var(--secondaire); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s; }
  .menu a { font-size: 1.1rem; }
  .menu-ouvert .menu { opacity: 1; visibility: visible; }
  .menu-ouvert .entete { color: var(--secondaire); background: transparent; box-shadow: none; }
  .menu-ouvert .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-ouvert .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

/* ---------- 1) Ouverture : grande photo pleine largeur, petit titre, bouton ---------- */
.ouverture { position: relative; height: 100vh; height: 100svh; min-height: 480px; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--secondaire); overflow: hidden; background: var(--principale); }
.ouverture-photo, .ouverture-photo picture, .ouverture-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ouverture-photo::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); }
.ouverture-contenu { position: relative; padding: 0 var(--marge); max-width: 900px; }
.ouverture h1 { font-size: clamp(1.4rem, 3.6vw, 2.4rem); line-height: 1.3; margin-bottom: 1.4em; }
.ouverture .bouton { background: transparent; border: 1px solid var(--secondaire); }
.ouverture .bouton:hover { background: var(--secondaire); color: var(--principale); }

/* ---------- 2-3) Blocs moitié photo / moitié texte ---------- */
.bloc { display: grid; grid-template-columns: 1fr; }
.bloc-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.bloc-photo picture, .bloc-photo img { width: 100%; height: 100%; object-fit: cover; }
.bloc-texte { padding: 56px var(--marge) 72px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.bloc-texte p { margin: 0 0 1.1em; max-width: 34em; }
.bloc-texte .bouton { margin-top: 1.2em; }
.formules { list-style: none; margin: 0 0 1em; padding: 0; max-width: 34em; }
.formules li { padding: .7em 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); }
.formules li:last-child { border-bottom: 0; }
.formules strong { display: block; }
.note { font-size: .82em; color: color-mix(in srgb, var(--texte) 75%, var(--fond)); }
@media (min-width: 900px) {
  .bloc { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .bloc-photo { aspect-ratio: auto; min-height: 92vh; max-height: 1100px; }
  .bloc.inverse .bloc-photo { order: 2; }
  .bloc-texte { padding: 10vh 6vw; }
}

/* ---------- 4) Grille serrée façon Instagram ---------- */
.grille-insta { padding: 72px 0 0; text-align: center; }
.grille-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.grille-photos figure { margin: 0; aspect-ratio: 1; overflow: hidden; }
.grille-photos figure:first-child { grid-column: span 2; aspect-ratio: 2 / 1; }
.grille-photos picture, .grille-photos img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .grille-photos { grid-template-columns: repeat(var(--colonnes, 5), 1fr); }
  .grille-photos figure:first-child { grid-column: auto; aspect-ratio: 1; }
}
/* grille.carrousel_telephone : une seule ligne défilante au doigt, accroche douce ; seule la bande défile de côté. */
@media (max-width: 899px) {
  .carrousel .grille-photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; }
  .carrousel .grille-photos::-webkit-scrollbar { display: none; }
  .carrousel .grille-photos figure, .carrousel .grille-photos figure:first-child { flex: 0 0 78%; aspect-ratio: 1; scroll-snap-align: start; }
}
.suivre { margin: 32px 0 0; }
.suivre a { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; text-underline-offset: 6px; }

.bloc-texte .accroche { font-size: 1.22em; line-height: 1.45; margin: 0 0 1.2em; }
/* site.photo_large : bande photo pleine largeur (sous la bande de photos) */
.photo-large { margin: 56px 0 0; height: clamp(240px, 46vw, 680px); overflow: hidden; }
.photo-large picture, .photo-large img { width: 100%; height: 100%; object-fit: cover; }
/* mode « socle » : panorama entier, collé sous la bande de photos, centré, largeur réduite sur ordi */
.photo-large.socle { margin: 4px auto 0; height: auto; width: 100%; }
.photo-large.socle picture, .photo-large.socle img { height: auto; object-fit: contain; }
@media (min-width: 900px) { .photo-large.socle { width: var(--socle-largeur, 50%); } }

/* ---------- Contact ---------- */
.contact { padding: 88px var(--marge); text-align: center; }
.contact h2 { margin-bottom: 1em; }
.contact-phrase { font-size: 1.15em; margin: 0 0 .8em; }
.contact-phrase a { text-underline-offset: 6px; text-decoration-thickness: 1px; }
.contact-liens { list-style: none; padding: 0; margin: 1em 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6em 1.8em; }
.mentions { padding: 0 var(--marge) 56px; text-align: center; font-size: .8em; }

/* ---------- 5) Pied de page centré (couleurs.pied_fond / pied_texte, brun foncé par défaut) ---------- */
.pied { background: var(--pied-fond, var(--principale)); color: var(--pied-texte, var(--secondaire)); border-top: 1px solid color-mix(in srgb, var(--texte) 12%, transparent); text-align: center; padding: 64px var(--marge) 40px; }
.pied-nom { margin: 0 0 1.6em; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.pied-nom img { max-height: 64px; width: auto; margin: 0 auto; }
.pied-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: .6em 2em; margin-bottom: 2.2em; }
.pied-menu a, .pied-legal a { text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.pied-legal { margin: 0; font-size: .7rem; opacity: .75; }

/* ---------- Téléphone : tout se touche facilement (cibles d'au moins 48 px) ---------- */
@media (max-width: 899px) {
  .bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .9em 1.8em; text-align: center; max-width: 100%; }
  .bloc-texte .bouton { align-self: stretch; }
  .burger { width: 48px; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-right: -12px; }
  .burger span { margin: 3px 0; }
  .menu-ouvert .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-ouvert .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .menu a { padding: 12px 24px; }
  .entete-nom { padding: 12px 0; }
  .pied-menu { gap: 0 .4em; }
  .pied-menu a, .pied-legal a, .suivre a { display: inline-block; padding: 14px 10px; }
  .contact-liens a, .contact-phrase a { display: inline-block; padding: 12px 6px; }
  .entete { padding-block: 6px; }
}

/* ---------- Palettes (options) : accent2 = touche fine sous les titres, accent3 = soulignés au survol ---------- */
.bloc-texte h2::after, .contact h2::after { content: ""; display: block; width: 32px; height: 1px; margin-top: 1em; background: var(--accent2, transparent); }
.contact h2::after { margin: 1em auto 0; }
.menu a:hover, .contact-liens a:hover, .suivre a:hover { text-decoration-color: var(--accent3, currentColor); }
/* site.degrade : dégradé horizontal, donc continu d'une section à l'autre (contact, mentions, pied de page). */
.degrade-contact .contact, .degrade-contact .mentions, .degrade-contact .pied { background: var(--degrade); }
.degrade-contact .pied { border-top: 0; }
.degrade-filet .entete.defile::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--degrade); }

/* ---------- Téléphone (site.telephone), ordi inchangé ---------- */
@media (max-width: 899px) {
  /* Ouverture : photo entière (proportions d'origine, aucun recadrage), titre et bouton juste en dessous. */
  .tel-ouverture-entiere .entete:not(.defile) { background: var(--fond); color: var(--texte); box-shadow: 0 1px 0 color-mix(in srgb, var(--texte) 12%, transparent); }
  .tel-ouverture-entiere .ouverture { height: auto; min-height: 0; display: block; background: var(--fond); color: var(--texte); padding-top: 60px; }
  .tel-ouverture-entiere .ouverture-photo { position: relative; }
  .tel-ouverture-entiere .ouverture-photo picture, .tel-ouverture-entiere .ouverture-photo img { position: static; height: auto; object-fit: contain; }
  .tel-ouverture-entiere .ouverture-photo::after { display: none; }
  .tel-ouverture-entiere .ouverture-contenu { padding: 30px var(--marge) 44px; }
  .tel-ouverture-entiere .ouverture h1 { font-size: 1.45rem; margin-bottom: 1em; }
  .tel-ouverture-entiere .ouverture .bouton { background: var(--principale); color: var(--texte-bouton); border: 0; }
  /* Blocs : photo et texte côte à côte ; la photo reste visible (collée en haut) pendant la lecture. */
  .tel-blocs-cote .bloc { grid-template-columns: 42% 1fr; align-items: start; }
  .tel-blocs-cote .bloc.inverse .bloc-photo { order: 2; }
  .tel-blocs-cote .bloc-photo { aspect-ratio: 3 / 4; position: sticky; top: 64px; }
  .tel-blocs-cote .bloc-texte { padding: 26px 14px 30px; font-size: 14px; line-height: 1.5; }
  .tel-blocs-cote .bloc-texte h2 { font-size: .68rem; margin-bottom: 1em; }
  .tel-blocs-cote .bloc-texte .accroche { font-size: 15px; line-height: 1.45; }
  .tel-blocs-cote .formules li { padding: .55em 0; }
  .tel-blocs-cote .bloc-texte .bouton { font-size: .62rem; letter-spacing: .1em; padding: .8em 1em; }
}

/* ---------- Page de mentions légales (site.mentions_page) ---------- */
.entete.fige { position: sticky; }
.page-mentions { max-width: 760px; margin: 0 auto; padding: 56px var(--marge) 72px; }
.page-mentions h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.2em; }
.page-mentions h2 { margin: 2em 0 .8em; }
.page-mentions p { margin: 0 0 .5em; }
.page-mentions .retour { margin-top: 2.6em; }

/* ---------- Apparitions en fondu doux (pas de déplacement) ---------- */
.js:not(.statique) .fondu { opacity: 0; transition: opacity var(--fondu) ease; }
.js:not(.statique) .fondu.visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
