/* dido.agsrdc.com — direction « Rapport annuel ». Fond blanc, bleu nuit, turquoise avec parcimonie.
   Pas de mode sombre, pas de dégradé, pas d'animation décorative. */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/sourceserif4-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/sourceserif4-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("../assets/fonts/ibmplexsans-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 100 700; font-display: swap; src: url("../assets/fonts/ibmplexsans-italic.woff2") format("woff2"); }

:root {
  --bleu: #0f2a3d;             /* texte et bande d'en-tête */
  --bleu-doux: #4a5f70;        /* texte secondaire, 6,3:1 sur blanc */
  --turquoise: #17b3b6;        /* accent : filets, repères, fond du bouton principal (texte bleu nuit : 5,7:1) */
  --turquoise-clair: #9fd8d9;  /* sur-titre et traits sur la bande bleue, 9,6:1 */
  --bande-texte: #e4edf2;      /* texte secondaire sur la bande bleue */
  --bande-doux: #c7d6df;
  --gris: #f4f7f8;
  --ligne: #dde4e8;
  --ligne-forte: #9fb0ba;
  --blanc: #ffffff;
  --rouge: #a3281e;
  --vert: #1b6b3a;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mesure: 66ch;
  --rayon: 4px;
  --barre: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--barre) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body { margin: 0; background: var(--blanc); color: var(--bleu); font-family: var(--sans); font-size: 17px; line-height: 1.6; text-rendering: optimizeLegibility; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; max-width: var(--mesure); }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--bleu); text-decoration: underline; text-decoration-color: var(--turquoise); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--bleu); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 2px; }
.bande :focus-visible, .barre :focus-visible { outline-color: var(--blanc); }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 600; }
.cadre { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

.visuellement-cache { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.aller-contenu { position: absolute; left: 16px; top: -100px; z-index: 20; background: var(--turquoise); color: var(--bleu); padding: 10px 14px; border-radius: var(--rayon); text-decoration: none; font-weight: 600; }
.aller-contenu:focus { top: 8px; }

/* ---- barre de navigation (collante, bleu nuit) ---- */
.barre { position: sticky; top: 0; z-index: 10; background: var(--bleu); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.barre-interieur { min-height: var(--barre); display: flex; align-items: center; gap: 18px; }
.barre-nom { display: none; font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--blanc); text-decoration: none; white-space: nowrap; }
.barre-liens { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; min-width: 0; }
.barre-liens::-webkit-scrollbar { display: none; }
@media (max-width: 1079px) { .barre-liens { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); padding-right: 24px; } }
.barre-liens a { display: inline-block; padding: 16px 10px; font-size: 14.5px; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--bande-texte); border-bottom: 3px solid transparent; transition: color 0.2s, border-color 0.2s; }
.barre-liens a:hover { color: var(--blanc); border-bottom-color: var(--turquoise); }
.barre-liens a:focus-visible { outline-offset: -3px; }
.langue { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.25); display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; white-space: nowrap; color: var(--blanc); }
.langue-sep { color: var(--turquoise-clair); opacity: 0.7; }
.langue-autre { color: var(--bande-doux); text-decoration: none; padding: 8px 4px; }
.langue-autre:hover { color: var(--blanc); text-decoration: underline; }

/* ---- bande d'en-tête ---- */
.bande { background: var(--bleu); color: var(--blanc); padding: 40px 0 48px; }
.entete { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.photo { width: 140px; height: 140px; order: -1; display: block; }
.photo img { width: 100%; height: 100%; border-radius: 50%; }
.surtitre { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--turquoise-clair); font-weight: 600; margin-bottom: 14px; max-width: none; }
.badge { color: var(--blanc); border: 1px solid var(--turquoise-clair); border-radius: 3px; padding: 2px 8px; letter-spacing: 0.06em; white-space: nowrap; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.3rem, 6vw, 3.6rem); letter-spacing: -0.01em; color: var(--blanc); text-wrap: balance; }
.specialite { font-size: 1.2rem; font-weight: 500; color: var(--bande-texte); margin-top: 10px; max-width: none; }
.accroche { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.5; color: var(--bande-doux); margin-top: 18px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: var(--rayon); font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; border: 1.5px solid var(--bleu); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.bouton-principal { background: var(--turquoise); border-color: var(--turquoise); color: var(--bleu); }
.bouton-principal:hover { background: var(--blanc); border-color: var(--blanc); }
.bouton-secondaire { background: transparent; color: var(--bleu); }
.bouton-secondaire:hover { background: var(--bleu); color: var(--blanc); }
.bande .bouton-secondaire { color: var(--blanc); border-color: rgba(255, 255, 255, 0.55); }
.bande .bouton-secondaire:hover { background: var(--blanc); color: var(--bleu); border-color: var(--blanc); }
.bouton[disabled] { opacity: 0.6; cursor: wait; }
.coordonnees { font-style: normal; display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; font-size: 15px; color: var(--bande-doux); }
.coordonnees a { color: var(--blanc); text-decoration: none; border-bottom: 1px solid var(--turquoise-clair); }
.coordonnees a:hover { border-bottom-color: var(--blanc); }

/* ---- chiffres clés : bandeau à filets ---- */
.chiffres { border-bottom: 1px solid var(--ligne); }
.tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tuile { padding: 20px 16px 18px 0; display: flex; flex-direction: column; border-right: 1px solid var(--ligne); }
.tuile:nth-child(2n) { border-right: 0; padding-left: 16px; }
.tuile:nth-child(n+3) { border-top: 1px solid var(--ligne); }
.tuile-valeur { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.tuile-libelle { font-size: 15px; margin-top: 6px; line-height: 1.35; }
.tuile-detail { font-size: 13px; color: var(--bleu-doux); margin-top: 3px; }

/* ---- sections : titre dans la marge, contenu à droite ---- */
.principal { padding-top: 8px; }
.principal > section { display: grid; gap: 12px; padding: 40px 0; border-bottom: 1px solid var(--ligne); }
.principal > section:last-of-type { border-bottom: 0; }
.st h2 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bleu-doux); font-weight: 600; padding-top: 8px; border-top: 3px solid var(--turquoise); display: inline-block; }
.sc { max-width: var(--mesure); min-width: 0; }
.sc p + p { margin-top: 1em; }
.sc h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }

/* Frise (expériences, formation) : période à gauche, contenu à droite */
.frise-item { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--ligne); }
.frise-item:first-child { border-top: 0; padding-top: 0; }
.frise-periode { font-size: 14px; font-weight: 600; color: var(--bleu-doux); font-variant-numeric: tabular-nums; padding-top: 5px; }
.frise-corps { min-width: 0; }
.frise-organisation { color: var(--bleu-doux); font-weight: 500; margin: 2px 0 8px; }

/* Compétences */
.groupe + .groupe { margin-top: 20px; }
.groupe h3 { font-family: var(--sans); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bleu-doux); margin-bottom: 8px; font-weight: 600; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; }
.etiquettes li { border: 1px solid var(--ligne-forte); border-radius: 3px; padding: 4px 10px; font-size: 14.5px; line-height: 1.35; }

/* Certifications */
.tableau-defilant { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.certifications { width: 100%; border-collapse: collapse; font-size: 15px; }
.certifications th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bleu-doux); border-bottom: 2px solid var(--bleu); padding: 8px 10px 8px 0; }
.certifications td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.certifications td:first-child { font-weight: 600; }
.certifications .date { white-space: nowrap; }
.certifications-lien { margin-top: 14px; font-size: 15px; }

/* Langues, intérêts, références */
.deux-colonnes { display: grid; gap: 24px; }
.deux-colonnes h3 { font-family: var(--sans); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bleu-doux); margin-bottom: 6px; font-weight: 600; }
.liste-simple li { padding: 6px 0; border-bottom: 1px solid var(--ligne); }
.liste-simple li:last-child { border-bottom: 0; }
.references li { display: flex; flex-direction: column; padding: 9px 0; border-bottom: 1px solid var(--ligne); }
.references li:last-child { border-bottom: 0; }
.references span { color: var(--bleu-doux); }
.note { color: var(--bleu-doux); font-size: 15px; margin-top: 14px; }
.note-inline { color: var(--bleu-doux); font-size: 15px; }

/* Formulaire de contact */
.contact-intro { max-width: 60ch; }
.formulaire { background: var(--gris); border-radius: var(--rayon); padding: 22px 18px; margin: 18px 0 20px; max-width: 600px; }
.champ { margin-bottom: 16px; }
.champ label { display: block; font-weight: 600; margin-bottom: 6px; }
.champ input, .champ textarea { width: 100%; font: inherit; font-size: 17px; color: var(--bleu); background: var(--blanc); border: 1px solid var(--ligne-forte); border-radius: var(--rayon); padding: 11px 12px; min-height: 48px; }
.champ textarea { resize: vertical; min-height: 140px; }
.champ input:focus, .champ textarea:focus { outline: 3px solid var(--bleu); outline-offset: 1px; border-color: var(--bleu); }
.champ input[aria-invalid="true"], .champ textarea[aria-invalid="true"] { border-color: var(--rouge); border-width: 2px; }
.champ input::placeholder, .champ textarea::placeholder { color: #5f7484; opacity: 1; }
.piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin: 4px 0 12px; }
.erreur { color: var(--rouge); font-weight: 600; font-size: 15px; margin: 6px 0 0; }
.erreur-globale { margin-bottom: 12px; }
.succes { color: var(--vert); font-weight: 600; background: var(--blanc); border-left: 4px solid var(--vert); padding: 10px 12px; margin: 0 0 12px; }
.contact-direct h3 { font-family: var(--sans); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bleu-doux); margin-bottom: 6px; font-weight: 600; }

/* Pied de page */
.pied { margin-top: 24px; padding: 20px 0 48px; border-top: 1px solid var(--ligne); font-size: 14.5px; color: var(--bleu-doux); display: flex; flex-direction: column; gap: 4px; }
.pied-pdf { display: none; }

/* 404 */
.page-404 { padding-top: 48px; } .page-404 h1 { color: var(--bleu); font-size: 2rem; } .page-404 .actions { margin-top: 20px; }

/* ---- tablette ---- */
@media (min-width: 640px) {
  .barre-nom { display: block; }
  .frise-item { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
  .deux-colonnes { grid-template-columns: 1fr 1fr; }
}

/* ---- grand écran ---- */
@media (min-width: 820px) {
  .bande { padding: 52px 0 56px; }
  .entete { grid-template-columns: minmax(0, 1fr) 260px; align-items: center; gap: 40px; }
  .photo { order: 2; width: 240px; height: 240px; justify-self: end; }
  .photo img { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08); }
  .tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tuile { padding: 22px 18px 20px 0; border-top: 0 !important; }
  .tuile + .tuile { padding-left: 18px; }
  .tuile:nth-child(2n) { border-right: 1px solid var(--ligne); }
  .tuile:last-child { border-right: 0; }
  .principal > section { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .st { position: sticky; top: calc(var(--barre) + 20px); align-self: start; }
  .formulaire { padding: 24px; }
}

/* ---- impression ---- */
@media print {
  @page { margin: 16mm; }
  html { scroll-padding-top: 0; }
  body { font-size: 11pt; line-height: 1.45; color: #000; }
  .barre, .aller-contenu, .actions, .formulaire, .turnstile, .contact-intro { display: none !important; }
  .cadre { max-width: none; padding: 0; }
  .bande { background: none; color: #000; padding: 0 0 6mm; border-bottom: 2px solid #000; }
  .entete { display: flex; flex-direction: column; gap: 4mm; }
  .photo { width: 30mm; height: 30mm; order: -1; } .photo img { box-shadow: none; }
  .surtitre, .specialite, .accroche, .coordonnees, .coordonnees a, h1 { color: #000; }
  .badge { border-color: #000; }
  .coordonnees a { border-bottom: 0; }
  .chiffres { border: 0; }
  .tuiles { grid-template-columns: repeat(4, 1fr); }
  .tuile { border: 0 !important; border-top: 1px solid #000 !important; padding: 3mm 3mm 3mm 0; }
  .principal > section { display: block; padding: 7mm 0 0; border: 0; page-break-inside: auto; }
  .st h2 { border-top-color: #000; color: #000; margin-bottom: 3mm; }
  .st { position: static; }
  .frise-item, .tuile, .references li, .groupe { page-break-inside: avoid; break-inside: avoid; }
  .etiquettes li { border-color: #999; }
  a { color: #000; text-decoration: none; }
  .certifications { font-size: 9.5pt; }
  .pied-pdf { display: block; }
  .pied-pdf a::after { content: " — " attr(href); font-size: 9pt; }
}
