/* Groupe Sérénité — feuille de style unique.
   Identité tirée du logo de référence : monogramme « S » pétrole et sable, « Sérénité » en serif gras
   à fort contraste (Playfair Display), « GROUPE » et slogan en sans-serif géométrique (Montserrat).
   Polices libres (OFL) auto-hébergées dans /assets/polices/, licences jointes.
   Fichier unique volontaire (un seul téléchargement, aucune étape de construction CSS) : il dépasse
   les 800 lignes à cause de la présentation une propriété par ligne, pas de sa complexité. */

@font-face {
  font-family: "Playfair Display";
  src: url("/assets/polices/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/polices/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs relevées sur logo-final-reference-2.png (pixels opaques) */
  --petrole: #114751;
  --sable: #dbcdb9;
  --anthracite: #161a1d;
  --nuit: #0d232e;
  /* Fond et teintes dérivées */
  --blanc: #ffffff;
  --ivoire: #f9f7f2;
  --sable-clair: #f1ebe1;
  --petrole-fonce: #0b3640;
  --petrole-pale: #eaf0f1;
  --gris: #4a5761;
  --trait: #e7e2d9;
  --trait-fort: #cfc6b8;
  --ac-fond: #fbf0cc;
  --ac-texte: #5c4200;
  --ac-trait: #b8901c;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --largeur: 72rem;
  --mesure: 40rem;
  --gouttiere: clamp(1rem, 4vw, 2rem);
  --rayon: 14px;
  --espace-section: clamp(3.5rem, 8vw, 6.5rem);
  --cible: 44px;
}

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

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

body {
  margin: 0;
  background: var(--blanc);
  color: var(--nuit);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--anthracite);
}

h1 {
  font-size: clamp(2.125rem, 1.5rem + 2.8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
}

h3 {
  font-size: 1.375rem;
}

h4 {
  font-size: 1.1875rem;
}

p {
  margin: 0 0 1em;
}

sup {
  line-height: 0;
}

address {
  font-style: normal;
}

strong {
  font-weight: 600;
}

a {
  color: var(--petrole);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--petrole-fonce);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--petrole);
  outline-offset: 3px;
  border-radius: 2px;
}

.visuellement-masque {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

/* Lien d'évitement */
.evitement {
  position: absolute;
  left: var(--gouttiere);
  top: -6rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: var(--cible);
  padding: 0.5rem 1rem;
  background: var(--nuit);
  color: var(--blanc);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.evitement:focus {
  top: 0.75rem;
  color: var(--blanc);
}

/* Bandeau de version de travail (absent de la version publiable) */
.brouillon {
  background: var(--ac-fond);
  color: var(--ac-texte);
  border-bottom: 1px solid var(--ac-trait);
  font-size: 0.875rem;
  line-height: 1.5;
  padding-block: 0.6rem;
}

.brouillon p {
  margin: 0;
}

/* En-tête et logo */
.entete {
  background: var(--blanc);
  border-bottom: 1px solid var(--trait);
}

.entete-interieur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.875rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--cible);
  color: var(--anthracite);
  text-decoration: none;
}

.logo:hover {
  color: var(--anthracite);
}

.logo img {
  width: 37px;
  height: 51px;
  flex: none;
}

.logo-texte {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-groupe {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--nuit);
  margin-bottom: 0.3rem;
}

.logo-nom {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible);
  padding: 0 0.875rem;
  border-radius: 999px;
  color: var(--nuit);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  background: var(--ivoire);
  color: var(--nuit);
}

.nav a[aria-current="page"] {
  color: var(--petrole);
  text-decoration: underline;
  text-decoration-color: var(--sable);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.5em;
}

.nav-ordinateur {
  display: none;
}

/* Menu déroulant du téléphone : <details>/<summary>, sans JavaScript.
   Le bouton est posé à droite du logo ; le panneau s'ouvre dans le flux, sous l'en-tête,
   et pousse le contenu vers le bas (rien n'est masqué derrière lui). */
.menu > summary {
  position: absolute;
  top: calc(0.875rem + 3.5px);
  right: var(--gouttiere);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--cible);
  padding: 0 1.1rem 0 0.9rem;
  border: 1px solid var(--trait-fort);
  border-radius: 999px;
  background: var(--blanc);
  color: var(--nuit);
  font-size: 0.9375rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

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

.menu > summary::marker {
  content: "";
}

.menu > summary:hover {
  border-color: var(--nuit);
}

.menu[open] > summary {
  background: var(--petrole);
  border-color: var(--petrole);
  color: var(--blanc);
}

.menu-icone {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.menu-icone--fermer,
.menu[open] .menu-icone--ouvrir {
  display: none;
}

.menu[open] .menu-icone--fermer {
  display: block;
}

.menu-panneau {
  margin: 0.875rem 0 0.25rem;
  padding: 0.5rem;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-top: 3px solid var(--sable);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(13, 35, 46, 0.08);
}

.menu-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-liste li + li {
  border-top: 1px solid var(--trait);
}

.menu-liste a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: 12px;
  color: var(--nuit);
  font-weight: 500;
  text-decoration: none;
}

.menu-liste a:hover {
  background: var(--ivoire);
  color: var(--nuit);
}

.menu-liste a[aria-current="page"] {
  background: var(--petrole-pale);
  color: var(--petrole);
  font-weight: 600;
}

@media (max-width: 47.99rem) {
  .entete-interieur {
    position: relative;
    row-gap: 0;
  }

  .menu {
    flex: 0 0 100%;
  }
}

@media (min-width: 48rem) {
  .nav-ordinateur {
    display: block;
  }

  .menu {
    display: none;
  }
}

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

.section--ivoire {
  background: var(--ivoire);
  border-block: 1px solid var(--trait);
}

.section--serree {
  padding-top: 0;
}

.surtitre {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--petrole);
}

.surtitre::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--sable);
  flex: none;
}

.chapeau {
  max-width: var(--mesure);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.65;
  color: var(--gris);
}

.entete-section {
  max-width: var(--mesure);
  margin-bottom: 2.5rem;
}

.texte {
  max-width: var(--mesure);
}

/* Un bloc de texte posé directement sur le conteneur garde l'alignement à gauche de la page. */
.conteneur.texte {
  max-width: var(--largeur);
}

.conteneur.texte > * {
  max-width: var(--mesure);
}

.texte h2:not(:first-child) {
  margin-top: 2.5rem;
}

.texte ul,
.texte ol {
  padding-left: 1.25rem;
  margin: 0 0 1em;
}

.texte li + li {
  margin-top: 0.4em;
}

/* Haut de page, avec le décor tiré des courbes du « S » */
.accroche {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--trait);
  background: var(--blanc) url("/assets/decor-vagues.svg") no-repeat right -8rem bottom -10rem / 30rem auto;
}

.accroche > .conteneur {
  position: relative;
}

.accroche--courte {
  background-size: 24rem auto;
  background-position: right -7rem bottom -9rem;
}

.accroche--accueil {
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6.5rem);
}

@media (min-width: 48rem) {
  .accroche--accueil {
    background-size: 32rem auto;
    background-position: right -3rem bottom -11rem;
  }
}

@media (max-width: 47.99rem) {
  .accroche,
  .accroche--courte {
    background-size: 14rem auto;
    background-position: right -6rem bottom -6rem;
  }
}

.accroche h1 {
  max-width: 20ch;
}

.accroche--courte h1 {
  max-width: none;
}

.slogan {
  font-family: var(--sans);
  font-weight: 450;
  font-size: clamp(1.75rem, 0.6rem + 3.2vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--nuit);
  text-wrap: balance;
  margin-bottom: 2rem;
}

.accroche .slogan {
  max-width: none;
}

/* Boutons, en capsule comme le monogramme */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--petrole);
  border-radius: 999px;
  background: var(--petrole);
  color: var(--blanc);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.bouton:hover {
  background: var(--petrole-fonce);
  border-color: var(--petrole-fonce);
  color: var(--blanc);
}

.bouton:active {
  transform: scale(0.98);
}

.bouton--clair {
  background: var(--blanc);
  border-color: var(--trait-fort);
  color: var(--nuit);
}

.bouton--clair:hover {
  background: var(--ivoire);
  border-color: var(--nuit);
  color: var(--nuit);
}

.bouton svg,
.lien-fleche svg {
  width: 1em;
  height: 1em;
  flex: none;
}

/* Cartes */
.grille-cartes {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.carte {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: clamp(1.25rem, 3vw, 2rem);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.carte:hover {
  border-color: var(--trait-fort);
  box-shadow: 0 2px 10px rgba(13, 35, 46, 0.05);
}

.carte h3,
.carte h4,
.carte p {
  margin: 0;
}

.carte .lien-fleche {
  margin-top: auto;
}

.domaine {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gris);
}

.etiquette {
  align-self: flex-start;
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--petrole-pale);
  color: var(--petrole-fonce);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--cible);
  font-weight: 600;
  text-decoration: none;
}

.lien-fleche:hover {
  text-decoration: underline;
}

.numero {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.liste-sans-puces {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Accueil : deux entrées par public */
.entrees {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 60rem) {
  .entrees {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.entree {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--ivoire);
  border: 1px solid var(--trait);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.entree--pro {
  background: var(--petrole-pale);
  border-color: #d3e0e3;
}

.entree h2,
.entree .surtitre,
.entree-intro {
  margin: 0;
}

.entree-intro {
  max-width: 34rem;
  color: var(--gris);
}

.cartes-marques {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  flex: 1;
}

.cartes-marques .carte {
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
}

.cartes-marques h3 {
  font-size: 1.25rem;
}

.entree > .bouton {
  align-self: flex-start;
}

/* Présentation détaillée d'une marque */
.marque {
  display: grid;
  gap: 1rem 3rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--trait);
}

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

.marque h2,
.marque h3 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  margin: 0.5rem 0 0.25rem;
}

.marque-corps p:last-child {
  margin-bottom: 0;
}

@media (min-width: 56rem) {
  .marque {
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  }
}

/* Encart mis en avant */
.encart {
  display: grid;
  gap: 2rem;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.encart h2 {
  margin-top: 0;
}

@media (min-width: 56rem) {
  .encart {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
  }
}

.liste-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.liste-points li {
  position: relative;
  padding-left: 1.75rem;
}

.liste-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--sable);
  box-shadow: inset 0 0 0 2px var(--petrole);
}

/* Bande de contact */
.bande {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.bande h2,
.bande p {
  margin: 0;
}

.bande .actions {
  margin-top: 0;
}

@media (min-width: 56rem) {
  .bande {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Pages de texte juridique */
.document {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 62rem) {
  .document {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 4rem;
  }

  .sommaire {
    position: sticky;
    top: 1.5rem;
    align-self: start;
  }
}

.sommaire h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris);
  margin: 0 0 0.25rem;
}

.sommaire ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sommaire a {
  display: flex;
  align-items: center;
  min-height: var(--cible);
  color: var(--nuit);
  font-size: 0.9375rem;
  line-height: 1.3;
  text-decoration: none;
  border-bottom: 1px solid var(--trait);
}

.sommaire a:hover {
  color: var(--petrole);
  text-decoration: underline;
}

.document-corps > section {
  max-width: 46rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--trait);
  scroll-margin-top: 1.5rem;
}

.document-corps > section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.document-corps h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
}

.document-corps h3 {
  font-size: 1.0625rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0;
  margin-top: 1.75rem;
}

.document-corps ul {
  padding-left: 1.25rem;
}

.document-corps li + li {
  margin-top: 0.4em;
}

.document-corps .identite {
  margin-bottom: 1rem;
}

@media (min-width: 30rem) {
  .document-corps .identite div {
    grid-template-columns: 12rem minmax(0, 1fr);
  }
}

.note {
  font-size: 0.9375rem;
  color: var(--gris);
}

.petits-caracteres {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--gris);
}

/* Emplacements à confirmer (version de travail seulement) */
mark.ac {
  background: var(--ac-fond);
  color: var(--ac-texte);
  border: 1px dashed var(--ac-trait);
  border-radius: 4px;
  padding: 0.05em 0.4em;
  font-family: var(--sans);
  font-size: 0.875em;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Page d'erreur */
.erreur-code {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--petrole);
}

.liens-utiles {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Pied de page */
.pied {
  background: var(--ivoire);
  border-top: 3px solid var(--sable);
  padding-block: 3rem 1.5rem;
  font-size: 0.9375rem;
}

.pied-grille {
  display: grid;
  gap: 2rem;
}

@media (min-width: 40rem) {
  .pied-grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .pied-grille {
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  }
}

.pied h2 {
  margin: 0 0 0.25rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--petrole);
}

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

.pied li a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible);
  color: var(--nuit);
  line-height: 1.35;
  text-decoration: none;
}

.pied li a:hover {
  color: var(--petrole);
  text-decoration: underline;
}

.pied-identite p {
  margin: 0.75rem 0 0;
  color: var(--gris);
}

.pied-fiche {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.pied-fiche div {
  display: grid;
  grid-template-columns: 8.25rem minmax(0, 1fr);
  gap: 0.75rem;
}

.pied-fiche dt {
  padding-top: 0.1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris);
}

.pied-fiche dd {
  margin: 0;
  color: var(--nuit);
}

.pied-identite .pied-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin-top: 0.5rem;
}

.pied-identite a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible);
}

.pied-bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--trait-fort);
  font-size: 0.8125rem;
  color: var(--gris);
}

.pied-bas p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media print {
  .evitement,
  .brouillon,
  .entete nav,
  .pied nav,
  .actions {
    display: none;
  }

  body,
  .pied,
  .section--ivoire {
    background: #ffffff;
  }

  .accroche,
  .encart {
    background-image: none;
  }
}
