/* ============================================================
   cyberCampus Centre-Val de Loire — feuille de style
   Charte cybeRéponse, déclinaison BLEU (accent #0057B8)
   Couleurs & fontes institutionnelles — non négociables.
   ============================================================ */

/* === VARIABLES & DESIGN TOKENS === */

:root {
  /* Couleurs institutionnelles (charte cybeRéponse) */
  --navy:        #1A2744;
  --navy-2:      #2A3F6F;
  --grey-bg:     #F0F2F7;
  --grey-line:   #D0D4DF;
  --grey-text:   #6B7280;
  --white:       #FFFFFF;
  --paper:       #FAFBFC;

  /* Déclinaison cyberCampus — accent bleu (remplace le rouge) */
  --bleu:        #0057B8;   /* contraste 6.9:1 sur blanc — AA texte normal */
  --bleu-fonce:  #00427F;   /* état survol */
  --bleu-clair:  #7FB3FF;   /* accent sur fond navy — contraste 7:1 */

  --font-heading: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'IBM Plex Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   12px;

  --shadow-card:   0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.04);
  --shadow-raised: 0 6px 24px -8px rgba(26,39,68,.18);

  --max-width: 1120px;
  --section-padding: 80px;
}

/* === RESET === */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--navy);
  background-color: var(--paper);
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* === LIEN D'ÉVITEMENT (RGAA 12.6) === */

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--bleu);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  transition: top .1s;
}
.skip-link:focus { top: 0; }

/* === FOCUS VISIBLE GLOBAL (RGAA 10.7) === */

:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 2px;
}
.page-hero :focus-visible,
.site-footer :focus-visible,
.topbar :focus-visible {
  outline-color: var(--bleu-clair);
}

/* === TYPOGRAPHIE === */

h1, h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}
h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy);
}
h1 { font-size: clamp(36px, 5vw, 58px); }
h2 { font-size: clamp(26px, 3.5vw, 38px); }
h3 { font-size: clamp(17px, 2vw, 20px); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

/* === CONTENEUR === */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === EYEBROW === */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--bleu);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bleu);
  flex-shrink: 0;
}
.eyebrow--on-navy { color: var(--bleu-clair); }
.eyebrow--on-navy::before { background: var(--bleu-clair); }

/* === TOPBAR INSTITUTIONNEL === */

.topbar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px;
  color: rgba(255,255,255,.8);
}
.topbar .container {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}
.topbar__identity { font-weight: 500; letter-spacing: .02em; }
.topbar__links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar__links a {
  color: rgba(255,255,255,.8);
  transition: color 150ms;
}
.topbar__links a:hover { color: var(--white); }

/* === HEADER PRINCIPAL === */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-line);
}
.site-header .container {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .01em;
  color: var(--navy);
}
.brand__name b { color: var(--bleu); font-weight: 700; }
.brand__region {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--grey-text);
}
.header__aside {
  font-size: 13.5px;
  color: var(--navy-2);
}
.header__aside a {
  color: var(--navy-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.header__aside a:hover { color: var(--bleu); }

/* === HERO === */

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(56px, 9vw, 96px) 0;
}
.page-hero__inner { max-width: 760px; }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(127,179,255,.14);
  color: var(--bleu-clair);
  border: 1px solid var(--bleu-clair);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.status-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bleu-clair);
  flex-shrink: 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 20px; }
.page-hero__lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255,255,255,.82);
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* === BOUTONS === */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--bleu);
  color: var(--white);
  border-color: var(--bleu);
}
.btn--primary:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); }
.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--white); }

/* === SECTIONS === */

.section { padding: var(--section-padding) 0; }
.section--alt { background: var(--grey-bg); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head h2 {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--bleu);
  display: inline-block;
}
.section__lede { margin-top: 16px; color: var(--navy-2); }

/* === GRILLE AXES === */

.axes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.axe-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.axe-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--grey-bg);
  color: var(--bleu);
  display: flex;
  align-items: center;
  justify-content: center;
}
.axe-card__icon svg { width: 22px; height: 22px; }
.axe-card h3 { font-size: 17px; }
.axe-card p { font-size: 14px; color: var(--grey-text); margin: 0; }

.axe-card__ways {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.axe-card__ways li {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--navy-2);
}
.axe-card__dir {
  display: inline-block;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--bleu);
  background: rgba(0,87,184,.08);
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 6px;
  white-space: nowrap;
}
.axe-card__dir--rev {
  color: var(--navy-2);
  background: var(--grey-bg);
}

/* === BLOC CONTACT === */

.contact-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-left: 4px solid var(--bleu);
  border-radius: var(--radius-md);
  padding: 28px;
  max-width: 640px;
}
.contact-card h2 { font-size: 22px; margin-bottom: 12px; }
.contact-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.contact-list a {
  color: var(--navy-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-list a:hover { color: var(--bleu); }

/* === PARTENAIRES === */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}
.partners-grid li { display: flex; }
.partner-cell {
  flex: 1;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-right: 1px solid var(--grey-line);
  border-bottom: 1px solid var(--grey-line);
  background: var(--white);
  transition: background-color 150ms ease;
}
.partner-cell img {
  max-height: 52px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .8;
  transition: filter 150ms ease, opacity 150ms ease;
}
/* logos portrait (préfet) : un peu plus hauts pour équilibrer */
.partner-cell img[src*="prefecture"] { max-height: 68px; }
.partner-cell:hover { background: var(--grey-bg); }
.partner-cell:hover img,
.partner-cell:focus-visible img { filter: grayscale(0); opacity: 1; }

.partners-subtitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--grey-text);
  margin-bottom: 12px;
}
.partners-grid--4 { grid-template-columns: repeat(4, 1fr); }
.partners-grid--text .partner-cell {
  min-height: 84px;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--navy-2);
  text-align: center;
  line-height: 1.4;
}

/* === DEUX MISSIONS === */

.mission-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.mini-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-top: 3px solid var(--grey-line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.mini-card--accent { border-top-color: var(--bleu); }
.mini-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--grey-text);
  margin-bottom: 8px;
}
.mini-card h3 { font-size: 18px; margin-bottom: 8px; }
.mini-card p { font-size: 15px; line-height: 1.55; color: var(--navy-2); }
.mini-card__link { margin-top: 12px; }
.mini-card__link a {
  font-size: 14px;
  font-weight: 600;
  color: var(--bleu);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mini-card__link a:hover { color: var(--bleu-fonce); }

/* === GRILLE MISSIONS / ANCRAGE === */

.feature-grid,
.anchor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  padding: 0;
}
.feature-grid li,
.anchor-list li {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-md);
  padding: 22px;
}
.feature-grid h3,
.anchor-list h3 {
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bleu);
}
.feature-grid p,
.anchor-list p { font-size: 15px; line-height: 1.55; color: var(--navy-2); margin: 0; }

/* === FRISE === */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  max-width: 720px;
}
.timeline__item {
  position: relative;
  padding: 0 0 24px 28px;
  border-left: 2px solid var(--grey-line);
}
.timeline__item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--grey-line);
}
.timeline__item--done::before { background: var(--bleu); border-color: var(--bleu); }
.timeline__item--current::before { border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(0,87,184,.15); }
.timeline__when {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 4px;
}
.timeline__item p { font-size: 15px; line-height: 1.55; color: var(--navy-2); margin: 0; }

/* === FOOTER === */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  border-top: 4px solid var(--bleu);
  padding: 56px 0 0;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer__baseline { font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; color: rgba(255,255,255,.85); }
.site-footer__addr { font-size: 13.5px; color: rgba(255,255,255,.66); line-height: 1.6; }
.site-footer__col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.62);
  margin-bottom: 14px;
}
.site-footer__links { display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a {
  font-size: 14.5px;
  color: rgba(255,255,255,.82);
  transition: color 150ms ease;
}
.site-footer__links a:hover { color: var(--white); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__copy { font-size: 13.5px; color: rgba(255,255,255,.62); }
.site-footer__legal { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer__legal a {
  font-size: 13.5px;
  color: rgba(255,255,255,.66);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer__legal a:hover { color: var(--white); }

/* === PAGES LÉGALES === */

.legal-hero {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 40px;
}
.legal-hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
}
.legal-hero h1 { color: var(--white); }
.legal-hero p { margin-top: 14px; color: rgba(255,255,255,.8); max-width: 640px; }

.legal-content { max-width: 760px; }
.legal-content h2 {
  font-size: 24px;
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grey-line);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 14px; color: var(--navy); }
.legal-content a {
  color: var(--bleu);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--bleu-fonce); }

.legal-dl { margin: 0 0 16px; }
.legal-dl dt {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--grey-text);
  margin-top: 12px;
}
.legal-dl dd { margin: 2px 0 0; }

.content-list { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.content-list li { list-style: disc; line-height: 1.6; }

.conformite-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
.conformite-badge svg { width: 20px; height: 20px; flex-shrink: 0; }
.conformite-badge--non-conforme {
  background: rgba(0,87,184,.08);
  color: var(--bleu-fonce);
  border: 1px solid var(--bleu);
}

/* === UTILITAIRES === */

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

/* === RESPONSIVE === */

@media (max-width: 900px) {
  :root { --section-padding: 56px; }
  .axes-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .mission-pair { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .axes-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .header__aside { display: none; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
