/* Rythmo Technologies — feuille de style unique, sans dépendance */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin-wght-normal.woff2") format("woff2");
}

:root {
  --creme: #FFF9EF;
  --encre: #1F2A37;
  --encre-douce: #46505E;
  --filet: rgba(31, 42, 55, 0.16);
  --vert: #163826;
  --marine: #14233B;
  --or: #D9A93C;
  --peche: #EFAF91;
  --marge: clamp(1.25rem, 5vw, 4rem);
  --large: 68rem;
}

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

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

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 500;
}

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

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.09em; }
a:focus-visible { outline: 3px solid var(--encre); outline-offset: 4px; border-radius: 4px; }

.passer {
  position: absolute; left: -999rem; top: 0;
  background: var(--encre); color: var(--creme); padding: 0.75rem 1rem; font-weight: 700;
}
.passer:focus { left: 0; z-index: 10; }

.cadre { max-width: var(--large); margin-inline: auto; padding-inline: var(--marge); }

/* En-tête */
.entete { padding-block: 1.5rem; }
.entete .cadre { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem 2rem; }
.logo img { width: 15.5rem; height: auto; }
.descriptif { margin: 0; font-weight: 700; color: var(--encre-douce); }

/* Ouverture */
.ouverture { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 9vw, 7rem) clamp(3rem, 9vw, 7rem); }
.ouverture h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2.5rem, 8.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}
.ouverture .mission {
  margin: 1.75rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.45;
  color: var(--encre-douce);
}
.arcs {
  position: absolute; z-index: 0; pointer-events: none;
  right: -18%; top: 4%;
  width: min(78vw, 46rem); height: auto;
  fill: var(--encre); opacity: 0.07;
}
.ouverture .cadre { position: relative; z-index: 1; }

/* Marques */
.marques { padding-block: 0 clamp(3.5rem, 9vw, 6.5rem); }
.marques ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.marque {
  display: flex; flex-direction: column; height: 100%;
  min-height: 17rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.75rem;
  text-decoration: none;
  color: var(--creme);
}
.marque--rythmo { background: var(--vert); }
.marque--family { background: var(--marine); }
.marque .pour { margin: 0; font-weight: 700; }
.marque--rythmo .pour { color: #BFE3CB; }
.marque--family .pour { color: var(--peche); }
.marque h3 { margin: 0.35rem 0 0; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.marque .quoi { margin: 0.9rem 0 2rem; max-width: 24rem; }
.marque .adresse { margin: auto 0 0; font-weight: 800; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 0.09em; }
.marque--family .adresse { color: var(--or); }
.marque:hover .adresse { text-decoration-thickness: 0.16em; }
.marque:focus-visible { outline: 3px solid var(--encre); outline-offset: 4px; border-radius: 1.75rem; }

/* Principes */
.principes { border-top: 1px solid var(--filet); padding-block: clamp(3rem, 8vw, 5.5rem); }
.principes h2 { margin: 0 0 2rem; font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 800; letter-spacing: -0.01em; }
.principes dl { margin: 0; display: grid; gap: 1.75rem 3rem; }
.principes dt { font-size: 1.35rem; font-weight: 800; }
.principes dd { margin: 0.25rem 0 0; color: var(--encre-douce); max-width: 30rem; }

/* Pied */
.pied { border-top: 1px solid var(--filet); padding-block: 2rem 2.5rem; font-size: 1rem; }
.pied .cadre { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: baseline; justify-content: space-between; }
.pied p { margin: 0; }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.pied a { font-weight: 700; display: inline-block; padding-block: 0.4rem; }

/* Pages de texte (confidentialité, 404) */
.texte { padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 5rem); }
.texte .cadre { max-width: 44rem; }
.texte h1 { margin: 0 0 1rem; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.015em; }
.texte h2 { margin: 2.25rem 0 0.5rem; font-size: 1.35rem; font-weight: 800; }
.texte p, .texte li { color: var(--encre-douce); }
.texte .date { font-weight: 700; }
.texte ul { padding-left: 1.2rem; }

@media (min-width: 48rem) {
  .marques ul { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .principes dl { grid-template-columns: 1fr 1fr; }
  .arcs { right: -6%; top: -6%; width: min(58vw, 46rem); }
}

/* Titre lu par les lecteurs d'écran, absent à l'écran */
.invisible { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 47.99rem) { .marque { min-height: 13.5rem; } }
