/* Babut — feuille de style du site public (d'après les maquettes validées) */

@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  /* Couleurs : définies dans app/config/site.php (variables injectées par la mise en page) */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-survol); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.conteneur { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Typographie */
.surtitre { margin: 0; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--texte-discret); }
.surtitre--fonce { color: var(--texte-sur-sable); }
.titre-1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.01em; }
.titre-2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.4vw, 48px); line-height: 1.1; }
.titre-3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 38px); line-height: 1.15; }
.chapo { margin: 0; font-size: 19px; color: var(--texte-doux); max-width: 540px; }
.texte-doux { margin: 0; color: var(--texte-doux); }
.citation { margin: 0; font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.35; color: var(--accent); }
.lien { font-size: 15px; font-weight: 500; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border: none; border-radius: 2px;
  background: var(--accent); color: var(--blanc);
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.bouton:hover { background: var(--accent-survol); color: var(--blanc); }
.bouton--petit { min-height: 44px; font-weight: 500; }
.bouton--clair { background: var(--fond); color: var(--encre); padding: 0 32px; font-size: 16px; }
.bouton--clair:hover { background: var(--blanc); color: var(--encre); }

/* En-tête */
.entete__barre { padding-top: 28px; padding-bottom: 28px; display: flex; align-items: center; gap: 32px; }
.logo { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: 0.02em; color: var(--encre); text-decoration: none; margin-right: auto; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav a, .menu__liste a { color: var(--encre); text-decoration: none; }
.nav a:hover, .menu__liste a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--encre); }
.menu summary::-webkit-details-marker { display: none; }
.menu__liste { position: absolute; right: 0; top: 52px; z-index: 10; min-width: 240px; background: var(--blanc); border: 1px solid var(--filet); padding: 8px 0; display: flex; flex-direction: column; }
.menu__liste a { padding: 12px 20px; }

/* Héros */
.heros { padding-top: 56px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.heros__texte { min-width: 0; flex: 1 1 460px; display: flex; flex-direction: column; gap: 28px; }
.encart-resa { background: var(--blanc); border: 1px solid var(--filet); padding: 24px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; max-width: 540px; }
.champ { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.champ label { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--texte-doux); }
.champ input, .champ select { width: 100%; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--bordure-champ); border-radius: 0; background: var(--fond); font-family: var(--sans); font-size: 16px; color: var(--encre); }

/* Visuels (emplacements des photos) */
.visuel { background: var(--sable); display: flex; align-items: flex-end; padding: 24px; }
.visuel span { font-size: 13px; color: var(--texte-discret); }
.visuel--heros { flex: 1 1 420px; min-height: 560px; }
.visuel--zone { height: 360px; padding: 20px; }
.visuel--portrait { flex: 0 1 420px; height: 500px; padding: 20px; }

/* Bandes de couleur */
.bande--blanche { background: var(--blanc); border-top: 1px solid var(--sable); border-bottom: 1px solid var(--sable); }
.bande--sable { background: var(--sable); }
.bande--accent { background: var(--accent); color: var(--blanc); }

/* Sections */
.section { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 56px; }
.section--courte { padding-top: 64px; padding-bottom: 120px; gap: 32px; }
.section__tete { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.pile { display: flex; flex-direction: column; gap: 16px; }
.pile--large { flex: 1 1 420px; gap: 20px; }

.deux-publics { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 64px; }

.grille-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--filet); border: 1px solid var(--filet); }
.carte-service { background: var(--fond); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; min-height: 220px; color: var(--encre); text-decoration: none; transition: background .2s; }
.carte-service:hover { background: var(--blanc); color: var(--encre); }
.carte-service__nom { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.2; }
.carte-service__texte { font-size: 15px; color: var(--texte-doux); }
.carte-service__action { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); }

.etapes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; }
.etapes li { display: flex; flex-direction: column; gap: 12px; }
.etapes__num { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--accent); }
.etapes__titre { font-size: 19px; font-weight: 600; }

.grille-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.carte-zone { display: flex; flex-direction: column; gap: 20px; color: var(--encre); text-decoration: none; }
.carte-zone:hover { color: var(--encre); }
.carte-zone:hover .carte-zone__nom { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.carte-zone__nom { font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1.2; }

.intervenante { padding-top: 112px; padding-bottom: 112px; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }

.appel { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.appel .titre-2 { max-width: 680px; font-size: clamp(32px, 4vw, 44px); }

/* Pied de page */
.pied { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--texte-discret); }
.pied__liens { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.pied__liens a { color: var(--texte-discret); }

/* Pages de zone */
.fil { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--texte-discret); }
.fil a { color: var(--texte-discret); }
.fil [aria-current] { color: var(--encre); }
.heros--zone { padding-top: 48px; }
.heros--inverse { flex-direction: row-reverse; }
.titre-1--zone { font-size: clamp(40px, 5.6vw, 60px); }
.visuel--heros-zone { min-height: 520px; }
.visuel--photo { padding: 0; position: relative; overflow: hidden; }
.visuel--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.titre-3--grand { font-size: clamp(32px, 3.6vw, 42px); line-height: 1.12; }
.section__tete--large { max-width: 680px; }

.secteur { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 64px; }
.secteur--grille .secteur__texte { flex: 1 1 420px; }
.secteur--bande { flex-direction: column; flex-wrap: nowrap; gap: 48px; }
.secteur--bande .communes { flex: none; }
.secteur--bande .secteur__texte { max-width: 720px; }
.communes { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; background: var(--filet); border: 1px solid var(--filet); }
.secteur--grille .communes { flex: 1 1 360px; align-self: flex-start; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.secteur--grille .commune:last-child:nth-child(odd) { grid-column: span 2; }
.secteur--bande .communes { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.commune { background: var(--fond); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.commune__nom { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.2; }
.commune__legende { font-size: 14px; color: var(--texte-discret); }
.commune__repere { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--texte-discret); }

.faq { padding-top: 112px; padding-bottom: 112px; display: flex; flex-wrap: wrap; gap: 64px; }
.faq__tete { flex: 1 1 320px; gap: 12px; }
.faq__liste { flex: 2 1 520px; display: flex; flex-direction: column; }
.faq__item { padding: 24px 0; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--bordure-champ); }
.faq__item:first-child { border-top: none; padding-top: 0; }
.faq__item h3 { margin: 0; font-size: 18px; font-weight: 600; }

/* Mobile */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; }
  .entete__barre { gap: 12px; }
}
@media (max-width: 640px) {
  .conteneur { padding-left: 20px; padding-right: 20px; }
  .entete__barre { padding-top: 18px; padding-bottom: 18px; }
  .logo { font-size: 30px; }
  .heros { padding-top: 24px; padding-bottom: 64px; gap: 40px; }
  .heros__texte, .visuel--heros, .pile--large, .visuel--portrait { flex-basis: 100%; }
  .visuel--heros { min-height: 320px; }
  .visuel--portrait { height: 380px; }
  .visuel--zone { height: 260px; }
  .encart-resa { padding: 20px; }
  .encart-resa .bouton { width: 100%; }
  .section, .intervenante { padding-top: 72px; padding-bottom: 72px; gap: 40px; }
  .deux-publics, .appel { padding-top: 64px; padding-bottom: 64px; gap: 40px; }
  .grille-services, .grille-zones, .deux-publics { grid-template-columns: 1fr; }
  .carte-service { min-height: 0; }
  .heros--inverse { flex-direction: column; align-items: stretch; }
  .visuel--heros-zone { min-height: 300px; }
  .secteur, .faq { padding-top: 64px; padding-bottom: 64px; gap: 40px; }
  .commune { padding: 18px 20px; }
  .secteur--grille .communes, .secteur--bande .communes { grid-template-columns: 1fr 1fr; }
  .secteur--bande .commune:last-child:nth-child(odd) { grid-column: span 2; }
}
