/* VERACKLIS — feuille de style du site institutionnel
   Couleurs et caractères conformes à la charte graphique (pièce C04). */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --nuit: #0B2545;
  --or: #B08D57;
  --pierre: #DCE2EA;
  --joint: #C2CCD9;
  --craie: #F6F7F9;
  --ardoise: #4F5D73;
  --blanc: #FFFFFF;

  --sans: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --serif: "Spectral", Georgia, "Times New Roman", serif;

  --mesure: 34em;
  --largeur: 1120px;
  --marge: clamp(20px, 5vw, 48px);
}

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

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

body {
  margin: 0;
  background: var(--craie);
  color: var(--nuit);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-color: var(--or); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { font-family: var(--sans); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.3125rem; font-weight: 600; }

p { margin: 0 0 1em; max-width: var(--mesure); }

.lien-evitement {
  position: absolute; left: -999px; top: 8px;
  background: var(--nuit); color: var(--blanc); padding: 8px 14px; font-family: var(--sans); font-size: 0.9rem;
}
.lien-evitement:focus { left: 8px; z-index: 10; }

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

/* En-tête */
.entete { background: var(--blanc); border-bottom: 1px solid var(--joint); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.entete .logo img { height: 34px; width: auto; }
.navigation { display: flex; align-items: center; gap: 32px; font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; }
.navigation ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.navigation a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.navigation a:hover, .navigation a[aria-current="page"] { border-bottom-color: var(--or); }
.langues { display: flex; gap: 10px; color: var(--ardoise); }
.langues > * { padding: 6px 0; border-bottom: 2px solid transparent; }
.langues [aria-current="true"] { color: var(--nuit); font-weight: 700; }
.bouton-menu { display: none; font: 500 0.9375rem var(--sans); background: none; color: var(--nuit); border: 1px solid var(--joint); padding: 8px 14px; cursor: pointer; }

@media (max-width: 760px) {
  .bouton-menu { display: inline-block; }
  .navigation { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--blanc); border-bottom: 1px solid var(--joint); padding: 16px var(--marge) 24px; flex-direction: column; align-items: flex-start; gap: 18px; z-index: 5; }
  .navigation.ouverte { display: flex; }
  .navigation ul { flex-direction: column; gap: 14px; }
  .entete { position: relative; }
}

/* Ouverture de la page d'accueil */
.ouverture { padding: clamp(40px, 7vw, 96px) 0 clamp(16px, 3vw, 32px); }
.ouverture .conteneur { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ouverture h1 { margin-bottom: 0.6em; max-width: 15em; }
.ouverture .chapeau { font-size: 1.25rem; color: var(--ardoise); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 28px; font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; }
.action-principale { background: var(--nuit); color: var(--blanc); text-decoration: none; padding: 14px 22px; }
.action-principale:hover { background: #12325c; }
.action-secondaire { padding: 14px 0; }
@media (max-width: 860px) {
  .ouverture .conteneur { grid-template-columns: 1fr; }
}

/* L'arc : chaque pierre est un pôle, la clé de voûte est la société mère */
.arc { width: 100%; margin: 0; }
.arc svg { width: 100%; height: auto; overflow: visible; }
.arc .pierre path { fill: var(--pierre); stroke: var(--craie); stroke-width: 3; transition: fill 150ms ease; }
.arc .pierre text { font-family: var(--sans); font-size: 15px; font-weight: 600; fill: var(--nuit); pointer-events: none; transition: fill 150ms ease; }
.arc a.pierre:hover path, .arc a.pierre:focus-visible path { fill: var(--nuit); }
.arc a.pierre:hover text, .arc a.pierre:focus-visible text { fill: var(--blanc); }
.arc a.pierre:focus-visible { outline: none; }
.arc a.pierre:focus-visible path { stroke: var(--or); stroke-width: 4; }
.arc .attente path { fill: none; stroke: var(--joint); stroke-width: 2; stroke-dasharray: 6 6; }
.arc .attente text { font-family: var(--serif); font-style: italic; font-size: 14px; fill: var(--ardoise); }
.arc .cle path { fill: var(--nuit); stroke: var(--craie); stroke-width: 3; }
.arc .cle .gemme { fill: var(--or); stroke: none; }
.arc .pile rect { fill: var(--pierre); }
.arc .pile line { stroke: var(--craie); stroke-width: 3; }
.arc figcaption { font-style: italic; color: var(--ardoise); font-size: 1rem; margin-top: 14px; text-align: center; max-width: none; }

@media (prefers-reduced-motion: no-preference) {
  .arc.anime .pierre, .arc.anime .attente { animation: poser 520ms cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--rang) * 110ms); }
  .arc.anime .cle { animation: poser-cle 640ms cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--rang) * 110ms + 120ms); }
  .arc.anime .cle .gemme { animation: luire 500ms ease both; animation-delay: calc(var(--rang) * 110ms + 700ms); }
}
@keyframes poser { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes poser-cle { from { opacity: 0; transform: translateY(-36px); } to { opacity: 1; transform: none; } }
@keyframes luire { from { opacity: 0; } to { opacity: 1; } }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section + .section { padding-top: 0; }
.section-titre { margin-bottom: 28px; }
.introduction { color: var(--ardoise); }

/* Liste des pôles */
.poles { list-style: none; margin: 0; padding: 0; }
.pole { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px 48px; padding: 32px 0; border-top: 1px solid var(--joint); }
.pole:last-child { border-bottom: 1px solid var(--joint); }
.pole h3 a { text-decoration: none; }
.pole h3 a:hover { text-decoration: underline; text-decoration-color: var(--or); }
.etat { font-family: var(--sans); font-size: 0.875rem; color: var(--ardoise); margin-top: 8px; }
.marques { font-family: var(--sans); font-size: 0.9375rem; margin: 0 0 12px; }
.marques .libelle { color: var(--ardoise); margin-right: 0.5em; }
.lien-pole { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; }
@media (max-width: 760px) { .pole { grid-template-columns: 1fr; } }

/* Principes */
.principes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.principes h3 { margin-bottom: 12px; }
.principes p { font-size: 1.0625rem; }
@media (max-width: 860px) { .principes { grid-template-columns: 1fr; gap: 28px; } }

/* Bandeau de contact */
.bandeau { background: var(--nuit); color: var(--blanc); padding: clamp(44px, 6vw, 72px) 0; }
.bandeau h2 { margin-bottom: 16px; }
.bandeau p { color: #D6DEE9; }
.bandeau a { color: var(--blanc); font-family: var(--sans); font-weight: 600; font-size: 1.25rem; }

/* Pages intérieures */
.page { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.page h1 { margin-bottom: 0.5em; }
.page h2 { margin: 1.6em 0 0.6em; }
.page .chapeau { font-size: 1.25rem; color: var(--ardoise); }
.page ul.liste { padding-left: 1.1em; max-width: var(--mesure); }
.page ul.liste li { margin-bottom: 0.4em; }
.retour { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; display: inline-block; margin-bottom: 24px; }
.fiche-marque { margin: 0 0 28px; padding-left: 20px; border-left: 3px solid var(--or); max-width: var(--mesure); }
.fiche-marque h3 { margin-bottom: 6px; }
.fiche-marque .etat { margin: 0 0 8px; }
.courriel { font-family: var(--sans); font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 600; }
.mention { font-size: 1rem; color: var(--ardoise); }

/* Pied de page */
.pied { background: var(--blanc); border-top: 1px solid var(--joint); padding: 36px 0 44px; font-family: var(--sans); font-size: 0.875rem; color: var(--ardoise); }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.pied ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.pied p { margin: 0; max-width: none; }

noscript p { font-family: var(--sans); font-size: 0.9375rem; }
