/* ── Partout en France, en commencant par l'Ouest (06/10, Anthony) ──
   La carte des 7 secteurs (images/carte-secteurs.svg, tiree de 7-secteurs-beajify.svg,
   departements groupes par secteur). Le script la pose en ligne : le secteur choisi
   se souleve. L'or ne touche que le navy de la carte, jamais le blanc de la page. */
.france { position: relative; z-index: 2; background: var(--off-white); padding: clamp(4rem, 3rem + 4vw, 8rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem); margin-top: -1px; }
.france__cadre { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: center; }
/* La police suit sa colonne. L ancienne pente atteignait le plafond de 2,75rem
   des 1200 px : entre 1200 et 1920 le titre restait a 44 px pendant que sa
   colonne tombait de 636 a 470 px, et il passait de 2 lignes a 3. La pente est
   recalee pour valoir EXACTEMENT 44 px a 1920 (l ecran de reference) et 32 px a
   1287 : meme rapport titre/colonne partout, donc 2 lignes partout. Plancher et
   plafond inchanges, rien ne bouge a 1920 ni sous 1182 px. */
.france__titre {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700;
  font-size: clamp(1.75rem, 0.475rem + 1.896vw, 2.75rem); line-height: 1.14; letter-spacing: -0.01em;
}
.france__titre span { display: block; }
.france__lead { margin: clamp(1.25rem, 1rem + 1vw, 2rem) 0 0; max-width: 46ch; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.75; color: var(--ink-soft); }
.france__choix { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
.france__puce {
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius-full);
  border: 1px solid var(--ink-faint); background: transparent; color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.france__puce:hover { border-color: var(--ink); }
.france__puce:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.france__puce.is-actif { background: var(--ink); color: var(--off-white); border-color: var(--ink); }
.france__fiche { margin-top: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--ink); min-height: 7.5rem; }
.france__fiche-nom { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem); line-height: 1.25; }
.france__fiche-texte { margin: 0.4rem 0 0; max-width: 44ch; line-height: 1.7; color: var(--ink-soft); }
.france__carte { margin: 0; min-width: 0; }
.france__carte img, .france__svg { display: block; width: 100%; max-width: 40rem; height: auto; margin-inline: auto; overflow: visible; }

.france__svg .dep { fill: #0B052F; stroke: rgba(252, 252, 252, 0.2); stroke-width: 1.5; transition: fill 0.4s ease, stroke 0.4s ease; }
.france__svg .nom { fill: #FAFAFC; pointer-events: none; }
.france__svg .secteur { cursor: pointer; transition: transform 0.7s var(--ease-out-expo), filter 0.7s ease; }
.france__svg .secteur.is-actif { transform: translate(-10px, -28px); filter: drop-shadow(0 30px 26px rgba(11, 5, 47, 0.35)); }
.france__svg .secteur.is-actif .dep { fill: #1E1658; stroke: rgba(222, 205, 140, 0.55); }
.france__svg .nantes { pointer-events: none; }
.france__svg .nantes-point { fill: #FAFAFC; }
.france__svg .nantes-onde { fill: none; stroke: #DECD8C; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: nantes-onde 2.4s ease-out infinite; }
.france__svg .nantes-nom { fill: #FAFAFC; font-weight: 600; font-size: 52px; }
@keyframes nantes-onde { from { transform: scale(1); opacity: 0.9; } to { transform: scale(4.5); opacity: 0; } }
html[data-theme="dark"] .france__svg .dep { fill: #1A1448; stroke: rgba(252, 252, 252, 0.14); }
html[data-theme="dark"] .france__svg .secteur.is-actif .dep { fill: #2B2370; }
html[data-theme="dark"] .france__svg .secteur.is-actif { filter: drop-shadow(0 30px 26px rgba(0, 0, 0, 0.5)); }

/* Sur telephone, la fiche suit la carte : toucher un secteur montre sa fiche juste dessous. */
@media (max-width: 900px) {
  .france__cadre { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .france__texte { display: contents; }
  /* En une seule colonne le titre a toute la largeur : il garde son plancher d origine. */
  .france__titre { order: 1; font-size: clamp(1.875rem, 0.475rem + 1.896vw, 2.75rem); } .france__lead { order: 2; }
  .france__carte { order: 3; margin-top: 2rem; }
  .france__choix { order: 4; justify-content: center; }
  .france__fiche { order: 5; min-height: 6.5rem; }
}
@media (max-width: 420px) {
  .france__choix { gap: 0.375rem; }
  .france__puce { width: 2.4rem; height: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .france__svg .secteur { transition: none; }
  .france__svg .nantes-onde { animation: none; opacity: 0; }
}
