/* Site de RIKDA Diagnostics — feuille unique, sans dépendance.
   Jetons : charte graphique Fondation V2. Le « bleu web » (#2B70AC, contraste
   5,2:1 sur blanc) sert aux liens, aux boutons et aux petits textes ; le bleu
   de marque (#3583C4, 4,0:1) est réservé aux titres. Le vert n'est jamais une
   couleur de texte : un bouton vert porte un texte encre. */

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

:root {
  --bleu: #3583C4;
  --bleu-web: #2B70AC;
  --vert: #59B763;
  --encre: #1F2D3A;
  --ardoise: #5B6B7A;
  --pale: #F4F7FA;
  --nuage: #D5DEE7;
  --doux: #E8F1F9;
  --bord-saisie: #8A99A8;
  --blanc: #FFFFFF;
  --rayon: 16px;
  --largeur: 1200px;
}

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

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

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
a { color: var(--bleu-web); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; border-radius: 4px; }
.sur-fonce :focus-visible, .sur-fonce:focus-visible { outline-color: var(--blanc); }

/* ---------- Mise en page ---------- */
.cadre { max-width: var(--largeur); margin: 0 auto; padding: 0 32px; }
.cadre--etroit { max-width: 860px; }
.section { padding: 72px 0; }
.section--serree { padding: 56px 0; }
.section--pale { background: var(--pale); }
.section--bleue { background: var(--bleu-web); color: var(--blanc); }
.pile { display: flex; flex-direction: column; gap: 16px; }
.pile--large { gap: 36px; }
.pile--serree { gap: 8px; }
.rangee { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.rangee--entre { justify-content: space-between; align-items: flex-end; gap: 16px; }
.deux { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.deux--haut { align-items: flex-start; }
.deux > * { flex: 1 1 400px; min-width: 0; }
.deux > .deux__large { flex: 2 1 540px; }
.deux > .deux__etroit { flex: 1 1 300px; }
.grille { display: flex; flex-wrap: wrap; gap: 24px; }
.grille > * { flex: 1 1 300px; min-width: 0; }
.grille--fine > * { flex: 1 1 220px; }

/* ---------- Texte ---------- */
.surtitre { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ardoise); }
.titre-1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.12; font-weight: 700; color: var(--bleu); }
.titre-2 { font-size: clamp(26px, 3.4vw, 32px); line-height: 1.2; font-weight: 700; color: var(--bleu); }
.titre-3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.section--bleue .titre-2 { color: var(--blanc); }
.chapeau { font-size: 18px; max-width: 780px; }
.discret { color: var(--ardoise); font-size: 15px; }
.note { color: var(--ardoise); font-size: 13px; }
.lien-fort { font-weight: 600; display: inline-block; padding: 12px 0; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 10px;
  border: 2px solid var(--bleu-web); background: var(--bleu-web); color: var(--blanc);
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
}
.bouton:hover { filter: brightness(0.94); }
.bouton--don { background: var(--vert); border-color: var(--vert); color: var(--encre); }
.bouton--contour { background: var(--blanc); color: var(--bleu-web); }
.bouton--blanc { background: var(--blanc); border-color: var(--blanc); color: var(--bleu-web); }
.bouton--large { min-height: 52px; font-size: 16px; font-weight: 700; }

/* ---------- En-tête ---------- */
.evitement { position: absolute; left: -9999px; }
.evitement:focus { position: static; }
.bandeau { background: var(--encre); color: var(--blanc); font-size: 13px; }
.bandeau a { color: var(--blanc); padding: 10px 4px; display: inline-block; }
.bandeau__ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; }
.bandeau__langue { text-decoration: none; }
.bandeau__langue--courante { font-weight: 700; }
.entete { background: var(--blanc); border-bottom: 1px solid var(--nuage); }
.entete__ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 88px; }
.entete__logo { display: flex; }
.entete__logo img { height: 84px; width: auto; display: block; }
.menu { display: flex; flex-wrap: wrap; gap: 4px 26px; align-items: center; }
.menu__lien { color: var(--encre); text-decoration: none; font-weight: 500; font-size: 15px; padding: 12px 0; }
.menu__lien:hover { color: var(--bleu-web); }
.menu__lien--courant { color: var(--bleu-web); font-weight: 700; }

/* ---------- Tête de page ---------- */
.tete { background: var(--pale); padding: 28px 0 48px; }
.fil { font-size: 14px; color: var(--ardoise); display: flex; flex-wrap: wrap; gap: 8px; }
.fil > * { padding: 8px 0; }

/* ---------- Cartes ---------- */
.carte { background: var(--blanc); border: 1px solid var(--nuage); border-radius: var(--rayon); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
a.carte { text-decoration: none; color: var(--encre); }
a.carte:hover { border-color: var(--bleu-web); }
.carte--bleue { background: var(--bleu-web); border-color: var(--bleu-web); color: var(--blanc); }
.carte--pale { background: var(--pale); border-color: var(--pale); }
.carte--verte { border: 2px solid var(--vert); }
.carte--serree { padding: 20px; gap: 6px; }
.carte--courante { border: 2px solid var(--bleu-web); }
.carte--avenir { border-style: dashed; }
.carte__pied { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; color: var(--bleu-web); }
.pastille { width: 52px; height: 52px; border-radius: 14px; background: var(--doux); color: var(--bleu-web); display: flex; align-items: center; justify-content: center; flex: none; }
.icone { flex: none; }
.illustration { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); display: block; }
.illustration--large { aspect-ratio: 16 / 7; }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.ligne-icone { display: flex; gap: 14px; align-items: flex-start; }

.article-carte { padding: 14px 14px 20px; gap: 12px; }
.article-carte img { aspect-ratio: 3 / 2; border-radius: 10px; }
.article-carte > :not(img) { padding: 0 6px; }
.article-carte__titre { font-size: 19px; line-height: 1.35; font-weight: 700; }
.article-carte__titre a { color: var(--encre); text-decoration: none; }
.article-carte__titre a:hover { text-decoration: underline; }
.etiquette { align-self: flex-start; background: var(--doux); color: var(--encre); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }

/* ---------- Blocs propres à des pages ---------- */
.chiffres { display: flex; flex-wrap: wrap; gap: 36px; }
.chiffres > * { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.chiffres__nombre { font-size: 40px; font-weight: 700; line-height: 1.1; }
.temoignage { font-size: 24px; line-height: 1.45; font-weight: 500; }
.etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.etapes > li { flex: 1 1 220px; display: flex; flex-direction: column; gap: 12px; }
.etapes__numero { width: 44px; height: 44px; border-radius: 50%; background: var(--bleu-web); color: var(--blanc); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.faq details { border-bottom: 1px solid var(--nuage); padding: 6px 0; }
.faq summary { font-weight: 600; font-size: 17px; min-height: 48px; display: flex; align-items: center; cursor: pointer; }
.faq p { margin: 0 0 16px; color: var(--ardoise); max-width: 820px; }
.liste-liens a { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--nuage); text-decoration: none; color: var(--encre); font-weight: 600; }
.liste-liens a:hover { color: var(--bleu-web); }
.emplacement { border: 1px dashed var(--nuage); border-radius: 12px; min-height: 84px; display: flex; align-items: center; justify-content: center; color: var(--ardoise); font-size: 13px; padding: 12px; text-align: center; }
.initiales { width: 96px; height: 96px; border-radius: 50%; background: var(--doux); color: var(--bleu-web); font-weight: 700; font-size: 30px; display: flex; align-items: center; justify-content: center; flex: none; }
.campagne { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; border: 1px solid var(--nuage); border-radius: 14px; padding: 18px; background: var(--blanc); }
.campagne__date { background: var(--doux); border-radius: 10px; padding: 10px 14px; font-weight: 700; }

/* ---------- Contenus longs (articles, pages légales) ---------- */
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 800px; }
.prose h2 { font-size: 24px; line-height: 1.25; font-weight: 700; color: var(--bleu); margin-top: 18px; scroll-margin-top: 24px; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; }
.prose ul, .prose ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.prose .essentiel { background: var(--doux); border-radius: var(--rayon); padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.prose .avertissement { background: var(--pale); border-radius: var(--rayon); padding: 22px 26px; font-size: 15px; }
.prose .avertissement p, .prose .sources p { font-size: 15px; }
.prose .sources { border-top: 1px solid var(--nuage); padding-top: 18px; color: var(--ardoise); }
.tableau { overflow-x: auto; border: 1px solid var(--nuage); border-radius: 14px; }
.tableau table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; line-height: 1.5; }
.tableau th { text-align: left; padding: 14px 16px; background: var(--bleu-web); color: var(--blanc); font-weight: 600; }
.tableau td { padding: 14px 16px; border-top: 1px solid var(--nuage); vertical-align: top; }
.tableau td:first-child { font-weight: 600; }
.legal { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.legal__menu { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.legal__menu a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; text-decoration: none; color: var(--encre); font-size: 15px; font-weight: 500; }
.legal__menu a[aria-current="page"] { background: var(--doux); font-weight: 700; }
.legal__corps { flex: 999 1 560px; min-width: 0; }

/* ---------- Formulaires ---------- */
.formulaire { display: flex; flex-direction: column; gap: 18px; }
.formulaire--encadre { border: 1px solid var(--nuage); border-radius: 20px; padding: 36px; }
.champs { display: flex; flex-wrap: wrap; gap: 16px; }
.champ { display: flex; flex-direction: column; gap: 8px; flex: 1 1 240px; }
.champ label { font-size: 14px; font-weight: 600; }
.champ input, .champ select, .champ textarea {
  min-height: 48px; width: 100%; border: 1px solid var(--bord-saisie); border-radius: 10px;
  padding: 0 14px; font: inherit; font-size: 15px; background: var(--blanc); color: var(--encre);
}
.champ textarea { padding: 14px; resize: vertical; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message { border-radius: 12px; padding: 16px 20px; font-weight: 500; }
.message--succes { background: #E6F5E8; border: 1px solid var(--vert); }
.message--erreur { background: #FDECEC; border: 1px solid #B42318; }
.message ul { margin: 8px 0 0; padding-left: 20px; font-weight: 400; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: var(--blanc); padding: 56px 0 28px; }
.pied a { color: var(--blanc); }
.pied__colonnes { display: flex; flex-wrap: wrap; gap: 36px; }
.pied__colonne { flex: 1 1 170px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pied__colonne--large { flex: 2 1 300px; gap: 12px; }
.pied__colonne a { text-decoration: none; padding: 4px 0; }
.pied__colonne a:hover { text-decoration: underline; }
.pied__titre { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.pied__logo { height: 96px; width: auto; align-self: flex-start; margin-left: -16px; }
.pied__legal { border-top: 1px solid #3A4A59; margin-top: 32px; padding-top: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }

/* ---------- Petits écrans ---------- */
@media (max-width: 720px) {
  .cadre { padding: 0 20px; }
  .section { padding: 48px 0; }
  .section--serree { padding: 40px 0; }
  .deux { gap: 28px; }
  .entete__logo img { height: 68px; }
  .entete__ligne { padding: 6px 0 10px; }
  .menu { gap: 0 18px; }
  .formulaire--encadre { padding: 22px; }
  .temoignage { font-size: 20px; }
  .bouton { width: 100%; }
  .bandeau .bouton, .menu .bouton { width: auto; }
}

@media print {
  .bandeau, .menu, .pied, .bouton { display: none; }
}

/* ---------- Propre au site RIKDA Diagnostics ---------- */
.bouton--surbleu { background: transparent; border-color: var(--blanc); color: var(--blanc); }
.attente { display: flex; gap: 14px; align-items: flex-start; background: var(--doux); border-radius: 14px; padding: 18px 20px; color: var(--encre); max-width: 520px; }
.attente a { color: var(--bleu-web); }
.onglets { display: flex; flex-wrap: wrap; gap: 12px; }
.onglets a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 2px solid var(--bleu-web); color: var(--bleu-web); background: var(--blanc); font-weight: 600; font-size: 15px; text-decoration: none; }
.carte--image { padding: 0; overflow: hidden; gap: 0; }
.carte--image > img { border-radius: 0; aspect-ratio: 16 / 9; }
.carte__corps { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.liste { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.prose img { width: 100%; height: auto; border-radius: var(--rayon); }
@media (max-width: 720px) {
  .entete .bouton { width: auto; }
}

/* ---------- Équipe ---------- */
.membre { flex-direction: row; align-items: flex-start; gap: 18px; }
.membre__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.membre__fonction { font-weight: 600; color: var(--bleu-web); }

/* ---------- En-tête v2 ---------- */
.entete { position: relative; z-index: 10; }
.entete__ligne { flex-wrap: nowrap; min-height: 84px; gap: 28px; }
.entete__logo img { height: 64px; }
.menu { flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-end; gap: 0 24px; }
.menu__lien { white-space: nowrap; font-size: 15px; position: relative; }
.menu__lien--courant::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; border-radius: 2px; background: var(--vert); }
.entete__actions { flex: none; flex-wrap: nowrap; }
.menu-mobile { display: none; }
.menu-mobile summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--nuage); border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--encre); }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile__barres { width: 18px; height: 12px; display: inline-grid; align-content: space-between; }
.menu-mobile__barres i { display: block; height: 2px; background: currentColor; border-radius: 1px; }
.menu-mobile__panneau { position: absolute; left: 0; right: 0; top: 100%; background: var(--blanc); border-bottom: 1px solid var(--nuage); box-shadow: 0 18px 30px rgba(31, 45, 58, 0.12); padding: 8px 20px 20px; display: flex; flex-direction: column; }
.menu-mobile__panneau a { padding: 14px 0; border-bottom: 1px solid var(--pale); color: var(--encre); text-decoration: none; font-weight: 600; }
@media (max-width: 1180px) {
  .menu { display: none; }
  .menu-mobile { display: block; margin-left: auto; }
  .entete__ligne { gap: 12px; }
}
@media (max-width: 720px) {
  .entete__logo img { height: 52px; }
  .entete__actions { display: none; }
  .entete__ligne { min-height: 72px; padding: 0 20px; }
}

/* ---------- Héros v2 ---------- */
.heros { position: relative; overflow: hidden; color: var(--blanc); padding: 96px 0 104px;
  background: radial-gradient(1200px 600px at 85% 20%, rgba(89, 183, 99, 0.18), transparent 60%),
              linear-gradient(135deg, #12324F 0%, #1C4A73 45%, #2B70AC 100%); }
.heros::after { content: ""; position: absolute; right: -120px; top: 50%; width: 620px; height: 620px; transform: translateY(-50%);
  background: url("/img/symbole-blanc.svg") center / contain no-repeat; opacity: 0.06; pointer-events: none; }
.heros__grille { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.heros .surtitre { color: #CFE2F3; }
.heros__titre { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.heros__titre em { font-style: normal; color: #8FD39A; }
.heros__chapeau { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: #E6F0F9; max-width: 620px; }
.heros__devise { margin: 0; padding-left: 16px; border-left: 3px solid var(--vert); font-style: italic; color: #CFE2F3; font-size: 16px; }
.bouton--contour-blanc { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: var(--blanc); }
.heros__piliers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.heros__pilier { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; backdrop-filter: blur(4px); }
.heros__pilier .pastille { background: rgba(255, 255, 255, 0.12); color: var(--blanc); width: 46px; height: 46px; border-radius: 12px; }
.heros__pilier strong { font-size: 18px; }
.heros__pilier span { font-size: 14px; line-height: 1.55; color: #D6E6F4; }
@media (max-width: 980px) {
  .heros { padding: 64px 0 72px; }
  .heros__grille { grid-template-columns: 1fr; gap: 40px; }
  .heros::after { width: 420px; height: 420px; right: -160px; top: 30%; }
}
@media (max-width: 520px) { .heros__piliers { grid-template-columns: 1fr; } }

/* ---------- Finitions globales ---------- */
.titre-2 { letter-spacing: -0.01em; }
.carte { box-shadow: 0 1px 2px rgba(31, 45, 58, 0.04); transition: box-shadow 0.2s, border-color 0.2s; }
a.carte:hover { box-shadow: 0 12px 28px rgba(31, 45, 58, 0.10); }
@media (prefers-reduced-motion: reduce) { .carte { transition: none; } }


.heros__note { margin: 0; font-size: 14px; color: #CFE2F3; }

/* ---------- Partenaires ---------- */
.partenaires { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.partenaire { background: var(--blanc); border: 1px solid var(--nuage); border-radius: var(--rayon); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.partenaire__lien { align-self: flex-start; display: inline-flex; min-height: 44px; align-items: center; }
.partenaire__logo { height: 44px; width: auto; max-width: 100%; object-fit: contain; display: block; }
@media (max-width: 860px) { .partenaires { grid-template-columns: 1fr; } }

/* ---------- Mobile : en-tête collant, bandeau compact, menu plein écran ---------- */
html { scroll-padding-top: 96px; }
.entete { position: sticky; top: 0; }
.menu-mobile summary { transition: background-color 0.15s, border-color 0.15s; }
.menu-mobile[open] summary { background: var(--doux); border-color: var(--bleu-web); color: var(--bleu-web); }
.menu-mobile__barres i { transition: transform 0.2s, opacity 0.2s; }
.menu-mobile[open] .menu-mobile__barres i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-mobile[open] .menu-mobile__barres i:nth-child(2) { opacity: 0; }
.menu-mobile[open] .menu-mobile__barres i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.menu-mobile__panneau { max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 18px 30px rgba(31, 45, 58, 0.12), 0 0 0 100vmax rgba(18, 50, 79, 0.45); clip-path: inset(0 0 -100vmax 0); }
.menu-mobile__panneau a { min-height: 48px; display: flex; align-items: center; }
.menu-mobile__panneau a[aria-current="page"] { color: var(--bleu-web); }
html:has(.menu-mobile[open]) { overflow: hidden; }
@media (max-width: 720px) {
  .bandeau__ligne { flex-wrap: nowrap; align-items: center; gap: 12px; }
  .bandeau__ligne > span:first-child { flex: 1 1 auto; min-width: 0; line-height: 1.4; padding: 6px 0; }
  .bandeau__ligne > span:last-child { flex: none; }
  .bandeau a { padding: 8px 4px; }
}
@media (prefers-reduced-motion: reduce) { .menu-mobile summary, .menu-mobile__barres i { transition: none; } }

/* ---------- Équipe par métiers ---------- */
.equipe__formation { margin: 8px 0 0; padding-left: 16px; border-left: 3px solid var(--vert); font-weight: 600; max-width: 820px; }

/* ---------- Partenaires cliquables ---------- */
a.partenaire { text-decoration: none; color: inherit; transition: box-shadow 0.2s, border-color 0.2s; }
a.partenaire:hover { border-color: var(--bleu-web); box-shadow: 0 12px 28px rgba(31, 45, 58, 0.10); }
