/* Tyméo SEKKAL — feuille de style unique
   Blanc d'abord, bleu en accent, quelques clins d'œil pixel (dates, séparateurs, frise). */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pixelify Sans";
  src: url("/fonts/pixelify-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blanc: #ffffff;
  --encre: #121317;
  --texte: #3b404b;
  --doux: #5d6470;
  --bleu: #0566f0;
  --bleu-fonce: #0a2a6b;
  --bleu-clair: #b9d4fb;
  --ciel: #eef4ff;
  --ligne: #dfe6f1;

  --police: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pixel: "Pixelify Sans", ui-monospace, monospace;

  --marge: 1rem;
  --entete: 4rem;

  /* Coins « en escalier » façon pixel */
  --p: 12px;
  --escalier: polygon(0 var(--p), var(--p) var(--p), var(--p) 0, calc(100% - var(--p)) 0, calc(100% - var(--p)) var(--p), 100% var(--p), 100% calc(100% - var(--p)), calc(100% - var(--p)) calc(100% - var(--p)), calc(100% - var(--p)) 100%, var(--p) 100%, var(--p) calc(100% - var(--p)), 0 calc(100% - var(--p)));

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { color: var(--encre); margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--bleu); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--bleu-fonce); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.evitement {
  position: absolute; left: var(--marge); top: -4rem; z-index: 100;
  background: var(--encre); color: var(--blanc); padding: .6rem 1rem; font-weight: 700;
}
.evitement:focus { top: .75rem; color: var(--blanc); }

.conteneur { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--marge); }
@media (min-width: 640px) { :root { --marge: 1.5rem; } }
@media (min-width: 1024px) { :root { --marge: 2rem; } }

/* ---------- Boutons : ombre franche, on « appuie » dessus ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .75rem 1.35rem;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid var(--encre); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.bouton-principal { background: var(--bleu); border-color: var(--bleu-fonce); color: var(--blanc); box-shadow: 4px 4px 0 var(--bleu-fonce); }
.bouton-principal:hover { color: var(--blanc); background: #0558d0; }
.bouton-secondaire { background: var(--blanc); color: var(--encre); box-shadow: 4px 4px 0 var(--bleu-clair); }
.bouton-secondaire:hover { color: var(--encre); }
.bouton:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--bleu-fonce); }
.bouton-secondaire:hover { box-shadow: 2px 2px 0 var(--bleu-clair); }
.bouton:active { transform: translate(4px, 4px); box-shadow: 0 0 0 transparent; }
.bouton-principal:focus-visible { outline-color: var(--encre); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--ligne);
}
.entete-interieur { display: flex; align-items: center; justify-content: space-between; min-height: var(--entete); gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--encre); font-weight: 800; letter-spacing: -.01em; text-decoration: none; font-size: 1.05rem; }
.logo:hover { color: var(--encre); }
.logo-marque { color: var(--bleu); width: 1.75rem; height: 1.75rem; }

.menu ul { display: flex; align-items: center; gap: .25rem; }
.menu a { display: block; padding: .5rem .8rem; color: var(--encre); font-weight: 600; text-decoration: none; }
.menu a:hover { color: var(--bleu); }
.menu .menu-contact { background: var(--encre); color: var(--blanc); margin-left: .5rem; }
.menu .menu-contact:hover { background: var(--bleu); color: var(--blanc); }

.menu-bouton { display: none; }

@media (max-width: 759px) {
  .js .menu-bouton {
    display: inline-flex; align-items: center; justify-content: center;
    width: 3rem; height: 3rem; margin-right: -.5rem;
    background: none; border: 0; cursor: pointer; color: var(--encre);
  }
  .menu-icone, .menu-icone::before, .menu-icone::after {
    display: block; width: 1.4rem; height: 3px; background: currentColor; transition: transform .2s ease, opacity .2s ease;
  }
  .menu-icone { position: relative; }
  .menu-icone::before, .menu-icone::after { content: ""; position: absolute; left: 0; }
  .menu-icone::before { top: -7px; }
  .menu-icone::after { top: 7px; }
  .menu-bouton[aria-expanded="true"] .menu-icone { background: transparent; }
  .menu-bouton[aria-expanded="true"] .menu-icone::before { transform: translateY(7px) rotate(45deg); }
  .menu-bouton[aria-expanded="true"] .menu-icone::after { transform: translateY(-7px) rotate(-45deg); }

  .js .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--blanc); border-bottom: 1px solid var(--ligne);
    padding: .5rem var(--marge) 1rem;
    display: none;
  }
  .js .menu.est-ouvert { display: block; }
  .js .menu ul { flex-direction: column; align-items: stretch; }
  .js .menu a { padding: .8rem .25rem; font-size: 1.125rem; border-bottom: 1px solid var(--ligne); }
  .js .menu .menu-contact { margin: .75rem 0 0; text-align: center; border: 0; }
  /* Sans JavaScript, le menu reste visible et passe à la ligne */
  .entete-interieur { flex-wrap: wrap; }
  html:not(.js) .menu ul { flex-wrap: wrap; padding-bottom: .5rem; }
}

section[id] { scroll-margin-top: calc(var(--entete) + .5rem); }

/* ---------- Accueil ---------- */
.hero { padding-block: 3rem 3.5rem; }
.hero-grille { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 {
  font-size: clamp(3.1rem, 13vw, 7rem);
  font-weight: 800; letter-spacing: -.045em; line-height: .98;
  margin-bottom: 1.25rem;
}
.hero h1 span { display: inline-block; }
.hero-role { font-size: clamp(1.3rem, 4.2vw, 1.75rem); font-weight: 700; color: var(--encre); margin-bottom: .35rem; letter-spacing: -.01em; }
.hero-marques { font-size: 1.125rem; color: var(--doux); }
.hero-marques a { font-weight: 700; }
.hero-citation {
  margin: 2rem 0 2.25rem;
  padding: .25rem 0 .25rem 1.25rem;
  font-size: clamp(1.2rem, 3.6vw, 1.45rem); font-weight: 500; line-height: 1.4; color: var(--encre);
  border-left: 6px solid transparent;
  border-image: repeating-linear-gradient(to bottom, var(--bleu) 0 6px, transparent 6px 10px) 6;
  max-width: 30ch;
}
.boutons { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; }
@media (max-width: 519px) { .hero .boutons .bouton { flex: 1 1 100%; margin-right: 4px; } }

.hero-photo { position: relative; width: min(11rem, 44vw); margin-right: 1.25rem; order: -1; --p: 8px; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; transform: translate(.75rem, .75rem);
  background: var(--bleu); clip-path: var(--escalier);
}
.hero-photo picture {
  position: relative; display: block; clip-path: var(--escalier);
  background: var(--ciel); aspect-ratio: 3 / 4;
}
/* Le fond blanc de la photo prend la teinte bleu très pâle du cadre */
.hero-photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

@media (min-width: 900px) {
  .hero { padding-block: 5rem 6rem; }
  .hero-grille { grid-template-columns: 1.25fr .75fr; gap: 3rem; }
  .hero h1 span { display: block; }
  .hero-photo { width: 100%; max-width: 26.25rem; justify-self: end; order: 0; --p: 12px; }
  .hero-photo::before { transform: translate(1.25rem, 1.25rem); }
}

/* ---------- Séparateur en blocs de pixels ---------- */
.separateur {
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='24' shape-rendering='crispEdges'%3E%3Cpath fill='%23e3eefd' d='M0 12h192v12H0z'/%3E%3Cpath fill='%23b9d4fb' d='M12 0h12v12H12zM60 0h24v12H60zM132 0h12v12h-12zM24 12h12v12H24zM108 12h12v12h-12z'/%3E%3Cpath fill='%235c9df6' d='M24 0h12v12H24zM144 0h12v12h-12zM84 12h12v12H84zM168 12h12v12h-12z'/%3E%3Cpath fill='%230566f0' d='M36 0h12v12H36zM156 12h12v12h-12zM96 0h12v12H96z'/%3E%3C/svg%3E") repeat-x left bottom / 192px 24px;
}

/* ---------- Sections ---------- */
.section { padding-block: 4rem; }
@media (min-width: 900px) { .section { padding-block: 6rem; } }
.section-tete { max-width: 40rem; margin-bottom: 3rem; }
.section-tete h2 { font-size: clamp(2.2rem, 7vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .75rem; }
.section-tete p { font-size: 1.125rem; color: var(--doux); }

/* ---------- Frise chronologique : une barre d'expérience qui se remplit ---------- */
.frise {
  --rail: .8rem;        /* position du centre du rail */
  --retrait: 2.6rem;    /* décalage du contenu */
  position: relative;
  padding-left: var(--retrait);
}
.frise-rail {
  position: absolute; top: .4rem; bottom: 0;
  left: calc(var(--rail) - 5px); width: 10px;
  background: repeating-linear-gradient(to bottom, var(--ligne) 0 12px, transparent 12px 16px);
}
.frise-remplissage {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, var(--bleu) 0 12px, transparent 12px 16px);
  clip-path: inset(0 0 calc((1 - var(--progression, 1)) * 100%) 0);
}
.etape { position: relative; padding-bottom: 4rem; }
.etape:last-child { padding-bottom: 0; }
.etape-bloc {
  position: absolute; top: .3rem;
  left: calc(var(--rail) - var(--retrait) - 11px);
  width: 22px; height: 22px;
  background: var(--blanc); border: 4px solid var(--ligne);
}
.etape.est-atteinte .etape-bloc { background: var(--bleu); border-color: var(--bleu-fonce); animation: pose .35s steps(3, end); }
.etape-finale .etape-bloc { width: 26px; height: 26px; left: calc(var(--rail) - var(--retrait) - 13px); }
@keyframes pose { from { transform: scale(1.6); } to { transform: scale(1); } }

.etape-date { font-family: var(--pixel); font-size: 1.05rem; line-height: 1.3; color: var(--bleu); margin-bottom: .5rem; letter-spacing: .01em; }
.etape h3 { font-size: clamp(1.5rem, 4.6vw, 2rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 1rem; }
.etape-texte { max-width: 38rem; }
.etape-corps { display: grid; gap: 1.75rem; }

.etape-medias { display: grid; gap: .75rem; align-content: start; }
.etape-medias-duo { grid-template-columns: 1fr 1fr; }
.etape-medias-createur { grid-template-columns: 3.16fr 1fr; align-items: start; }
.etape-medias-portrait { max-width: 19rem; }
.etape-medias img { width: 100%; background: var(--ciel); border: 2px solid var(--encre); box-shadow: 5px 5px 0 var(--bleu-clair); }
.etape-medias figcaption { font-size: .875rem; color: var(--doux); margin-top: .6rem; line-height: 1.35; }

/* Chiffres de créateur */
.stats { display: grid; gap: 1rem; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-top: 1rem; border-top: 4px solid var(--encre); }
.stat dt { color: var(--doux); font-size: 1rem; line-height: 1.35; }
.stat dd { margin: 0; font-size: clamp(2.75rem, 9vw, 4.25rem); font-weight: 800; color: var(--bleu); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* Tuiles pour les étapes sans photo */
.etape-tuile {
  align-self: start;
  background: var(--ciel); padding: 1.75rem 1.5rem 1.5rem;
  border: 2px solid var(--encre); box-shadow: 5px 5px 0 var(--bleu-clair);
}
.tuile-chiffre { font-size: clamp(3.5rem, 12vw, 5.5rem); font-weight: 800; color: var(--bleu); letter-spacing: -.05em; line-height: 1; margin-bottom: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tuile-phrase { font-size: clamp(1.75rem, 5.5vw, 2.4rem); font-weight: 800; color: var(--encre); letter-spacing: -.03em; line-height: 1.05; margin-bottom: .75rem; max-width: 12ch; }
.tuile-legende { font-family: var(--pixel); color: var(--bleu-fonce); font-size: 1rem; line-height: 1.4; }
/* Un escalier de blocs qui monte : la voie choisie */
.etape-tuile-voie {
  padding-bottom: 5.5rem;
  background: var(--ciel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='64' shape-rendering='crispEdges'%3E%3Cpath fill='%23b9d4fb' d='M0 48h32v16H0z'/%3E%3Cpath fill='%235c9df6' d='M32 32h32v32H32z'/%3E%3Cpath fill='%230566f0' d='M64 16h32v48H64z'/%3E%3Cpath fill='%230a2a6b' d='M96 0h32v64H96z'/%3E%3C/svg%3E") no-repeat right 1.5rem bottom 0 / 160px 64px;
}

@media (min-width: 900px) {
  .frise { --rail: 10.5rem; --retrait: 13rem; }
  .etape { padding-bottom: 6rem; }
  .etape-date {
    position: absolute; top: .1rem;
    left: calc(-1 * var(--retrait)); width: 9rem;
    text-align: right; font-size: 1.15rem;
  }
  .etape-corps { grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
  .etape-corps-large { grid-template-columns: 1fr; }
  .etape-corps-large .etape-medias { max-width: 46rem; }
}

/* Apparition au défilement (uniquement si JavaScript est actif) */
@media (prefers-reduced-motion: no-preference) {
  .js .etape .etape-date,
  .js .etape .etape-corps { opacity: 0; transform: translateY(1.5rem); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .js .etape .etape-corps { transition-delay: .08s; }
  .js .etape.est-visible .etape-date,
  .js .etape.est-visible .etape-corps { opacity: 1; transform: none; }
}

/* ---------- Entreprises ---------- */
.entreprises { display: grid; gap: 2rem; }
@media (min-width: 900px) { .entreprises { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.entreprise { display: flex; flex-direction: column; border: 2px solid var(--encre); background: var(--blanc); box-shadow: 6px 6px 0 var(--bleu-clair); }
.navigateur { display: block; border-bottom: 2px solid var(--encre); color: var(--doux); text-decoration: none; }
.navigateur-barre { display: flex; align-items: center; gap: 6px; height: 2.25rem; padding-inline: .9rem; background: #f4f7fc; border-bottom: 1px solid var(--ligne); }
.navigateur-barre i { width: 9px; height: 9px; background: var(--bleu-clair); }
.navigateur-barre i:first-child { background: var(--bleu); }
.navigateur-barre span { font-family: var(--pixel); font-size: .9rem; margin-left: .6rem; color: var(--doux); }
.navigateur img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.entreprise-texte { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1.75rem 1.5rem 1.75rem; }
.entreprise h3 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .75rem; }
.puces { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .25rem 0 1.75rem; font-size: .95rem; font-weight: 600; color: var(--encre); }
.puces li { display: flex; align-items: center; gap: .5rem; }
.puces li::before { content: ""; width: 7px; height: 7px; background: var(--bleu); }
.entreprise .bouton { margin-top: auto; }

/* ---------- Compétences : des cases d'inventaire ---------- */
.competences { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.competences li {
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem 1rem .6rem .6rem;
  border: 2px solid var(--ligne); background: var(--blanc);
  font-weight: 600; color: var(--encre); line-height: 1.3;
}
.case {
  flex: none; display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem;
  background: var(--ciel); color: var(--bleu);
  box-shadow: inset 3px 3px 0 var(--blanc), inset -3px -3px 0 #c9dcfa;
}
.case svg { width: 1.6rem; height: 1.6rem; }

/* ---------- Contact ---------- */
.contact-grille { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact-grille { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; } }
.contact-infos h2 { font-size: clamp(2.2rem, 7vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .75rem; }
.contact-infos > p { font-size: 1.125rem; color: var(--doux); max-width: 32rem; }
.contact-email {
  display: inline-flex; align-items: center; gap: .75rem;
  margin: 1.25rem 0 1.75rem; padding-block: .5rem;
  font-size: clamp(1.1rem, 4.4vw, 1.4rem); font-weight: 700; color: var(--encre); text-decoration: none;
  word-break: break-all;
}
.contact-email svg { width: 1.6rem; height: 1.6rem; color: var(--bleu); flex: none; }
.contact-email:hover { color: var(--bleu); }
.reseaux { display: flex; flex-wrap: wrap; gap: .6rem; }
.reseaux a {
  display: grid; place-items: center; width: 3rem; height: 3rem;
  border: 2px solid var(--ligne); color: var(--encre);
  transition: color .15s ease, border-color .15s ease;
}
.reseaux a:hover { color: var(--bleu); border-color: var(--bleu); }
.reseaux svg { width: 1.35rem; height: 1.35rem; }
/* Un réseau pas encore rempli n'est pas affiché */
.reseaux li:has(a[href*="A-COMPLETER"]) { display: none; }

.formulaire { display: grid; gap: 1.25rem; padding: 1.5rem; border: 2px solid var(--encre); box-shadow: 6px 6px 0 var(--bleu-clair); background: var(--blanc); }
@media (min-width: 640px) { .formulaire { padding: 2rem; } }
.champ { display: grid; gap: .4rem; }
.champ label { font-weight: 700; color: var(--encre); }
.champ input, .champ textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--encre);
  padding: .8rem .9rem; background: var(--blanc);
  border: 2px solid #c3cddd; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.champ textarea { resize: vertical; min-height: 8rem; }
.champ input:focus, .champ textarea:focus { outline: 3px solid var(--bleu-clair); outline-offset: 0; border-color: var(--bleu); }
.champ [aria-invalid="true"] { border-color: #c0262d; }
.formulaire .bouton { justify-self: start; }
.formulaire-etat { min-height: 1.5em; font-weight: 600; margin: 0; }
.formulaire-etat.est-erreur { color: #b0212a; }
.formulaire-etat.est-ok { color: #11703a; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--ligne); padding-block: 3rem 2.5rem; }
.pied-interieur { display: grid; gap: 1.25rem; }
.pied-phrase { font-size: clamp(1.3rem, 4.5vw, 1.75rem); font-weight: 800; color: var(--encre); letter-spacing: -.02em; line-height: 1.2; max-width: 26ch; margin: 0; }
.pied-liens { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.pied-liens a { display: inline-block; padding-block: .5rem; font-weight: 600; }
.pied-copyright { color: var(--doux); font-size: .95rem; margin: 0; }
@media (min-width: 900px) {
  .pied-interieur { grid-template-columns: 1fr auto; align-items: end; }
  .pied-copyright { grid-column: 1 / -1; }
}

/* ---------- Page 404 ---------- */
.erreur { min-height: calc(100vh - var(--entete) - 12rem); display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.erreur .erreur-code { font-family: var(--pixel); font-size: clamp(5rem, 24vw, 10rem); line-height: 1; color: var(--bleu); margin-bottom: 1rem; }
.erreur h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.erreur p { color: var(--doux); font-size: 1.125rem; max-width: 30rem; margin-inline: auto; }
.erreur .boutons { justify-content: center; margin-top: 2rem; }

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