/*
  Centre Équestre de Grignan
  Feuille principale : structure, composants et responsive.
  Les couleurs à personnaliser sont dans assets/css/custom.css.
*/

/* 1. Variables par défaut */
:root {
  color-scheme: light;

  --white: #ffffff;
  --grey: #f9f9f985;
  --page: #f8faf9;
  --sand: #f6f1e8;

  --blue-950: #143c42;
  --blue-900: #1d4a51;
  --blue-700: #2d6870;
  --blue-100: #e7f1f2;
  --blue-50: #f3f8f9;

  --ochre-700: #8f7134;
  --ochre-600: #a98943;
  --ochre-100: #f2ead7;

  --ink: #17393e;
  --muted: #60777b;
  --line: #dfe9e9;
  --line-strong: #c6d6d7;

  --container: 1180px;
  --gutter: clamp(1rem, 3vw, 2rem);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 10px 30px rgba(20, 60, 66, 0.08);
  --shadow-md: 0 20px 60px rgba(20, 60, 66, 0.12);
  --shadow-lg: 0 30px 90px rgba(20, 60, 66, 0.16);

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --speed: 180ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --header-height: 108px;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-sans);
  line-height: 1.62;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ochre-600), transparent 55%);
  outline-offset: 4px;
}

::selection {
  color: var(--white);
  background: var(--blue-700);
}

.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  padding: 0.72rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--speed) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

[data-include] {
  min-height: 1px;
}

.include-error {
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--sand);
  color: var(--blue-950);
}

/* 3. Header commun */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-shell {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.6rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
}

.brand-logo {
  width: clamp(128px, 13vw, 188px);
  border-radius: 18px;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  justify-self: end;
}

.flag-fr {
  display: inline-block;
  width: 3.18rem;
  height: 1.98rem;
  flex: 0 0 auto;
  background: linear-gradient(90deg, #2357a6 0 33.333%, #ffffff 33.333% 66.666%, #d54545 66.666% 100%);
  box-shadow: inset 0 0 0 1px rgba(20, 60, 66, 0.12);
}

.country-chip,
.footer-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
}


.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  margin-bottom: 5px;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--blue-950);
  box-shadow: var(--shadow-sm);
  font-weight: 850;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 1.12rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -5px;
}

.menu-icon::after {
  top: 5px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  margin-bottom: 2px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.58rem 0.78rem;
  border-radius: var(--radius-pill);
  color: var(--muted);
  /* font-size: clamp(0.84rem, 0.95vw, 0.94rem);
  font-weight: 520; */
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--speed) var(--ease),
    background var(--speed) var(--ease),
    transform var(--speed) var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--blue-950);
  background: var(--blue-50);
}

.nav a:hover {
  transform: translateY(-1px);
}

/* 4. Typographie */
h1,
h2,
h3 {
  margin: 0 0 1rem;
  color: var(--blue-950);
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin-inline: auto;
  font-size: clamp(2.55rem, 7vw, 5.25rem);
  letter-spacing: -0.065em;
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

.lead,
.hero p,
.page-hero p,
.prose p,
.feature p,
.cards p,
.contact-card p {
  color: var(--muted);
}

.hero p,
.page-hero p {
  max-width: 68ch;
  margin-inline: auto;
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--ochre-700);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 1.2rem;
  height: 1px;
  background: var(--ochre-600);
}

/* 5. Boutons */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.86rem 1.18rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  /* font-weight: 900; */
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition:
    transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease),
    border-color var(--speed) var(--ease),
    background var(--speed) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(45, 104, 112, 0.22);
}

.btn.primary:hover {
  background: var(--blue-900);
  box-shadow: 0 22px 46px rgba(45, 104, 112, 0.28);
}

.btn.ghost {
  background: var(--white);
  color: var(--blue-950);
}

.btn.ghost:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

/* 6. Layout */
.hero,
.page-hero {
padding: clamp(1.1rem, 7vw, 1rem) 0 clamp(1.7rem, 1vw, 1.8rem);
}

.hero,
.section {
  background: var(--grey);
}

.page-hero,
.section.alt,
.warm {
  background: var(--page);
  border-bottom: 1px solid var(--line);
}

.section.alt,
.warm {
  border-top: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-copy,
.prose,
.split > div {
  max-width: 780px;
  margin-inline: auto;
}

.hero-card {
  position: relative;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius-lg) - 10px);
  object-fit: cover;
}

.floating-card {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: var(--blue-950);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: clamp(0.78rem, 1.4vw, 0.94rem);
  /* font-weight: 950; */
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: clamp(3.2rem, 7vw, 5.6rem) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.split > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.prose > * + * {
  margin-top: 1rem;
}

/* 7. Cartes */
.feature-grid,
.cards,
.logo-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.4rem);
}

.feature-grid,
.cards {
  /* grid-template-columns: repeat(3, minmax(0, 1fr)); */
  grid-auto-flow: column;
  justify-self: center;
}

.feature,
.cards article,
.contact-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.feature,
.cards article,
.contact-card {
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
}

.feature,
.cards article {
  transition:
    transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease),
    border-color var(--speed) var(--ease);
}

.feature:hover,
.cards article:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.feature span {
  display: none;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-900);
  font-weight: 950;
}

.feature h2,
.cards h2 {
  font-size: clamp(1.35rem, 2vw, 1.74rem);
  letter-spacing: -0.03em;
}

.feature a,
.cards a:not(.btn) {
  display: inline-flex;
  color: var(--ochre-700);
}

.cards-section .cards {
  margin-top: 1.5rem;
}

.cards img {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  margin-bottom: 1rem;
  border-radius: 22px;
  object-fit: cover;
}

.logo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.logo-grid img {
  width: 100%;
  height: 150px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

.checklist {
  display: grid;
  justify-items: center;
  gap: 0.72rem;
  padding: 0;
  margin: 1.4rem 0;
  list-style: none;
}

.checklist li {
  position: relative;
  width: min(100%, 46rem);
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  text-align: left;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: 0.82rem;
  color: var(--ochre-700);
  font-weight: 950;
}

/* 8. Contact */
.contact-grid {
  /* grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  align-items: start; */
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
  text-align: left;
}

.contact-form label {
  display: grid;
  gap: 0.42rem;
  color: var(--ink);
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  color: var(--ink);
  background: var(--white);
  transition:
    border-color var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px var(--blue-100);
  outline: none;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  margin-inline: auto;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.map iframe {
  display: block;
  width: 100%;
  height: min(58vh, 430px);
  min-height: 320px;
  border: 0;
}

/* 9. Footer commun */
.site-footer {
  padding-top: 15px;
  background: var(--blue-950);
  color: var(--white);
}

.footer-grid {
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}

.footer-brand,
.footer-block {
  display: grid;
  justify-items: center;
}

.footer-brand {
  gap: 0.8rem;
}

.footer-brand img {
  width: min(210px, 100%);
  padding: 0.45rem;
  border-radius: 24px;
  background: var(--white);
}

.footer-brand p {
  max-width: 34ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.76);
}

.footer-chip {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.footer-block {
  gap: 0.5rem;
}

.footer-block strong {
  color: var(--white);
  font-size: 1.02rem;
}

.footer-block a,
.footer-block span {
  color: rgba(255, 255, 255, 0.76);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

/* 10. Responsive */
@media (max-width: 1160px) {
  :root {
    --header-height: 98px;
  }

  .header-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .brand-logo {
    width: clamp(120px, 18vw, 168px);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-height) + 0.75rem);
    left: 50%;
    width: min(92vw, 340px);
    max-height: calc(100dvh - var(--header-height) - 1.5rem);
    overflow: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.36rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -10px);
    transition:
      opacity var(--speed) var(--ease),
      visibility var(--speed) var(--ease),
      transform var(--speed) var(--ease);
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .nav a {
    width: 100%;
    min-height: 56px;
    justify-content: center;
    padding: 0.98rem 1.1rem;
    /* font-size: 1rem;
    font-weight: 860; */
    white-space: normal;
  }
}

@media (max-width: 940px) {
  .hero-grid,
  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 720px;
    margin-inline: auto;
  }

  /* .feature-grid,
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  } */

  .footer-bottom {
    display: grid;
    justify-content: center;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 1rem;
    --header-height: 84px;
  }

  body {
    line-height: 1.56;
  }

  .header-tools {
    gap: 0.5rem;
  }

  .brand-logo {
    width: 112px;
  }

  /* .country-chip {
    min-height: 22px;
  } */

  /* .menu-toggle {
    width: 52px;
    min-width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
  }

  .menu-toggle span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  } */

  .menu-icon {
    margin: 0;
  }

  .nav {
    top: calc(var(--header-height) + 0.6rem);
    width: min(92vw, 380px);
    padding: 0.8rem;
  }

  .nav a {
    min-height: 58px;
    /* font-size: 1.02rem; */
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.3rem, 13vw, 4rem);
  }

  .feature-grid,
  .cards,
  .logo-grid {
    /* grid-template-columns: 1fr; */
  }

  .actions,
  .btn {
    width: 100%;
  }

  .floating-card {
    position: static;
    margin-top: 0.75rem;
  }

  .hero-card img,
  .split > img,
  .cards img {
    border-radius: 22px;
  }

  .map iframe {
    min-height: 280px;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 98px;
  }

  .hero-card,
  .feature,
  .cards article,
  .contact-card,
  .contact-form {
    border-radius: 22px;
  }
}

/* 11. Préférences utilisateur */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .actions,
  .map {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .container {
    width: 100%;
  }

  .feature,
  .cards article,
  .contact-card,
  .contact-form {
    break-inside: avoid;
    box-shadow: none;
  }
}


/* 12. Correctifs robustesse cadres/images/textes longs */
.hero-grid,
.split,
.feature-grid,
.cards,
.logo-grid,
.contact-grid,
.footer-grid {
  align-items: center;
}

.hero-card,
.feature,
.cards article,
.contact-card,
.contact-form,
.logo-grid img,
.split > img {
  min-width: 0;
  overflow: hidden;
}

.feature,
.cards article,
.contact-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature > *,
.cards article > *,
.contact-card > *,
.contact-form > *,
.footer-block > *,
.footer-brand > * {
  min-width: 0;
}

.feature h2,
.feature p,
.feature a,
.cards h2,
.cards h3,
.cards p,
.cards a,
.contact-card p,
.footer-block span,
.footer-block a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-card img,
.split > img,
.cards img {
  max-width: 100%;
  min-width: 0;
  display: block;
}

.cards img {
  flex: 0 0 auto;
}

.cards article .btn,
.feature .btn,
.cards article a:last-child,
.feature a:last-child {
  margin-top: auto;
}

@media (max-width: 680px) {
  .hero-card,
  .feature,
  .cards article,
  .contact-card,
  .contact-form {
    max-width: 100%;
  }
}


/* 13. Passe finale robustesse UX 2026 */
main,
section,
.container,
.hero-copy,
.prose,
.split,
.feature-grid,
.cards,
.logo-grid,
.contact-grid,
.footer-grid {
  min-width: 0;
}

#contenu img {
  max-width: 100%;
  height: auto;
}

#contenu img[style] {
  max-width: 100% !important;
  justify-self: center;
}

#contenu iframe,
#contenu video {
  max-width: 100%;
  justify-self: center;
}

#contenu table {
  max-width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

.feature,
.cards article,
.contact-card,
.contact-form,
.hero-card,
.logo-grid img,
.checklist li {
  contain: layout paint;
}

.feature-grid > *,
.cards > *,
.logo-grid > *,
.contact-grid > *,
.footer-grid > * {
  min-width: 0;
}

.hero-card,
.cards article,
.feature,
.contact-card {
  isolation: isolate;
}

.cards article img,
.hero-card img,
.split > img {
  background: var(--blue-50);
}

.cards article > :last-child,
.feature > :last-child,
.contact-card > :last-child {
  margin-bottom: 0;
}

.nav {
  min-width: 0;
}

.nav a {
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-toggle {
  flex: 0 0 auto;
}

@media (max-width: 1160px) {
  .header-shell {
    display: grid;
  }

  .nav a {
    overflow: visible;
    text-overflow: clip;
  }
}

@media (max-width: 520px) {
  .flag-fr {
    width: 2.45rem;
    height: 1.52rem;
  }

  .header-shell {
    gap: 0.7rem;
  }

  .menu-toggle {
    min-width: 52px;
    min-height: 52px;
    padding-inline: 0.9rem;
  }
}

/* 14. Standards web 2026 : cookie banner, plan du site, pages système */
.cookie-banner {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  width: min(680px, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-2);
}

.cookie-banner__text {
  min-width: 0;
  text-align: left;
}

.cookie-banner__text strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--blue-950);
}

.cookie-banner__text p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.cookie-banner__text a {
  color: var(--ochre-700);
  font-weight: 800;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.site-map-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.site-map-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, var(--card-alpha, 0.96));
}

.site-map-list span {
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.error-page .actions {
  justify-content: center;
}

@media (max-width: 720px) {
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    grid-template-columns: 1fr;
  }

  .cookie-banner__actions,
  .cookie-banner__actions .btn {
    width: 100%;
  }

  .site-map-list li {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* 15. Passe production 2026 : robustesse contenus CMS */
:root {
  --shadow-2: var(--shadow-md);
}

#contenu * {
  min-width: 0;
}

#contenu :where(h1, h2, h3, p, li, a, span, strong) {
  overflow-wrap: anywhere;
}

#contenu :where(.feature, .cards article, .contact-card, .contact-form, .hero-card) {
  max-width: 100%;
  align-items: center;
}

#contenu :where(.feature, .cards article, .contact-card) > :where(img, picture, figure) {
  margin-inline: auto;
  align-items: center;
}

#contenu figure {
  max-width: 100%;
  /* margin: 1.5rem auto; */
}

#contenu figcaption {
  margin-top: .45rem;
  color: var(--muted);
  font-size: .92rem;
}

#contenu .prose :where(img, iframe, video) {
  margin-inline: auto;
  border-radius: 18px;
}

#contenu .prose :where(ul, ol) {
  display: inline-grid;
  justify-items: start;
  max-width: min(100%, 46rem);
  margin-inline: auto;
  text-align: left;
}

.cards,
.feature-grid,
.contact-grid,
.logo-grid {
  grid-auto-rows: 1fr;
}

.cards article,
.feature,
.contact-card {
  min-height: 100%;
}

.cards article > img,
.cards article > picture,
.cards article > figure {
  flex: 0 0 auto;
}

@media (max-width: 1160px) {
  .site-header {
    min-height: var(--header-height);
  }
}

/* Patch 3.7.0 : boutons réseaux sociaux configurables depuis le CMS */
.social-buttons {
  --social-gap: .45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--social-gap);
  flex-wrap: wrap;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-width: var(--social-icon-size, 40px);
  min-height: var(--social-icon-size, 40px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(20, 60, 66, .08);
  color: inherit;
  text-decoration: none;
  line-height: 1;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.social-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(20, 60, 66, .12);
}

.social-button img {
  width: var(--social-icon-size, 40px);
  height: var(--social-icon-size, 40px);
  border-radius: 999px;
  object-fit: contain;
  background: #f9f9f9;
}

.social-button span {
  padding-right: .75rem;
  font-size: .9rem;
  white-space: nowrap;
}

.social-buttons-menu {
  margin-inline: .35rem;
}

.social-buttons-header {
  flex-wrap: nowrap;
}

.footer-block .social-buttons,
.footer-brand .social-buttons,
.footer-bottom .social-buttons {
  margin-top: .65rem;
}

.site-footer .social-button {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1);
  box-shadow: none;
}

@media (max-width: 940px) {
  .social-buttons-menu {
    width: 100%;
    margin: .25rem 0;
    justify-content: center;
  }

  .social-buttons-header .social-button span {
    display: none;
  }
}

