/* ==========================================================================
   MECADD — feuille de style
   1. Variables & base      4. Page « Mon parcours »
   2. Barre de navigation   5. Pied de page
   3. Pages plaquette       6. Responsive
   ========================================================================== */


/* Polices (auto-hébergées, licence OFL) -------------------------------------- */
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url("assets/fonts/poppins-300.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("assets/fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("assets/fonts/poppins-700.woff") format("woff"); }
@font-face { font-family: "Heros Cn"; font-weight: 700; font-display: swap; src: url("assets/fonts/heros-cn-700.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-600.woff") format("woff"); }

/* 1. Variables & base ------------------------------------------------------ */
:root {
  --navy: #18236b;
  --orange: #f15a24;
  --violet: #403a78;   /* titres de la plaquette */
  --ink: #3f3b6a;      /* texte courant de la plaquette */
  --accent: #e5541b;   /* orange des icônes et titres */
  --max: 1050px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* compense la barre fixe pour les ancres */
}

body {
  margin: 0;
  background: #dfe4e9;
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; }

/* Texte lisible par les lecteurs d'écran et les moteurs de recherche,
   invisible à l'écran (les pages plaquette sont des images). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

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

/* 2. Barre de navigation --------------------------------------------------- */
.floating-bar {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1050px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 30px rgba(12, 25, 65, .13);
  border: 1px solid rgba(24, 35, 107, .08);
  backdrop-filter: blur(10px);
}

.mini-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.mini-brand img {
  display: block;
  width: auto;
  height: 34px;
  max-width: 155px;
  object-fit: contain;
  transition: transform .18s ease;
}
.mini-brand:hover img { transform: scale(1.06); }

.floating-bar nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.floating-bar nav a {
  display: inline-block;
  text-decoration: none;
  transition: transform .18s ease, color .18s ease;
}
.floating-bar nav a:hover {
  color: var(--orange);
  transform: scale(1.06);
}

.contact-btn {
  background: var(--orange);
  color: #fff !important;
  padding: 9px 13px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 36px;
  padding: 7px 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 3. Pages de la plaquette ---------------------------------------------- */
.brochure { padding: 86px 18px 30px; }

.brochure-page,
.parcours-page {
  position: relative;
  width: min(var(--max), 100%);
  margin: 0 auto 26px;
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(10, 22, 55, .16);
}
.brochure-page { background: #fff; }


/* 3b. Pages reconstruites en HTML (Accueil, Expérience) ---------------------
   Mise en page « à l'échelle » : chaque élément est placé avec --x / --y / --w
   (en unités de la maquette 993 px) et tout suit la largeur de la page via --u.
   Sur mobile, la page repasse en flux normal avec des tailles lisibles. */
.rebuilt { container-type: inline-size; }
.rebuilt .canvas {
  --u: calc(100cqw / 993);
  position: relative;
  overflow: hidden;
  color: var(--ink);
}
.rebuilt .at {
  position: absolute;
  left: calc(var(--x, 0) * var(--u));
  top: calc(var(--y, 0) * var(--u));
  width: calc(var(--w) * var(--u));
}
:where(.rebuilt) :where(h1, h2, h3, h4, p, ul) { margin: 0; padding: 0; }
:where(.rebuilt) :where(ul) { list-style: none; }
.rebuilt img { display: block; max-width: 100%; height: auto; }

/* ---- Accueil */
.page-home .canvas { aspect-ratio: 993 / 1404; background: #c6d6e6; }
.home-bg {
  position: absolute; inset: 0;
  background: url("assets/fond-accueil.webp") center / 100% 100% no-repeat;
}
.home-photo {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 70px);
          mask-image: linear-gradient(to bottom, transparent, #000 70px);
}
.home-logo img { width: 100%; }

.slogan {
  display: flex; flex-direction: column;
  font: 700 calc(28 * var(--u)) / calc(56 * var(--u)) "Poppins", Arial, sans-serif;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: var(--violet);
}
.slogan span { padding-left: calc(17 * var(--u)); }
.slogan .hl {
  margin: calc(1 * var(--u)) 0;
  background: var(--orange);
  color: #fff;
  margin-top: calc(-2 * var(--u));
  font-size: calc(35 * var(--u));
  line-height: calc(58 * var(--u));
  letter-spacing: .07em;
  white-space: nowrap;
}
.home-arrow { height: auto; }

.home-list, .home-lead {
  font: 700 calc(16.2 * var(--u)) / calc(25 * var(--u)) "Poppins", Arial, sans-serif;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--violet);
}
.home-list li { position: relative; padding-left: calc(18 * var(--u)); }
.home-list li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: calc(9 * var(--u)); height: calc(9 * var(--u));
  border-radius: 50%; background: var(--orange);
}
.home-lead { text-align: justify; font-weight: 700; }

.home-values {
  height: calc(130 * var(--u));
  font: 700 calc(18.6 * var(--u)) / calc(28 * var(--u)) "Poppins", Arial, sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase; text-align: center;
  color: var(--violet);
}
.home-values li {
  position: absolute;
  left: calc((var(--cx) - 100) * var(--u));
  width: calc(200 * var(--u));
  display: grid;
  grid-template-rows: calc(80 * var(--u)) auto;
  justify-items: center;
}
.home-values img { height: auto; width: calc(var(--w) * var(--u)); align-self: center; margin-top: calc(3 * var(--u)); }
.home-values span { margin-top: calc(-9 * var(--u)); }


/* ---- Expertise */
.page-expertise .canvas { aspect-ratio: 993 / 1404; background: #fff; }
.exp2-bg {
  position: absolute; inset: 0 0 auto 0;
  height: calc(1068 * var(--u));
  background: url("assets/photo-expertise.webp") center top / 100% auto no-repeat;
}
.exp2-top { display: contents; }
.exp2-title { color: #fff; font-family: "Poppins", Arial, sans-serif; text-transform: uppercase; }
.exp2-title span { display: block; }
.exp2-title .l1 { font-size: calc(68 * var(--u)); font-weight: 700; line-height: calc(70 * var(--u)); letter-spacing: .01em; }
.exp2-title .l2 { margin-top: calc(3 * var(--u)); margin-left: calc(-2 * var(--u)); font-size: calc(41 * var(--u)); font-weight: 500; line-height: calc(57 * var(--u)); letter-spacing: .03em; }
.exp2-intro {
  font: 600 calc(16.3 * var(--u)) / calc(25 * var(--u)) "Inter", Arial, sans-serif;
  text-align: justify; text-align-last: left;
  color: var(--violet);
}
.exp2-box {
  height: calc(var(--h) * var(--u));
  padding: calc(52 * var(--u)) calc(30 * var(--u)) 0;
  background: rgba(255, 255, 255, .74);
  color: var(--violet);
}
.exp2-box h3 { font: 700 calc(26.4 * var(--u)) / calc(37 * var(--u)) "Poppins", Arial, sans-serif; text-transform: uppercase; letter-spacing: -.005em; }
.exp2-box p { margin-top: calc(15 * var(--u)); font: 400 calc(15.4 * var(--u)) / calc(22.6 * var(--u)) "Inter", Arial, sans-serif; letter-spacing: .01em; text-align: justify; }
.exp2-box.box-right h3 { text-align: center; padding: 0 calc(10 * var(--u)); }
.exp2-box.box-right { padding: calc(14 * var(--u)) calc(40 * var(--u)) 0 calc(33 * var(--u)); }
.exp2-box.box-right h3 { max-width: calc(210 * var(--u)); margin: 0 auto; }
.exp2-box.box-right p { margin-top: calc(16 * var(--u)); }

.services {
  height: calc(150 * var(--u));
  font: 700 calc(18.2 * var(--u)) / calc(26 * var(--u)) "Poppins", Arial, sans-serif;
  text-transform: uppercase; text-align: center; color: var(--accent);
}
.services li {
  position: absolute; left: calc((var(--cx) - 100) * var(--u)); width: calc(200 * var(--u));
  display: grid; grid-template-rows: calc(88 * var(--u)) auto; justify-items: center;
}
.services img { align-self: center; width: calc(var(--w) * var(--u)); height: auto; margin-top: calc(9 * var(--u)); }
.services span { margin-top: calc(13 * var(--u)); }


/* ---- Références */
.page-refs .canvas { aspect-ratio: 993 / 1404; background: #c8d5e6; }
.refs-bg {
  position: absolute; inset: 0 0 auto 0;
  height: calc(1090 * var(--u));
  background: url("assets/fond-references.webp") center / 100% 100% no-repeat;
}
.refs-logos li { height: calc(var(--h) * var(--u)); }
.refs-logos img { width: 100%; height: 100%; object-fit: contain; }

.refs-intro { color: var(--violet); }
.refs-intro svg { width: 100%; height: auto; overflow: visible; fill: var(--violet); font-family: "Heros Cn", "Arial Narrow", Arial, sans-serif; font-weight: 700; stroke: var(--violet); stroke-width: 1.2; }
.refs-intro p { margin-top: calc(6 * var(--u)); font: 600 calc(11.7 * var(--u)) / calc(16 * var(--u)) "Inter", Arial, sans-serif; text-align: justify; }

.why-title svg { display: block; width: 100%; height: auto; overflow: visible; font-family: "Heros Cn", "Arial Narrow", Arial, sans-serif; font-weight: 700; }
.why-title svg { fill: #fff; stroke: #fff; stroke-width: 3.5; stroke-linejoin: round; }

.values { height: calc(180 * var(--u)); color: var(--violet); text-align: center; }
.values li {
  position: absolute; left: calc((var(--cx) - var(--iw) / 2) * var(--u)); width: calc(var(--iw) * var(--u));
  display: grid; grid-template-rows: calc(72 * var(--u)) auto auto auto; justify-items: center;
}
.values img { width: calc(var(--w) * var(--u)); height: auto; }
.values li > img { align-self: center; }
.values h3 { margin-top: calc(-5 * var(--u)); white-space: nowrap; font: 700 calc(15.2 * var(--u)) / calc(22 * var(--u)) "Poppins", Arial, sans-serif; text-transform: uppercase; }
.values p { max-width: calc(var(--pw, 120) * var(--u)); margin-top: calc(4 * var(--u)); font: 400 calc(11.8 * var(--u)) / calc(16 * var(--u)) "Inter", Arial, sans-serif; }

/* Confiance : bloc isolé, centré sous les autres valeurs */
.trust { z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--violet); }
.trust img { width: calc(var(--w) * var(--u)); height: auto; }
.trust h3 { margin-top: calc(7 * var(--u)); font: 700 calc(15.2 * var(--u)) / calc(22 * var(--u)) "Poppins", Arial, sans-serif; text-transform: uppercase; }
.trust p { margin-top: calc(2 * var(--u)); font: 500 calc(15 * var(--u)) / calc(22.5 * var(--u)) "Poppins", Arial, sans-serif; letter-spacing: -.005em; }
.trust a { text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.trust a:hover { color: var(--orange); }

.refs-photo {
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60px);
          mask-image: linear-gradient(to bottom, transparent, #000 60px);
}
.contact { height: calc(var(--h) * var(--u)); background: rgb(73, 78, 113); color: #fff; font-style: normal; }
.contact p { position: absolute; margin: 0; }
.contact .name { left: calc(78 * var(--u)); top: calc(34 * var(--u)); font: 700 calc(19.5 * var(--u)) / calc(28 * var(--u)) "Poppins", Arial, sans-serif; text-transform: uppercase; letter-spacing: -.005em; }
.contact .line { left: 0; width: 100%; display: flex; align-items: center; font: 500 calc(17.5 * var(--u)) / calc(28 * var(--u)) "Poppins", Arial, sans-serif; }
.contact .line img { position: absolute; width: calc(var(--iw, 24) * var(--u)); height: auto; }
.contact .tel { top: calc(91 * var(--u)); }
.contact .mail { top: calc(153 * var(--u)); }
.contact .zone { top: calc(209 * var(--u)); align-items: flex-start; font: 500 calc(21 * var(--u)) / calc(29 * var(--u)) "Poppins", Arial, sans-serif; }
.contact .tel img { left: calc(45 * var(--u)); } .contact .mail img { left: calc(41 * var(--u)); } .contact .zone img { left: calc(40 * var(--u)); top: calc(-1 * var(--u)); }
.contact .line a, .contact .line span { margin-left: calc(78 * var(--u)); text-decoration: none; transition: color .18s ease; }
.contact a:hover { color: #ff9b72; }

/* ---- Expérience */
.page-exp .canvas {
  aspect-ratio: 993 / 1404;
  background: linear-gradient(#d9d9d9 0 76.07%, #fff 0);
}
.exp-title {
  font: 700 calc(26 * var(--u)) / calc(35 * var(--u)) "Poppins", Arial, sans-serif;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--violet);
}
.exp-title .t-orange { color: var(--accent); }
.exp-title .t-violet { color: var(--violet); }
.exp-map { height: auto; }

.stat-num {
  font: 300 calc(118 * var(--u)) / calc(100 * var(--u)) "Poppins", Arial, sans-serif;
  color: var(--accent);
}
.stat-num { font-size: calc(26 * var(--u)); }
.stat-num { margin-top: calc(33 * var(--u)); height: calc(100 * var(--u)); }
.stat-num span { font-size: calc(118 * var(--u)); line-height: 0; margin-right: calc(-10 * var(--u)); vertical-align: calc(-7 * var(--u)); }
.stat-text {
  margin-top: calc(-8 * var(--u));
  font: 400 calc(12.7 * var(--u)) / calc(17.8 * var(--u)) "Inter", Arial, sans-serif;
  text-align: justify;
}
.stat-text strong { font-weight: 400; }

.exp-block { color: var(--accent); }
.exp-block img { width: calc(var(--w) * var(--u)); height: auto; }
.exp-block h3.pl { margin-left: calc(4 * var(--u)); }
.exp-block h3.pl2 { margin-left: calc(2 * var(--u)); }
.exp-block h3.pl + p { margin-left: calc(4 * var(--u)); }
.exp-block h3.pl2 + ul { margin-left: calc(2 * var(--u)); }
.exp-block h3 {
  margin-top: calc(22 * var(--u));
  font: 700 calc(15 * var(--u)) / calc(22 * var(--u)) "Poppins", Arial, sans-serif;
  text-transform: uppercase;
}
.exp-block p, .exp-block li {
  font: 400 calc(12.7 * var(--u)) / calc(17.8 * var(--u)) "Inter", Arial, sans-serif;
}
.exp-block p { margin-top: calc(20 * var(--u)); text-align: justify; }
.exp-block ul { margin-top: calc(18 * var(--u)); }
.exp-block li { position: relative; padding-left: calc(23 * var(--u)); }
.exp-block li::before {
  content: ""; position: absolute; left: calc(9 * var(--u)); top: .5em;
  width: calc(4 * var(--u)); height: calc(4 * var(--u)); border-radius: 50%; background: var(--accent);
}

.domains-wrap { display: contents; }
.domains-title {
  font: 700 calc(25.5 * var(--u)) / calc(34 * var(--u)) "Poppins", Arial, sans-serif;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--violet);
}
.domains-title span { color: var(--accent); }
.domains { display: flex; }
.domains li {
  display: grid;
  grid-template-rows: calc(52 * var(--u)) auto auto;
  width: calc(var(--w) * var(--u));
  padding-right: calc(28 * var(--u));
}
.domains li:last-child { padding-right: 0; }
.domains img { width: calc(var(--w) * var(--u)); height: auto; }
.domains li > img { align-self: center; justify-self: start; }
.domains h4 {
  margin-top: calc(5 * var(--u));
  min-height: calc(48 * var(--u));
  width: calc(var(--tw) * var(--u));
  letter-spacing: -.01em;
  font: 700 calc(16.2 * var(--u)) / calc(24 * var(--u)) "Poppins", Arial, sans-serif;
  text-transform: uppercase; color: var(--violet);
}
.domains p {
  margin-top: calc(20 * var(--u));
  font: 400 calc(12.6 * var(--u)) / calc(18 * var(--u)) "Inter", Arial, sans-serif;
  text-align: justify;
}

/* 4. Page « Mon parcours » ------------------------------------------------- */
.parcours-page {
  background: #f7f8fa;
  color: var(--navy);
}

.parcours-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 30px;
  padding: 54px 58px 48px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.parcours-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 500px;  /* 360px + 2 × 70px de bordure */
  height: 500px;
  border: 70px solid rgba(241, 90, 36, .92);
  border-radius: 50%;
  opacity: .95;
}
.parcours-hero .eyebrow,
.parcours-hero h2,
.parcours-subtitle {
  position: relative;
  z-index: 1;
}
.parcours-hero .eyebrow {
  margin: 0 0 14px;
  color: #f7a07d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.parcours-hero h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.045em;
}
.parcours-subtitle {
  margin: 18px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.parcours-years {
  position: relative;
  z-index: 2;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
}
.parcours-years strong {
  font-size: 72px;
  font-weight: 900;
  line-height: .8;
  color: #fff;
}
.parcours-years span {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f5f6fa;
}

.parcours-intro {
  max-width: 900px;
  padding: 28px 58px;
  background: #fff;
  border-bottom: 1px solid #e2e6ed;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.parcours-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 30px 34px;
}

.parcours-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 22px;
  background: #fff;
  border-left: 5px solid var(--orange);
  box-shadow: 0 8px 22px rgba(24, 35, 107, .07);
}
.parcours-card.featured {
  grid-column: 1 / -1;
  background: var(--navy);
  color: #fff;
}
.parcours-card.compact { min-height: 110px; }

.parcours-card .period {
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange);
}
.parcours-card.featured .period { color: #ff9b72; }

.parcours-card h3 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.parcours-card h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
  color: var(--orange);
}
.parcours-card.featured h4 { color: #fff; }

.parcours-card ul {
  margin: 0;
  padding-left: 17px;
  font-size: 13px;
  line-height: 1.55;
}
.parcours-card .clients {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(24, 35, 107, .1);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #5b6381;
}
.parcours-card.featured .clients {
  border-top-color: rgba(255, 255, 255, .2);
  color: #dfe4f5;
}

.parcours-bottom {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  background: #eef1f5;
  border-top: 8px solid var(--orange);
}
.formation-block,
.skills-block { padding: 30px 34px; }
.skills-block {
  background: var(--navy);
  color: #fff;
}
.section-label {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.formation-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #d7dce5;
  font-size: 13px;
  line-height: 1.4;
}
.formation-item:last-child { border-bottom: 0; }
.formation-item strong { color: var(--orange); font-size: 14px; }
.formation-item small { font-size: 11px; color: #59627f; }

.skill-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  font-size: 12px;
  line-height: 1.45;
}
.skill-row:last-child { border-bottom: 0; }
.skill-row strong {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #ff9b72;
}

/* 5. Pied de page ---------------------------------------------------------- */
.site-footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 4px;
  color: #26315e;
  font-size: 11px;
  font-weight: 700;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }


/* 5b. Fenêtre de lecture des lettres de recommandation ----------------------- */
.letter {
  width: min(880px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 30px 80px rgba(8, 16, 48, .45);
  overflow: auto;
  overscroll-behavior: contain;
}
.letter::backdrop {
  background: rgba(12, 20, 60, .72);
  backdrop-filter: blur(3px);
}
.letter[open] { animation: letter-in .22s ease; }
@keyframes letter-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }

.letter-bar {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 20px;
  background: var(--navy);
  color: #fff;
}
.letter-bar h2 { flex: 1; margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.letter-dl {
  padding: 8px 12px;
  background: var(--orange);
  color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.letter-dl:hover { background: #ff7a45; }
.letter-close {
  width: 36px; height: 36px;
  border: 0; background: transparent; color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer;
}
.letter-close:hover { color: var(--orange); }
.letter img { display: block; width: 100%; height: auto; }
body:has(dialog[open]) { overflow: hidden; }

@media (max-width: 700px) {
  .letter { width: calc(100% - 12px); max-height: calc(100dvh - 12px); }
  .letter-bar { padding-left: 14px; gap: 8px; }
  .letter-bar h2 { font-size: 11px; line-height: 1.25; }
  .letter-dl { padding: 7px 9px; font-size: 10px; }
}

/* 6. Responsive ------------------------------------------------------------ */
@media (min-width: 1200px) {
  .brochure-page,
  .parcours-page { max-width: 1000px; }
}

@media (max-width: 800px) {
  .parcours-hero { padding: 40px 28px; gap: 15px; }
  .parcours-years { min-width: 110px; }
  .parcours-years strong { font-size: 52px; }
  .parcours-intro { padding: 24px 28px; font-size: 16px; }
  .parcours-grid { grid-template-columns: 1fr; padding: 18px 18px 24px; }
  .parcours-card.featured { grid-column: auto; }
  .parcours-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 64px; }

  .floating-bar {
    top: 8px;
    width: calc(100% - 16px);
    padding: 8px 10px 8px 13px;
  }
  .menu-toggle { display: flex; }

  /* La navigation devient un menu déroulant */
  .floating-bar nav {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 7px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(24, 35, 107, .08);
    box-shadow: 0 10px 28px rgba(12, 25, 65, .13);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .floating-bar.nav-open nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .floating-bar nav a {
    display: block;
    padding: 11px 10px;
    text-align: center;
    font-size: 11px;
  }
  .floating-bar nav .contact-btn { margin-top: 3px; }

  .brochure { padding: 58px 0 15px; }
  .brochure-page { width: 100%; margin-bottom: 8px; box-shadow: 0 8px 24px rgba(10, 22, 55, .13); }

  .site-footer {
    width: calc(100% - 20px);
    margin-bottom: 12px;
    flex-direction: column;
    gap: 5px;
    font-size: 10px;
  }
}

@media (max-width: 700px) {
  /* Pages reconstruites : flux normal, tailles de texte lisibles */
  .rebuilt .canvas { --u: 1px; padding: 28px 22px 32px; aspect-ratio: auto; display: flex; flex-direction: column; gap: 22px; }
  .rebuilt .at { position: static; width: auto; }
  .rebuilt .canvas > img.at { width: calc(100% + 44px); max-width: none; margin: 0 -22px; }
  .stat-text, .exp-block p, .exp-block li, .domains p { font-size: 14.5px; line-height: 1.5; }
  .home-list, .home-lead { font-size: 14px; line-height: 1.7; }

  .page-expertise .canvas { padding: 0 0 32px; gap: 0; }
  .exp2-bg { display: none; }
  .exp2-top {
    display: flex; flex-direction: column; gap: 18px;
    padding: 28px 22px 26px;
    background: url("assets/photo-expertise.webp") center top / cover no-repeat;
  }
  .exp2-title .l1 { font-size: 30px; line-height: 1.15; }
  .exp2-title .l2 { font-size: 21px; line-height: 1.3; margin-top: 6px; }
  .exp2-intro { font-size: 15px; line-height: 1.5; margin-top: 90px; padding: 14px 16px; background: rgba(255, 255, 255, .8); text-align: left; }
  .exp2-box { height: auto; padding: 20px 20px 22px; }
  .exp2-box h3, .exp2-box.box-right h3 { font-size: 21px; text-align: left; max-width: none; margin: 0; padding: 0; }
  .exp2-box p, .exp2-box.box-right p { margin-top: 10px; font-size: 14.5px; line-height: 1.55; }
  .exp2-box.box-right { padding-top: 20px; }
  .services { height: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 10px; padding: 28px 22px 0; font-size: 15px; }
  .services li { position: static; width: auto; grid-template-rows: auto auto; gap: 8px; }
  .services span { margin-top: 0; }

  .page-home .canvas { background: linear-gradient(#bfd0e2, #d5e0ec 60%, #c6d6e6); padding-bottom: 0; }
  .home-bg, .rebuilt .home-arrow { display: none; }
  .home-photo { order: 99; -webkit-mask-image: none; mask-image: none; }
  .home-logo { max-width: 300px; }
  .slogan { font-size: 21px; line-height: 1.25; gap: 8px; letter-spacing: .03em; }
  .slogan span { padding-left: 0; }
  .slogan .hl { font-size: 23px; line-height: 1.3; white-space: normal; padding: 8px 12px; margin: 0; }
  .home-values { height: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 10px; font-size: 14px; line-height: 1.35; }
  .home-values li { position: static; width: auto; grid-template-rows: auto auto; gap: 8px; }
  .home-values span { margin-top: 0; }

  .page-refs .canvas { background: linear-gradient(#c3d3e6, #d3deea); padding: 24px 18px 0; gap: 26px; }
  .refs-bg { display: none; }
  .refs-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 22px; }
  .refs-logos li { position: static; width: auto; height: 48px; }
  .refs-logos img { width: auto; max-width: 130px; }
  .refs-intro svg { max-width: 190px; display: block; margin: 0 auto; }
  .refs-intro p { font-size: 13px; line-height: 1.55; text-align: center; margin-top: 8px; }
  .values { height: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .values li { position: static; width: auto; }
  .values li:last-child { grid-column: 1 / -1; }
  .values p { max-width: none; font-size: 13.5px; line-height: 1.5; }
  .trust p { font-size: 15px; line-height: 1.5; }
  .trust h3 { font-size: 15px; }
  .refs-photo { order: 98; width: calc(100% + 36px) !important; height: 250px; margin: 0 -18px !important; object-fit: cover; object-position: left bottom; -webkit-mask-image: none; mask-image: none; }
  .contact { order: 99; height: auto; margin: 0 -18px; padding: 26px 22px 30px; display: flex; flex-direction: column; gap: 16px; }
  .contact p, .contact .line { position: static; display: flex; align-items: center; gap: 12px; width: auto; }
  .contact .line img { position: static; }
  .contact .line a, .contact .line span { margin-left: 0; }
  .contact .name { font-size: 18px; }
  .contact .line { font-size: 16px; }
  .contact .zone { font-size: 17px; line-height: 1.4; }

  .page-exp .canvas { background: #d9d9d9; }
  .exp-title { font-size: 26px; line-height: 1.3; }
  .stat-num { margin-top: 0; height: auto; line-height: 1; }
  .stat-num span { line-height: .8; vertical-align: baseline; }
  .stat-text { margin-top: 8px; }
  .exp-block h3 { margin-top: 12px; font-size: 15px; }
  .exp-block p, .exp-block ul { margin-top: 10px; }
  .domains-wrap { display: block; margin: 8px -22px -32px; padding: 28px 22px 32px; background: #fff; }
  .domains-title { font-size: 22px; }
  .domains { flex-direction: column; gap: 22px; margin-top: 20px; }
  .domains li, .domains li:last-child { display: block; width: auto; padding-right: 0; }
  .domains li > img { margin-bottom: 10px; }
  .domains h4 { min-height: 0; margin-top: 0; width: auto; font-size: 15px; }
  .domains p { margin-top: 6px; }
}

@media (max-width: 520px) {
  .parcours-hero { display: block; padding: 34px 22px; }
  .parcours-hero h2 { font-size: 46px; }
  .parcours-years { margin-top: 28px; text-align: left; }
  .parcours-years strong { font-size: 48px; }
  .parcours-card { grid-template-columns: 1fr; gap: 9px; padding: 18px; }
  .formation-block,
  .skills-block { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* 5c. Pages légales (mentions légales, confidentialité) --------------------- */
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.legal {
  width: min(820px, calc(100% - 36px));
  margin: 96px auto 40px;
  padding: 40px 44px 44px;
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(24, 35, 107, .12);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
.legal .eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 600; }
.legal .eyebrow a { text-decoration: none; color: var(--accent); }
.legal .eyebrow a:hover { text-decoration: underline; }
.legal h1 { margin: 0 0 6px; font-family: Poppins, Arial, sans-serif; font-weight: 700; font-size: 30px; line-height: 1.2; color: var(--violet); }
.legal h2 { margin: 30px 0 8px; font-family: Poppins, Arial, sans-serif; font-weight: 700; font-size: 17px; color: var(--accent); }
.legal p, .legal ul, .legal dl { margin: 0 0 12px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal .updated { font-size: 12px; opacity: .7; margin-bottom: 8px; }
.legal a { color: var(--navy); text-underline-offset: 2px; }
.legal a:hover { color: var(--orange); }
.legal dl { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 6px 18px; }
.legal dt { font-weight: 600; color: var(--navy); }
.legal dd { margin: 0; }
.legal .todo { background: #fff2b8; color: #6b4f00; padding: 0 4px; border-radius: 3px; }
@media (max-width: 700px) {
  .legal { margin-top: 84px; padding: 26px 20px 30px; font-size: 14px; }
  .legal h1 { font-size: 24px; }
  .legal dl { grid-template-columns: 1fr; gap: 0; }
  .legal dt { margin-top: 8px; }
  .footer-links { justify-content: flex-start; }
}
