/* ============================================================================
   SORA-DEV CONSULTING — Portfolio one-page
   Feuille de style principale — CSS3 pur (variables, Grid, Flexbox)
   Sommaire :
     1. Reset & base
     2. Variables (charte graphique)
     3. Typographie & utilitaires
     4. Boutons & chips
     5. En-tête / navigation
     6. Hero + chiffres clés
     7. Sections génériques
     8. Qui suis-je (timeline de positionnement)
     9. Domaines d'expertise
     10. Projets (grille + modales)
     11. Autres expériences
     12. Contact
     13. Pied de page + retour en haut
     14. Animations au scroll
     15. Media queries (375 / 768 / 1200)
   ========================================================================= */

/* ----------------------------------------------------------------------- */
/* 1. RESET & BASE                                                         */
/* ----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, dl, dd, dt, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

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

/* ----------------------------------------------------------------------- */
/* 2. VARIABLES — charte graphique SORADEV CONSULTING                      */
/* ----------------------------------------------------------------------- */
:root {
  /* Couleurs de marque */
  --navy: #00265A;
  --navy-dark: #001531;
  --navy-mid: #093B7E;
  --orange: #FB7A1F;
  /* Variante orange assombrie, réservée au TEXTE orange sur fond clair
     (le orange pur #FB7A1F offre un contraste insuffisant en texte sur blanc :
     ~2.7:1. Sur fond navy ou en bouton associé à du texte navy, #FB7A1F
     respecte AA. Voir usages ci-dessous.) */
  --orange-ink: #B84B00;
  --orange-soft: rgba(251, 122, 31, 0.12);
  --orange-soft-strong: rgba(251, 122, 31, 0.22);

  /* Fonds */
  --bg-light: #F7F8FA;
  --bg-white: #FFFFFF;

  /* Textes */
  --text: #1F2937;
  --text-muted: #4B5563;
  --text-on-dark: #F4F6FA;
  --text-on-dark-muted: #C3CEE3;

  --border: #E4E7EC;
  --border-on-dark: rgba(255, 255, 255, 0.14);

  /* Ombres */
  --shadow-sm: 0 2px 10px rgba(0, 38, 90, 0.07);
  --shadow-md: 0 14px 36px rgba(0, 38, 90, 0.14);
  --shadow-lg: 0 28px 64px rgba(0, 21, 49, 0.28);

  /* Rayons */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  /* Typographie */
  --font-heading: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  /* Mise en page */
  --container-w: 1180px;
  --section-pad-y: clamp(3.5rem, 7vw, 6.5rem);
  --header-h: 76px;
  --transition: 200ms ease;
}

/* ----------------------------------------------------------------------- */
/* 3. TYPOGRAPHIE & UTILITAIRES                                            */
/* ----------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); font-weight: 800; line-height: 1.2; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem; top: -3.5rem;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Mise en évidence orange (contraste AA garanti sur fond clair) */
.hl { color: var(--orange-ink); font-weight: 700; }

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

/* ----------------------------------------------------------------------- */
/* 4. BOUTONS & CHIPS                                                      */
/* ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

/* Bouton principal : fond orange + texte navy => contraste 5.5:1 (AA) */
.btn--accent {
  background: var(--orange);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn--accent:hover { background: #ff8a37; box-shadow: var(--shadow-md); }

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: inherit;
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.btn--ghost {
  background: var(--orange-soft);
  color: var(--orange-ink);
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
}
.btn--ghost:hover { background: var(--orange-soft-strong); }

.btn--lg { padding: 1.1rem 2.2rem; font-size: 1.05rem; }

/* Bouton de téléchargement (méthodologie PDF) : fond navy + texte blanc
   (contraste ~8.6:1, largement AA), icône en accent orange. */
.btn-download {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-download:hover { background: var(--navy-mid); box-shadow: var(--shadow-md); }
.btn-download .icon { color: var(--orange); }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.25rem;
}
.chip {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--navy-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ----------------------------------------------------------------------- */
/* 5. EN-TÊTE / NAVIGATION                                                 */
/* ----------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Regroupe la photo et le logo en haut à gauche du site, sans changer
   la répartition flex existante de .site-header__inner (space-between
   entre ce bloc et la navigation). */
.header-identity { display: flex; align-items: center; gap: 0.75rem; }
.header-identity__photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand { display: flex; align-items: center; }
.brand__logo { height: 40px; width: auto; }
.brand__fallback { display: flex; }
.brand__fallback-main {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.brand__fallback-sora { color: var(--navy); }
.brand__fallback-dev { color: var(--orange-ink); }

/* Menu mobile (hamburger) */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  color: var(--navy);
}
.hamburger:hover { background: var(--bg-light); }
.hamburger .icon { width: 1.6em; height: 1.6em; }
.hamburger .icon-close { display: none; }
.hamburger[aria-expanded="true"] .icon-open { display: none; }
.hamburger[aria-expanded="true"] .icon-close { display: block; }

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.primary-nav__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  padding: 0.4rem 0.1rem;
  position: relative;
}
.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--orange);
  transition: right var(--transition);
}
.primary-nav__link:hover::after,
.primary-nav__link.is-active::after { right: 0; }
.primary-nav__link.is-active { color: var(--orange-ink); }

.primary-nav__link--cta {
  background: var(--navy);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
}
.primary-nav__link--cta::after { display: none; }
.primary-nav__link--cta:hover { background: var(--navy-mid); }

/* ----------------------------------------------------------------------- */
/* 6. HERO + CHIFFRES CLÉS                                                 */
/* ----------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: var(--text-on-dark);
  overflow: hidden;
  padding-top: clamp(3.5rem, 8vw, 6rem);
}

.hero__bg { position: absolute; inset: 0; opacity: 0.55; pointer-events: none; }
.hero__bg--footer { opacity: 0.4; }
.hero__nodes { width: 100%; height: 100%; }

.hero__inner { position: relative; max-width: 760px; }

.hero__eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--orange);
}

.hero__title {
  color: #fff;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin-top: 0.9rem;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-on-dark-muted);
  max-width: 620px;
}

.hero__promise {
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.55;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--orange);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.hero__promise strong { color: #fff; }

.hero__cta-group {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stats {
  position: relative;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  background: rgba(0, 21, 49, 0.55);
  border-top: 1px solid var(--border-on-dark);
  padding-block: clamp(2rem, 4vw, 2.75rem);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}
.stats__item { text-align: left; }
.stats__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--orange);
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
.stats__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  max-width: 20ch;
}

/* ----------------------------------------------------------------------- */
/* 7. SECTIONS GÉNÉRIQUES                                                  */
/* ----------------------------------------------------------------------- */
.section { padding-block: var(--section-pad-y); }
.section--alt { background: var(--bg-light); }
.section--dark {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.section__kicker {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--orange-ink);
}
.section__kicker--onDark { color: var(--orange); }

.section__title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-top: 0.6rem;
  max-width: 46ch;
}
.section__title--onDark { color: #fff; }

.section__lead {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ----------------------------------------------------------------------- */
/* 8. QUI SUIS-JE — timeline de positionnement + bandeau contexte          */
/* ----------------------------------------------------------------------- */
.positioning { margin-top: 3rem; }
.positioning__caption {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.positioning__timeline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: 480px;
}

.positioning__node {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 1.75rem 1.5rem;
  padding-left: 4.5rem;
}
.positioning__badge {
  position: absolute;
  left: 1.5rem; top: 1.75rem;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--orange);
  font-family: var(--font-heading);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.positioning__title {
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}
.positioning__items {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
}
.positioning__items li {
  color: var(--text-muted);
  font-size: 0.92rem;
  position: relative;
  padding-left: 0.9rem;
}
.positioning__items li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
}
.positioning__connector {
  display: flex;
  justify-content: center;
  color: var(--orange);
  padding: 0.35rem 0;
}
.positioning__connector .icon { width: 1.5em; height: 1.5em; }

.context-banner {
  margin-top: 3rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--navy);
  color: var(--text-on-dark);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.context-banner__icon {
  flex-shrink: 0;
  width: 2.5rem; height: 2.5rem;
  color: var(--orange);
}
.context-banner p { color: var(--text-on-dark-muted); font-size: 0.98rem; }
.context-banner strong { color: #fff; }

/* "Aller plus loin sur mon périmètre d'intervention" : schéma + méthodologie PDF.
   Les cartes réutilisent .mini-card (déjà défini en section 11) ; seules la
   structure de titre/grille et les deux visuels spécifiques sont ajoutés ici. */
.profile-more { margin-top: 3rem; }
.profile-more__title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
.profile-more__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.profile-more__filemeta { margin-top: 0.75rem; font-size: 0.82rem; color: var(--text-muted); }

/* Schéma "parcours de la donnée" : cadre clair détachant l'image du fond,
   dans l'esprit de .dashboard-frame utilisé pour les captures Power BI. */
.parcours-data {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-light);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem;
}
.parcours-data__trigger {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: calc(var(--radius-md) - 4px);
  overflow: hidden;
  cursor: zoom-in;
}
.parcours-data__trigger img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
  transition: transform var(--transition);
}
.parcours-data__trigger:hover img,
.parcours-data__trigger:focus-visible img { transform: scale(1.015); }
.parcours-data__caption {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.parcours-data__caption .icon { width: 1em; height: 1em; color: var(--orange-ink); }

/* ----------------------------------------------------------------------- */
/* 9. DOMAINES D'EXPERTISE                                                 */
/* ----------------------------------------------------------------------- */
.expertise-grid {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.expertise-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.expertise-card:hover,
.expertise-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}
.expertise-card__icon {
  width: 3.25rem; height: 3.25rem;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: background var(--transition);
}
.expertise-card__icon .icon { width: 1.6em; height: 1.6em; }
.expertise-card:hover .expertise-card__icon { background: var(--orange); color: var(--navy); }
.expertise-card__title { font-size: 1.15rem; }
.expertise-card__desc { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.92rem; }

/* ----------------------------------------------------------------------- */
/* 10. PROJETS — grille de cartes + modales                                */
/* ----------------------------------------------------------------------- */
.project-grid {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.project-card__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--orange-soft-strong); /* repli si le contour de texte n'est pas supporté */
}
/* Numéro décoratif "contour" (Chrome/Edge/Safari/Firefox récents) */
@supports (-webkit-text-stroke: 1px black) {
  .project-card__number {
    color: transparent;
    -webkit-text-stroke: 1px var(--orange);
  }
}
.project-card__title { font-size: 1.2rem; margin-top: 0.35rem; }
.project-card__excerpt { margin-top: 0.75rem; color: var(--text-muted); font-size: 0.94rem; flex-grow: 1; }
.project-card__result {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.95rem;
}
.project-card__result strong { color: var(--orange-ink); }
.project-card__trigger { margin-top: 1.25rem; align-self: flex-start; }

/* ---- Modale <dialog> native ---- */
.project-modal {
  border: none;
  padding: 0;
  width: min(760px, 92vw);
  max-height: 88vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--bg-white);
}
.project-modal::backdrop {
  background: rgba(0, 12, 30, 0.6);
  backdrop-filter: blur(2px);
}
.project-modal__inner {
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem) 3rem;
  overflow-y: auto;
  max-height: 88vh;
}
.project-modal__close {
  position: sticky;
  float: right;
  top: 0;
  margin-top: -0.5rem;
  margin-left: 1rem;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.project-modal__close:hover { background: var(--orange-soft); color: var(--orange-ink); }

/* Variante "lightbox" de la modale projet, réutilisée pour agrandir le schéma
   du parcours de la donnée : fond navy foncé, plus large, sans les rubriques
   textuelles (voir bouton [data-open-modal="lightbox-parcours-data"]). */
.project-modal--lightbox { width: min(1100px, 94vw); background: var(--navy-dark); }
.project-modal--lightbox .project-modal__inner { padding: 1.5rem; }
.project-modal--lightbox .project-modal__close { background: rgba(255, 255, 255, 0.14); color: #fff; }
.project-modal--lightbox .project-modal__close:hover { background: var(--orange-soft); color: var(--orange-ink); }
.project-modal__lightbox-img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

.project-modal__eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--orange-ink);
}
.project-modal__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-top: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.rubric { padding-block: 1.5rem; border-bottom: 1px solid var(--border); }
.rubric:last-child { border-bottom: none; padding-bottom: 0; }
.rubric__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.rubric__title .icon { color: var(--orange); width: 1.35em; height: 1.35em; }
.rubric p { color: var(--text-muted); font-size: 0.98rem; }
.rubric__flow {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem !important;
  line-height: 1.8;
}
.rubric__flow--chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
}
.rubric__flow--chain .icon { width: 1em; height: 1em; color: var(--orange); }

.rubric--results { background: var(--bg-light); margin-inline: -1.5rem; padding-inline: 1.5rem; border-radius: var(--radius-md); border-bottom: none; }

.visual-placeholder {
  margin-top: 1.1rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-light);
}
.visual-placeholder .icon { width: 2rem; height: 2rem; color: var(--orange); margin-inline: auto; }
.visual-placeholder p { margin-top: 0.6rem; font-size: 0.88rem; color: var(--text-muted); }
.visual-placeholder span { font-family: 'Courier New', monospace; font-size: 0.78rem; opacity: 0.8; }

/* Cadre "dashboard" habillant les captures Power BI réelles (façon fenêtre d'application :
   barre de titre navy + points décoratifs + légende), pour une présentation soignée et
   cohérente avec la charte, quel que soit le rendu d'origine de la capture. */
.dashboard-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.1rem;
}
.dashboard-frame {
  margin-top: 1.1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--bg-white);
}
.dashboard-gallery .dashboard-frame { margin-top: 0; }
.dashboard-frame__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  padding: 0.55rem 0.9rem;
}
.dashboard-frame__dots { display: flex; gap: 0.3rem; flex-shrink: 0; }
.dashboard-frame__dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); display: block; }
.dashboard-frame__title {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-left: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-frame__img { width: 100%; height: auto; display: block; background: var(--bg-light); }
.dashboard-frame__caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}
.dashboard-frame__caption em { color: var(--orange-ink); font-style: normal; font-weight: 600; }

.result-highlight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  padding-top: 0.5rem;
}
.result-highlight__figure { display: flex; flex-direction: column; max-width: 260px; }
.result-highlight__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--orange-ink);
  line-height: 1;
}
.result-highlight__label { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }

/* Mini-graphique de tendance SVG (animé au tracé) */
.trend-chart { width: 100%; max-width: 260px; height: auto; }
.trend-chart--compact { max-width: 230px; }
.trend-chart__axis { stroke: var(--border); stroke-width: 1.5; }
.trend-chart__line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.1s ease;
}
.project-modal[open] .trend-chart.is-animated .trend-chart__line { stroke-dashoffset: 0; }
.trend-chart__dot { fill: var(--navy); stroke: #fff; stroke-width: 2; }
.trend-chart__value { font: 700 11px var(--font-heading); fill: var(--navy); text-anchor: middle; }
.trend-chart__year { font: 600 10px var(--font-body); fill: var(--text-muted); text-anchor: middle; }

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.stat-tile {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-tile__number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--orange-ink);
}
.stat-tile--negative .stat-tile__number { color: #B3261E; }
.stat-tile__label { display: block; margin-top: 0.4rem; font-size: 0.85rem; color: var(--text-muted); }

/* Tableau de ventilation (projet 4) */
.table-wrap { margin-top: 1.5rem; overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
.data-table { min-width: 480px; font-size: 0.9rem; background: var(--bg-white); }
.data-table th, .data-table td { padding: 0.65rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table thead th { background: var(--navy); color: #fff; font-family: var(--font-heading); font-weight: 700; }
.data-table__num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table__subtotal { background: var(--bg-light); font-weight: 700; }
.data-table__total { background: var(--orange-soft); font-weight: 800; }
.data-table__total .data-table__num { color: var(--orange-ink); }

/* Conteneur responsive pour l'application Power BI intégrée (section
   "Étude de marché") : ratio conservé via aspect-ratio, habillage navy
   cohérent avec les cadres .dashboard-frame utilisés dans les modales projets. */
.powerbi-embed {
  margin-top: 2.75rem;
  aspect-ratio: 1024 / 804;
  background: var(--navy);
  padding: 0.65rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.powerbi-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: var(--radius-md);
}

/* ----------------------------------------------------------------------- */
/* 11. AUTRES EXPÉRIENCES                                                  */
/* ----------------------------------------------------------------------- */
.mini-card-grid {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.mini-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.mini-card__icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--radius-sm);
  background: var(--orange-soft);
  color: var(--orange-ink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.mini-card__title { font-size: 1.05rem; }
.mini-card__subtitle { color: var(--orange-ink); font-weight: 600; font-size: 0.85rem; margin-top: 0.2rem; }
.mini-card__desc { margin-top: 0.65rem; color: var(--text-muted); font-size: 0.92rem; }

/* ----------------------------------------------------------------------- */
/* 12. CONTACT                                                             */
/* ----------------------------------------------------------------------- */
.contact__inner { position: relative; text-align: center; }
.contact__promise {
  margin: 1.25rem auto 0;
  max-width: 60ch;
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
}
.contact__grid {
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 780px;
  text-align: left;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  transition: background var(--transition), border-color var(--transition);
}
.contact__item:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--orange); }
.contact__item .icon { color: var(--orange); width: 1.5em; height: 1.5em; }
.contact__item-label { display: block; font-size: 0.78rem; color: var(--text-on-dark-muted); }
.contact__item-value { display: block; font-weight: 600; color: #fff; font-size: 0.92rem; word-break: break-word; }
.contact__inner > .btn { margin-top: 2.5rem; }

/* ----------------------------------------------------------------------- */
/* 13. PIED DE PAGE + RETOUR EN HAUT                                       */
/* ----------------------------------------------------------------------- */
.site-footer { background: var(--navy-dark); color: var(--text-on-dark-muted); padding-block: 3rem; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.site-footer__logo { font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; color: #fff; }
.site-footer__logo .brand__fallback-dev { color: var(--orange); }
.site-footer__baseline { margin-top: 0.35rem; font-size: 0.88rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer__nav a:hover { color: var(--orange); }
.site-footer__legal { font-size: 0.8rem; line-height: 1.9; }
.site-footer__legal a:hover { color: var(--orange); }

.back-to-top {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 400;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--orange); color: var(--navy); }

/* ----------------------------------------------------------------------- */
/* 14. ANIMATIONS AU SCROLL (IntersectionObserver ajoute .is-visible)      */
/* ----------------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* ----------------------------------------------------------------------- */
/* 15. MEDIA QUERIES — mobile-first (375 / 768 / 1200)                     */
/* ----------------------------------------------------------------------- */

/* < 960px : navigation en menu mobile (hamburger) */
@media (max-width: 959.98px) {
  .hamburger { display: flex; }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg-white);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__list li { border-bottom: 1px solid var(--border); }
  .primary-nav__link { display: block; padding: 1rem 0.25rem; font-size: 1.05rem; }
  .primary-nav__link::after { display: none; }
  .primary-nav__link--cta { margin-top: 1rem; text-align: center; }
}

/* ≥ 768px : la grille de stats passe en 3 puis 5 colonnes */
@media (min-width: 576px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .stats__grid { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .stat-tiles--three { grid-template-columns: repeat(3, 1fr); }
  .profile-more__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

/* ≥ 1200px : confort desktop, positioning en frise plus large */
@media (min-width: 1200px) {
  .positioning__timeline { max-width: 620px; }
}

/* Petits mobiles (375px et moins) : resserre les paddings */
@media (max-width: 400px) {
  .container { padding-inline: 1.1rem; }
  .btn { padding: 0.75rem 1.25rem; font-size: 0.88rem; }
  .project-modal__inner { padding: 2rem 1.1rem 2.25rem; }
}
