/* ==========================================================================
   Forsat Énergie — feuille de style du site
   Couleurs et typographie tirées de la trousse de marque (LISEZ-MOI du logo).
   ========================================================================== */

/* ---------- Police de la marque : Poppins (licence libre SIL OFL) ---------- */
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --marine: #0E2233;
  --marine-2: #17354D;
  --or: #B8893B;
  --clair: #F4F6F8;
  --blanc: #FFFFFF;
  --ardoise: #4A5B6A;
  --filet: #C9D2DA;
  --filet-fonce: rgba(255, 255, 255, 0.2);
  --texte-fonce: #D8DFE5;

  --gouttiere: clamp(20px, 5vw, 48px);
  --espace-section: clamp(64px, 9vw, 120px);
}

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

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

body {
  margin: 0;
  background: var(--blanc);
  color: var(--marine);
  font-family: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.05rem, 4.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

p {
  margin: 0 0 1.1em;
  max-width: 68ch;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--or);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

a:hover {
  text-decoration-color: currentColor;
}

strong {
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: 96px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--marine);
  color: var(--blanc);
}

.skip:focus {
  top: 16px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 2px solid var(--marine);
  background: var(--marine);
  color: var(--blanc);
  font: inherit;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  border-color: var(--marine-2);
  background: var(--marine-2);
}

.btn--ghost {
  background: transparent;
  color: var(--marine);
}

.btn--ghost:hover {
  background: var(--marine);
  color: var(--blanc);
}

.btn--on-dark {
  border-color: var(--or);
  background: var(--or);
  color: var(--marine);
}

.btn--on-dark:hover {
  border-color: var(--blanc);
  background: var(--blanc);
  color: var(--marine);
}

.btn--ghost.btn--on-dark {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: var(--blanc);
}

.btn--ghost.btn--on-dark:hover {
  border-color: var(--blanc);
  background: var(--blanc);
  color: var(--marine);
}

.btn--small {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: none;
  margin: 0;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--filet);
  background: var(--blanc);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav li a {
  display: block;
  padding: 8px 0;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.nav li a:hover {
  border-bottom-color: var(--filet);
}

.nav li a[aria-current="page"] {
  border-bottom-color: var(--or);
}

.lang {
  padding: 6px 10px;
  border: 1px solid var(--filet);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.lang:hover {
  border-color: var(--marine);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--filet);
  background: var(--blanc);
  color: var(--marine);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.nav-toggle-bars {
  width: 18px;
  height: 12px;
  border-top: 2px solid var(--marine);
  border-bottom: 2px solid var(--marine);
}

/* ---------- Soleil (motif de la marque) ---------- */
.sun {
  position: absolute;
  right: -6%;
  bottom: 0;
  width: min(62vw, 820px);
  max-width: none;
  pointer-events: none;
}

.sun--small {
  right: -4%;
  width: min(48vw, 560px);
}

.sun .arc {
  fill: none;
  stroke: var(--or);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  transform-origin: 400px 400px;
  opacity: var(--o);
  animation: arc-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.sun .arc-1 { --o: 0.75; animation-delay: 0.25s; }
.sun .arc-2 { --o: 0.5; animation-delay: 0.4s; }
.sun .arc-3 { --o: 0.32; animation-delay: 0.55s; }
.sun .arc-4 { --o: 0.2; animation-delay: 0.7s; }

.sun .disc {
  fill: var(--or);
  animation: disc-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes arc-in {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: var(--o); }
}

@keyframes disc-rise {
  from { transform: translateY(70px); }
  to { transform: translateY(0); }
}

/* ---------- Bloc d'ouverture (accueil) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--marine);
  color: var(--blanc);
}

.hero {
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - 77px), 860px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(56px, 7vw, 88px) clamp(120px, 12vw, 150px);
}

.hero h1 {
  max-width: 19ch;
}

.hero .lead {
  max-width: 56ch;
  margin: 28px 0 36px;
  color: var(--texte-fonce);
  font-size: 1.1rem;
}

.hero-tagline {
  display: inline-block;
  margin: 44px 0 0;
  padding-left: 18px;
  border-left: 1px solid var(--or);
  color: var(--texte-fonce);
  font-style: italic;
}

/* Vidéo d'arrière-plan : le soleil reste dessous et réapparaît si la vidéo ne charge pas. */
.hero--video .sun {
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Vidéo très claire (toiture blanche) : assombrie et désaturée pour l'accorder au marine. */
.hero-video--dim {
  filter: grayscale(0.45) brightness(0.7) contrast(1.1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(14, 34, 51, 0.92) 0%, rgba(14, 34, 51, 0.78) 46%, rgba(14, 34, 51, 0.45) 100%);
}

.hero--video .hero-inner,
.page-head--video .page-head-inner {
  z-index: 3;
}

.page-head--video .sun {
  z-index: 0;
}

/* Page Services : la vidéo est déjà sombre et dorée, le voile est donc plus léger à droite. */
.page-head--video .hero-shade {
  background: linear-gradient(90deg, rgba(14, 34, 51, 0.9) 0%, rgba(14, 34, 51, 0.68) 50%, rgba(14, 34, 51, 0.22) 100%);
}

.page-head--video .page-head-inner {
  padding-block: clamp(72px, 9vw, 120px) clamp(96px, 12vw, 148px);
}

.hero-toggle {
  position: absolute;
  right: var(--gouttiere);
  bottom: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(14, 34, 51, 0.6);
  cursor: pointer;
}

.hero-toggle[hidden] {
  display: none;
}

.hero-toggle:hover {
  border-color: var(--blanc);
  background: var(--marine);
}

/* icône pause (deux barres) ; devient un triangle « lecture » quand la vidéo est arrêtée */
.hero-toggle-icon {
  width: 12px;
  height: 14px;
  border-left: 4px solid var(--blanc);
  border-right: 4px solid var(--blanc);
}

.hero-toggle.is-paused .hero-toggle-icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-right: 0;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--blanc);
}

/* ---------- En-tête des pages intérieures ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--marine);
  color: var(--blanc);
}

.page-head-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(64px, 8vw, 104px) clamp(88px, 11vw, 132px);
}

.page-head h1 {
  max-width: 21ch;
  font-size: clamp(1.95rem, 3.9vw, 3.05rem);
}

.page-head .lead {
  max-width: 60ch;
  margin: 24px 0 0;
  color: var(--texte-fonce);
  font-size: 1.05rem;
}

.page-head .actions {
  margin-top: 32px;
}

.page-head--center .lead + .actions + .lead {
  margin-top: 48px;
}

.subnav {
  border-bottom: 1px solid var(--filet);
  background: var(--blanc);
}

.subnav ul {
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  white-space: nowrap;
}

.subnav a {
  display: block;
  padding: 18px 0;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.subnav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--or);
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--espace-section);
}

.section--tint {
  background: var(--clair);
}

.section--navy {
  background: var(--marine);
  color: var(--blanc);
}

.section-head {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head h2 {
  max-width: 22ch;
}

.section-head p {
  margin-top: 20px;
  color: var(--ardoise);
  font-size: 1.05rem;
}

.section--navy .section-head p {
  color: var(--texte-fonce);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.split .section-head {
  margin-bottom: 0;
}

.section-body > * + * {
  margin-top: 28px;
}

/* ---------- Listes ---------- */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 26px;
}

.list li + li {
  margin-top: 10px;
}

.list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--or);
}

/* Liste « terme + explication » */
.defs li {
  display: grid;
  grid-template-columns: minmax(0, 12.5em) minmax(0, 1fr);
  gap: 6px 32px;
  align-content: start;
  padding: 20px 0;
  border-top: 1px solid var(--filet);
}

.defs li + li {
  margin-top: 0;
}

.defs li:last-child {
  border-bottom: 1px solid var(--filet);
}

.defs li::before {
  content: none;
}

.defs strong {
  font-weight: 500;
  font-size: 1.05rem;
}

.defs span {
  color: var(--ardoise);
}

.defs.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 88px);
}

.defs.cols-2 li {
  grid-template-columns: minmax(0, 1fr);
  border-bottom: 0;
}

.section--navy .defs li {
  border-color: var(--filet-fonce);
}

.section--navy .defs span {
  color: var(--texte-fonce);
}

/* Étapes numérotées */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px clamp(28px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

.steps li {
  padding-top: 22px;
  border-top: 1px solid var(--filet-fonce);
  counter-increment: etape;
}

.steps li::before {
  content: counter(etape);
  display: block;
  margin-bottom: 14px;
  color: var(--or);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
}

.step-title {
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 500;
}

.steps span {
  display: block;
  color: var(--texte-fonce);
}

/* ---------- Éléments de section ---------- */
.items--tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 88px);
}

.tile {
  padding: 32px 0 40px;
  border-top: 1px solid var(--filet);
}

.tile h3 {
  margin-bottom: 14px;
  font-size: 1.4rem;
}

.tile p {
  color: var(--ardoise);
}

.tile .more {
  color: var(--marine);
}

.more {
  font-weight: 500;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px clamp(32px, 6vw, 88px);
  padding-block: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--filet);
}

.row:last-child {
  padding-bottom: 0;
}

.row-head h3 {
  font-size: 1.45rem;
}

.row-lead {
  margin-top: 12px;
  color: var(--ardoise);
  font-style: italic;
}

.row-body > * + * {
  margin-top: 22px;
}

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px clamp(28px, 4vw, 48px);
}

.pair h4 {
  margin-bottom: 14px;
}

.block + .block {
  margin-top: clamp(48px, 6vw, 72px);
}

.block h3 {
  margin-bottom: 20px;
  font-size: 1.45rem;
}

.block > * + * {
  margin-top: 22px;
}

.section--navy .items--blocks {
  margin-top: clamp(56px, 7vw, 88px);
}

.note {
  color: var(--ardoise);
  font-size: 0.9rem;
  font-style: italic;
}

.licence {
  padding: 6px 0 6px 20px;
  border-left: 4px solid var(--or);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
}

/* ---------- Photos ---------- */
.photo-head {
  margin-top: clamp(28px, 4vw, 44px);
}

.photo-head img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--filet);
}

.photo-band img {
  display: block;
  width: 100%;
  height: clamp(220px, 34vw, 480px);
  object-fit: cover;
  background: var(--marine);
}

.photo-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-duo img {
  display: block;
  width: 100%;
  height: clamp(200px, 30vw, 440px);
  object-fit: cover;
  background: var(--marine);
}

/* ---------- Schéma du système solaire ---------- */
.schema {
  margin: 0 0 clamp(40px, 5vw, 64px);
  padding: clamp(24px, 4vw, 48px);
  background: var(--clair);
}

.schema h3 {
  font-size: 1.45rem;
}

.schema-note {
  margin: 10px 0 0;
  color: var(--ardoise);
  font-size: 0.95rem;
}

.schema svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(20px, 3vw, 36px);
  font-family: inherit;
}

.schema .schema-tall {
  display: none;
  max-width: 460px;
  margin-inline: auto;
}

.schema-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin: clamp(24px, 3vw, 40px) 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--filet);
  list-style: none;
  counter-reset: etape-schema;
}

.schema-steps li {
  counter-increment: etape-schema;
  color: var(--ardoise);
  font-size: 0.9rem;
  line-height: 1.55;
}

.schema-steps li::before {
  content: counter(etape-schema);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--or);
  color: var(--marine);
  font-size: 0.9rem;
  font-weight: 700;
}

.schema-steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--marine);
  font-size: 1rem;
  font-weight: 500;
}

.schema-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  max-width: none;
  margin: 28px 0 0;
  font-size: 0.875rem;
}

.schema-key span::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 3px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--marine);
}

.schema-key .key-dc::before {
  background: var(--or);
}

/* ---------- Tableau ---------- */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.55;
}

thead th {
  padding: 0 20px 14px 0;
  border-bottom: 2px solid var(--marine);
  color: var(--ardoise);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  vertical-align: bottom;
}

tbody th,
tbody td {
  padding: 20px 20px 20px 0;
  border-bottom: 1px solid var(--filet);
  text-align: left;
  vertical-align: top;
}

tbody th {
  width: 22%;
  font-weight: 400;
}

tbody th strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
}

/* ---------- Appel à l'action ---------- */
.section--cta .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 64px;
  align-items: end;
}

.section--cta .section-head {
  margin-bottom: 0;
}

.section--cta .section-head p a,
.mail a {
  font-weight: 500;
}

.mail {
  margin-top: 18px;
}

/* ---------- Foire aux questions ---------- */
.faq {
  border-top: 1px solid var(--filet);
}

.faq:last-child {
  border-bottom: 1px solid var(--filet);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary h3 {
  font-size: 1.1rem;
  text-wrap: wrap;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--or);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq[open] summary::after {
  transform: rotate(45deg);
}

.faq-body {
  padding-bottom: 26px;
  color: var(--ardoise);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.contact-grid h2 {
  margin-bottom: 32px;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.coords {
  margin: 0;
}

.coords div {
  padding: 18px 0;
  border-top: 1px solid var(--filet);
}

.coords div:last-child {
  border-bottom: 1px solid var(--filet);
}

.coords dt {
  color: var(--ardoise);
  font-size: 0.875rem;
}

.coords dd {
  margin: 2px 0 0;
  font-weight: 500;
}

.form {
  display: grid;
  gap: 22px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.req,
.opt {
  color: var(--ardoise);
  font-weight: 400;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #8795A1;
  border-radius: 0;
  background: var(--blanc);
  color: var(--marine);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field input[type="file"] {
  max-width: 100%;
  font: inherit;
  font-size: 0.95rem;
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
}

.field .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-weight: 400;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 5px 0 0;
  accent-color: var(--marine);
}

.hint {
  margin-top: 6px;
  color: var(--ardoise);
  font-size: 0.875rem;
}

.hp {
  position: absolute;
  left: -9999px;
}

/* ---------- Pied de page ---------- */
.site-footer {
  padding-block: 72px 32px;
  border-top: 1px solid var(--filet);
  background: var(--clair);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 40px clamp(32px, 6vw, 88px);
}

.footer-brand img {
  display: block;
  height: 36px;
  width: auto;
}

.footer-tagline {
  margin-top: 20px;
  color: var(--ardoise);
  font-style: italic;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.site-footer address {
  margin-bottom: 12px;
  font-style: normal;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 6px;
}

.site-footer nav a {
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--or);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--filet);
  color: var(--ardoise);
  font-size: 0.875rem;
}

.footer-legal p {
  margin: 0;
}

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 1020px) {
  .nav-toggle {
    display: inline-flex;
  }

  .bar {
    flex-wrap: wrap;
  }

  /* Sans JavaScript, le menu reste visible sous le logo. */
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    padding-bottom: 24px;
  }

  .js .nav {
    display: none;
  }

  .js .nav.is-open {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: flex;
    width: auto;
    padding: 24px var(--gouttiere) 28px;
    border-bottom: 1px solid var(--filet);
    background: var(--blanc);
  }

  .no-js-only {
    display: none;
  }

  .nav ul {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .nav li a {
    padding: 10px 0;
    font-size: 1.05rem;
  }

  .nav li a[aria-current="page"] {
    border-bottom-color: transparent;
    box-shadow: inset 3px 0 0 var(--or);
    padding-left: 14px;
  }
}

@media (max-width: 860px) {
  .split,
  .row,
  .contact-grid,
  .section--cta .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .split .section-head {
    margin-bottom: 0;
  }

  .items--tiles,
  .defs.cols-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schema .schema-wide {
    display: none;
  }

  .schema .schema-tall {
    display: block;
  }

  .schema-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .schema-steps li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 14px;
  }

  .schema-steps li::before {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .schema-steps li strong,
  .schema-steps li span {
    grid-column: 2;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Tableau : une fiche par programme */
  table,
  tbody,
  tr,
  tbody th,
  tbody td {
    display: block;
    width: 100%;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  tr {
    padding: 22px 0;
    border-top: 1px solid var(--filet);
  }

  tbody th,
  tbody td {
    padding: 0;
    border: 0;
  }

  tbody td {
    margin-top: 14px;
  }

  tbody td::before {
    content: attr(data-label);
    display: block;
    color: var(--ardoise);
    font-size: 0.8125rem;
  }
}

@media (max-width: 600px) {
  .hero-shade {
    background: rgba(14, 34, 51, 0.8);
  }

  .hero--video .hero-inner,
  .page-head--video .page-head-inner {
    padding-bottom: 96px;
  }

  .page-head--video .hero-shade {
    background: rgba(14, 34, 51, 0.76);
  }

  .sun {
    right: -34vw;
    width: 128vw;
  }

  .sun--small {
    right: -30vw;
    width: 100vw;
  }

  .hero-inner {
    padding-bottom: 46vw;
  }

  .page-head-inner {
    padding-bottom: 34vw;
  }

  .defs li {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps,
  .pair,
  .field-row,
  .checks,
  .footer-grid,
  .photo-duo {
    grid-template-columns: minmax(0, 1fr);
  }

  .photo-duo img {
    height: 62vw;
  }

  .actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sun .arc,
  .sun .disc {
    animation: none;
  }

  .btn,
  .faq summary::after {
    transition: none;
  }
}

@media print {
  .site-header,
  .subnav,
  .sun,
  .nav-toggle {
    display: none;
  }
}
