/* ------------------------------------------------------------------
   HexaFlow — pages de contenu
   Blog, glossaire, études de cas, contact, pages légales.
   Cotes relevées sur www.hexaflow.fr au 19/09/2026, viewport 1440 × 900.
   Ces pages utilisent la seconde barre de navigation : elle est dans le
   flux, centrée, et ne recouvre pas de photo.
   ------------------------------------------------------------------ */

:root {
  --gris-lien: #a7a7a7;
  --gris-corps: #f0f2f6;
  --carte-fond: #2b2b2c;
  --pilule-fond: #121212;
  /* « Inter Display » n'est servie que par Framer. C'est Inter a l'optique
     32 : Google Fonts la sert via l'axe opsz du fichier variable. */
  --affichage: 'Inter Reprise', system-ui, sans-serif;
}

/* --------------------- Barre de navigation 2 ---------------------- */

.barre2 { background: var(--noir); padding: 20px max(75px, calc(50% - 645px)); }
/* Rangée de 1246px, liens centrés dedans : cote relevée sur le site. */
.barre2__interieur {
  width: 1246px;
  max-width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.barre2 a {
  font-family: var(--corps);
  font-size: 18px;
  font-weight: 400;
  line-height: 25.2px;
  letter-spacing: -0.36px;
  color: var(--gris-lien);
  transition: color .2s ease;
}
.barre2 a:hover { color: #fff; }
.barre2 a.est-actif { color: #fff; }
.barre2__marque {
  font-family: var(--affichage);
  font-variation-settings: 'opsz' 32;
  font-size: 18px;
  font-weight: 600;
  line-height: 19.8px;
  letter-spacing: -0.72px;
}

/* ------------------------- Page de contenu ------------------------ */

.cms { background: var(--noir); }
.cms__tete { text-align: center; }
.cms__date {
  padding-top: 81px;
  font-family: var(--bouton);
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  letter-spacing: -0.32px;
  color: var(--gris-lien);
}
.cms__titre {
  width: 900px;
  max-width: 100%;
  margin: 26px auto 0;
  font-family: var(--affichage);
  font-variation-settings: 'opsz' 32;
  font-size: 64px;
  font-weight: 600;
  line-height: 64px;
  letter-spacing: -2.56px;
  color: #fff;
}
.cms--haut .cms__titre { padding-top: 55px; margin-top: 0; }
.cms__chapo {
  width: 700px;
  max-width: 100%;
  margin: 25px auto 0;
  font-family: var(--bouton);
  font-size: 18px;
  font-weight: 400;
  line-height: 19.8px;
  letter-spacing: -0.36px;
  color: var(--gris-lien);
}
.cms__couv {
  position: relative;
  margin: 50px max(75px, calc(50% - 645px)) 0;
  height: 250px;
  border-radius: 30px;
  overflow: hidden;
}
.cms__couv img { width: 100%; height: 100%; object-fit: cover; }
.cms__plume {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 75px;
  height: 75px;
  color: #fff;
}
.cms__grille {
  margin: 50px max(75px, calc(50% - 645px)) 0;
  display: grid;
  grid-template-columns: 700px 560px;
  gap: 30px;
  align-items: start;
}

/* Étude de cas : titre plus petit, couverture plus haute, deux colonnes
   de même largeur. */
.cms--cas .cms__titre { font-size: 48px; line-height: 52.8px; letter-spacing: -1.92px; font-weight: 700; }
.cms--cas .cms__chapo { margin-top: 28px; }
.cms--cas .cms__couv { height: 726px; margin-top: 51px; }
.cms--cas .cms__grille { grid-template-columns: 630px 630px; margin-top: 49px; }

/* Définition de glossaire : pas de couverture, pas de chapô. */
.cms--terme .cms__titre { padding-top: 46px; margin-top: 0; }
.cms--terme .cms__grille { margin-top: 96px; }

/* ---------------------------- Le corps ---------------------------- */

.corps { color: var(--gris-corps); }
.corps > :first-child { margin-top: 0; }
.corps h2 {
  margin: 40px 0 20px;
  font-family: var(--affichage);
  font-variation-settings: 'opsz' 32;
  font-size: 48px;
  font-weight: 700;
  line-height: 52.8px;
  letter-spacing: -1.92px;
  color: #fff;
}
.corps h3 {
  margin: 40px 0 20px;
  font-family: var(--affichage);
  font-variation-settings: 'opsz' 32;
  font-size: 40px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: -1.6px;
  color: #fff;
}
.corps h4, .corps h5, .corps h6 {
  margin: 30px 0 12px;
  font-family: var(--corps);
  font-size: 16px;
  font-weight: 400;
  line-height: 19.2px;
  color: #fff;
}
.corps p {
  margin: 0 0 20px;
  font-family: var(--bouton);
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  letter-spacing: -0.32px;
}
.corps strong { font-weight: 700; }
.corps ul, .corps ol { margin: 0 0 20px; padding-left: 18px; }
.corps ul { list-style: disc; }
.corps ol { list-style: decimal; }
.corps li { margin: 0; }
.corps li p { margin: 0; }
.corps a { text-decoration: underline; text-underline-offset: 2px; }
.corps img { max-width: 100%; border-radius: 15px; margin: 20px 0; }
.corps blockquote { margin: 0 0 20px; padding-left: 18px; border-left: 2px solid var(--carte-fond); }

/* Le glossaire titre ses parties en petit, pas en gros, et l'espacement
   se prend en haut de chaque bloc : l'intertitre colle au paragraphe
   precedent, le paragraphe suivant respire de 20px. */
.cms--terme .corps p, .cms--terme .corps ul, .cms--terme .corps ol { margin: 20px 0 0; }
.cms--terme .corps > :first-child { margin-top: 0; }
.cms--terme .corps li p { margin: 0; }
.cms--terme .corps ul, .cms--terme .corps ol { margin-top: 0; }
.cms--terme .corps h3 {
  margin: 0;
  font-family: var(--corps);
  font-size: 16px;
  font-weight: 400;
  line-height: 19.2px;
  letter-spacing: normal;
}

/* ------------------------ L'encart d'offre ------------------------ */

.aparte {
  position: sticky;
  top: 20px;
  display: block;
  background: var(--carte-fond);
  border-radius: 15px;
  padding: 6px;
}
.aparte__corps { padding: 20px; }
.aparte__titre {
  font-family: var(--affichage);
  font-variation-settings: 'opsz' 32;
  font-size: 22px;
  font-weight: 600;
  line-height: 24.2px;
  letter-spacing: -0.44px;
  color: #fff;
}
.aparte__texte {
  margin-top: 10px;
  font-family: var(--bouton);
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  letter-spacing: -0.32px;
  color: var(--gris-lien);
}
.aparte__vue { height: 207px; border-radius: 15px; overflow: hidden; }
.aparte__vue img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cms--cas .aparte__vue { height: 345px; }
.cms--cas .aparte__titre { font-family: var(--titre); }

/* --------------------------- Bas de page -------------------------- */

.cms__suite { background: var(--noir); padding: 40px max(75px, calc(50% - 645px)) 140px; }
.cms__suite--terme { padding: 35px max(75px, calc(50% - 645px)) 95px; }
.cms__suite-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 60px;
}
.cms__suite-titre {
  font-family: var(--affichage);
  font-variation-settings: 'opsz' 32;
  font-size: 48px;
  font-weight: 700;
  line-height: 52.8px;
  letter-spacing: -1.92px;
  color: #fff;
}

/* --------------------------- Têtes d'index ------------------------ */

.index-tete { background: var(--noir); padding: 42px 0 66px; text-align: center; }
.index-tete__titre {
  width: 700px;
  max-width: 100%;
  margin-inline: auto;
  font-family: var(--affichage);
  font-variation-settings: 'opsz' 32;
  font-size: 64px;
  font-weight: 600;
  line-height: 64px;
  letter-spacing: -2.56px;
  color: #fff;
}
.index-tete__texte {
  width: 840px;
  max-width: 100%;
  margin: 30px auto 0;
  font-family: var(--bouton);
  font-size: 18px;
  font-weight: 400;
  line-height: 25.2px;
  letter-spacing: -0.36px;
  color: var(--gris-lien);
}

/* --------------------------- Cartes blog -------------------------- */

.grille-b {
  background: var(--noir);
  padding-inline: max(75px, calc(50% - 645px));
  display: grid;
  grid-template-columns: repeat(3, 410px);
  justify-content: space-between;
  row-gap: 31px;
}
.carte-b {
  display: block;
  background: var(--carte-fond);
  border-radius: 30px;
  padding: 6px;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}
.carte-b:hover { transform: translateY(-3px); }
.carte-b__vue { position: relative; height: 199px; border-radius: 25px; overflow: hidden; }
.carte-b__vue img { width: 100%; height: 100%; object-fit: cover; }
.carte-b__plume { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; color: #fff; }
.carte-b__corps { padding: 20px; }
.carte-b__titre {
  font-family: var(--affichage);
  font-variation-settings: 'opsz' 32;
  font-size: 22px;
  font-weight: 600;
  line-height: 24.2px;
  letter-spacing: -0.44px;
  color: var(--gris-corps);
}
.carte-b__meta {
  margin-top: 7px;
  font-family: var(--bouton);
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  letter-spacing: -0.32px;
  color: var(--gris-lien);
}

/* ------------------------ Pilules de glossaire -------------------- */

.grille-g {
  background: var(--noir);
  padding-inline: max(75px, calc(50% - 645px));
  display: grid;
  grid-template-columns: repeat(3, 373px);
  gap: 10px;
}
.carte-g {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 80px;
  padding: 20px;
  background: var(--pilule-fond);
  border-radius: 30px;
  transition: background-color .2s ease;
}
.carte-g:hover { background: #1b1b1b; }
.carte-g svg { flex: none; width: 24px; height: 24px; color: var(--gris-corps); }
.carte-g span {
  font-family: var(--affichage);
  font-variation-settings: 'opsz' 32;
  font-size: 18px;
  font-weight: 600;
  line-height: 19.8px;
  letter-spacing: -0.36px;
  color: var(--gris-corps);
}

/* ---------------------- Index des études de cas ------------------- */

.cas-tete { background: var(--noir); padding: 80px 0 0; text-align: center; }
.cas-tete__titre {
  font-family: var(--affichage);
  font-variation-settings: 'opsz' 32;
  font-size: 90px;
  font-weight: 600;
  line-height: 90px;
  letter-spacing: -3.6px;
  color: #fff;
}
.cas-tete__texte {
  width: 700px;
  max-width: 100%;
  margin: 12px auto 0;
  font-family: var(--pied-marque);
  font-size: 17px;
  font-weight: 400;
  line-height: 27.2px;
  color: var(--gris-lien);
}
.grille-r {
  background: var(--noir);
  width: 1161px;
  max-width: 100%;
  margin: 89px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 367px);
  justify-content: space-between;
  gap: 30px;
}
.carte-r {
  display: block;
  height: 427px;
  background: var(--carte-fond);
  border-radius: 30px;
  padding: 6px;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}
.carte-r:hover { transform: translateY(-3px); }
.carte-r__vue { position: relative; height: 199px; border-radius: 25px; overflow: hidden; }
.carte-r__vue img { width: 100%; height: 100%; object-fit: cover; }
.carte-r__plume { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; color: #fff; }
.carte-r__corps { padding: 20px; }
.carte-r__titre {
  font-family: var(--affichage);
  font-variation-settings: 'opsz' 32;
  font-size: 22px;
  font-weight: 600;
  line-height: 24.2px;
  letter-spacing: -0.44px;
  color: var(--gris-corps);
}
.carte-r__texte {
  margin-top: 5px;
  font-family: var(--bouton);
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  letter-spacing: -0.32px;
  color: var(--gris-lien);
}

/* L'encart d'équipe, en bas de /realisations. */
.equipe {
  width: 912px;
  max-width: 100%;
  margin: 132px auto 0;
  padding: 28px 20px;
  background: rgba(255, 255, 255, .04);
  border-radius: 25px;
  text-align: center;
}
.equipe__titre {
  font-family: var(--affichage);
  font-variation-settings: 'opsz' 32;
  font-size: 26px;
  font-weight: 700;
  line-height: 28.6px;
  letter-spacing: -1.04px;
  color: #fff;
}
.equipe__visages { margin-top: 37px; display: flex; justify-content: center; gap: 10px; }
.equipe__visages img { width: 211px; height: 211px; object-fit: cover; border-radius: 15px; }
.equipe__texte {
  width: 390px;
  max-width: 100%;
  margin: 37px auto 0;
  font-family: var(--pied-marque);
  font-size: 14px;
  font-weight: 300;
  line-height: 22.4px;
  color: var(--gris-corps);
}

/* Une carte masquee par le bouton « Afficher plus » : les classes
   posent display:block, il faut donc forcer la main. */
[hidden] { display: none !important; }

/* Le bouton « Afficher plus », centré sous une grille. */
.plus { background: var(--noir); text-align: center; padding: 71px 0 64px; }
.plus--termes { padding: 161px 0 54px; }
.plus .pilule { margin-top: 0; }

/* --------------------------- Bouton pilule ------------------------ */

.pilule {
  display: inline-block;
  margin-top: 37px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.pilule .bouton__boite { padding: 12px 28px; border-radius: 30px; }
.pilule .bouton__lbl { font-family: var(--corps); font-size: 18px; line-height: 25.2px; letter-spacing: -0.36px; color: #fff; }

/* ---------------------------- Contact ----------------------------- */

.contact { background: var(--noir); padding: 93px 0 27px; text-align: center; }
.contact__titre {
  width: 511px;
  max-width: 100%;
  margin-inline: auto;
  font-family: var(--titre);
  font-size: 37px;
  font-weight: 400;
  line-height: 37px;
  letter-spacing: -1.48px;
  color: #fff;
}
.contact__texte {
  width: 360px;
  max-width: 100%;
  margin: 21px auto 0;
  font-family: var(--corps);
  font-size: 20px;
  font-weight: 300;
  line-height: 22px;
  color: rgba(255, 255, 255, .61);
}

/* ------------------------- Pages légales -------------------------- */

.legal-tete { background: var(--noir); padding: 80px 0 104px; text-align: center; }
.legal-tete__titre {
  font-family: var(--affichage);
  font-variation-settings: 'opsz' 32;
  font-size: 64px;
  font-weight: 600;
  line-height: 64px;
  letter-spacing: -2.56px;
  color: #fff;
}
.legal-tete__date {
  margin-top: 23px;
  font-family: var(--bouton);
  font-size: 18px;
  font-weight: 400;
  line-height: 19.8px;
  letter-spacing: -0.36px;
  color: var(--gris-lien);
}
.legal-tete__date b { font-weight: 400; color: #fff; }
.legal-corps { background: var(--noir); padding-bottom: 160px; }
.legal-corps .corps { width: 640px; max-width: 100%; margin-left: calc(50% - 365px); }

/* --------------------- Page personnelle (orpheline) --------------- */

.carte-perso { background: #fff; padding: 58px 0 54px; text-align: center; }
.carte-perso__photo { width: 112px; height: 112px; border-radius: 500px; margin-inline: auto; object-fit: cover; }
.carte-perso__nom {
  margin-top: 34px;
  font-family: 'Instrument Sans', var(--corps);
  font-size: 28px;
  font-weight: 500;
  color: #000;
}
.carte-perso__role {
  margin-top: 10px;
  font-family: var(--pied-marque);
  font-size: 20px;
  font-weight: 300;
  line-height: 22px;
  color: #545454;
}
.carte-perso__duo {
  width: 800px;
  max-width: 100%;
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 385px);
  justify-content: space-between;
}
.lien-perso { display: block; border-radius: 15px; padding: 6px; text-align: left; }
.lien-perso--clair { background: #fff; }
.lien-perso--sombre { background: var(--carte-fond); }
.lien-perso__corps { padding: 20px; }
.lien-perso__titre {
  font-family: var(--affichage);
  font-variation-settings: 'opsz' 32;
  font-size: 22px;
  font-weight: 600;
  line-height: 24.2px;
  letter-spacing: -0.44px;
}
.lien-perso--clair .lien-perso__titre { color: #000; }
.lien-perso--sombre .lien-perso__titre { color: #fff; }
.lien-perso__texte {
  margin-top: 10px;
  font-family: var(--bouton);
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  letter-spacing: -0.32px;
}
.lien-perso--clair .lien-perso__texte { color: var(--carte-fond); }
.lien-perso--sombre .lien-perso__texte { color: var(--gris-lien); }
.lien-perso__vue { border-radius: 15px; overflow: hidden; }
.lien-perso__vue img { width: 100%; height: auto; display: block; }

/* --------------------------- Adaptatif ---------------------------- */

@media (max-width: 1400px) {
  .cms__grille { grid-template-columns: minmax(0, 700px) minmax(0, 560px); }
  .cms--cas .cms__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grille-b, .grille-r { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
  .grille-r { width: auto; margin-inline: 75px; }
  .grille-g { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .legal-corps .corps { margin-inline: auto; }
}

@media (max-width: 1024px) {
  .cms__titre { font-size: 48px; line-height: 50px; letter-spacing: -1.92px; }
  .cms__couv, .cms__grille { margin-inline: 32px; }
  .cms__grille { grid-template-columns: 1fr; }
  .cms--cas .cms__grille { grid-template-columns: 1fr; }
  .cms--cas .cms__couv { height: 420px; }
  .aparte { position: static; }
  .index-tete__titre, .cas-tete__titre { font-size: 48px; line-height: 50px; letter-spacing: -1.92px; }
  .grille-b, .grille-r { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 32px; margin-inline: 0; }
  .grille-g { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 32px; }
  .cms__suite { padding-inline: 32px; }
  .corps h2 { font-size: 34px; line-height: 38px; letter-spacing: -1.2px; }
  .corps h3 { font-size: 28px; line-height: 32px; letter-spacing: -1px; }
  .equipe__visages { flex-wrap: wrap; }
  .equipe__visages img { width: 140px; height: 140px; }
}

@media (max-width: 810px) {
  /* La barre des pages de contenu fait 64px de haut en 390. */
  .barre2 { padding: 20px 15px; }
  .barre2__interieur { width: auto; height: 24px; gap: 14px; flex-wrap: wrap; padding: 0; }
  .barre2 a { font-size: 16px; }

  /* Têtes d'index : titre en 40px, chapô en 16px. */
  .index-tete { padding: 60px 0 120px; }
  .index-tete__titre { width: auto; max-width: 340px; font-size: 40px; line-height: 40px; letter-spacing: -1.6px; }
  .index-tete__texte { width: 330px; margin-top: 10px; font-size: 16px; line-height: 22.4px; }

  /* Cartes du blog : une par ligne, titre en 19px, pas de date. */
  .grille-b { grid-template-columns: 1fr; padding-inline: 15px; padding-bottom: 160px; row-gap: 49px; }
  .carte-b__corps { padding: 16px; }
  .carte-b__titre { font-size: 19px; line-height: 20.9px; letter-spacing: -0.38px; }
  .carte-b__meta { margin-top: 6px; }
  .carte-b__meta + .carte-b__meta { display: none; }

  .grille-g { grid-template-columns: 1fr; padding-inline: 15px; padding-bottom: 160px; gap: 20px; }

  /* Index des études de cas. */
  .cas-tete { padding: 40px 0 0; }
  /* 330px de large : « cas. » passe a la ligne, comme sur le site. */
  .cas-tete__titre { width: 290px; margin-inline: auto; font-size: 40px; line-height: 40px; letter-spacing: -1.6px; }
  .cas-tete__texte { width: 259px; margin-top: 12px; }
  /* Carte de 324px, retrait interieur de 16px : cotes relevees en 390. */
  .grille-r { width: auto; grid-template-columns: 324px; justify-content: center; margin: 20px auto 0; gap: 48px; }
  .carte-r { height: auto; }
  .carte-r__corps { padding: 16px; }
  .carte-b__vue, .carte-r__vue { height: 199px; }
  .carte-r__titre { font-size: 19px; line-height: 20.9px; letter-spacing: -0.38px; }

  /* Article, étude de cas, définition. */
  .cms__date { padding-top: 41px; }
  .cms__titre { width: auto; max-width: 360px; margin-top: 26px; font-size: 40px; line-height: 40px; letter-spacing: -1.6px; }
  .cms--haut .cms__titre { padding-top: 46px; margin-top: 0; }
  .cms--cas .cms__titre { font-size: 40px; line-height: 40px; letter-spacing: -1.6px; }
  .cms__chapo { width: auto; max-width: 360px; margin-top: 25px; font-size: 16px; line-height: 17.6px; }
  .cms__couv { margin: 30px 15px 0; height: 250px; }
  .cms--cas .cms__couv { height: 250px; margin-top: 30px; }
  .cms__grille { margin: 30px 15px 0; grid-template-columns: 1fr; gap: 40px; }
  .cms--cas .cms__grille { grid-template-columns: 1fr; margin-top: 30px; }
  .cms--terme .cms__grille { margin-top: 76px; }
  .aparte { position: static; }
  .corps h2 { margin: 30px 0 20px; font-size: 28px; line-height: 30.8px; letter-spacing: -1.12px; }
  .corps h3 { margin: 30px 0 20px; font-size: 24px; line-height: 26.4px; letter-spacing: -0.96px; }

  .cms__suite { padding: 40px 15px 160px; }
  .cms__suite--terme { padding: 35px 15px 120px; }
  .plus--termes { padding-bottom: 134px; }
  .cms__suite-tete { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cms__suite-titre { font-size: 28px; line-height: 30.8px; letter-spacing: -1.12px; }

  .contact { padding: 90px 0 18px; }
  .contact__titre { width: auto; max-width: 292px; }
  .contact__texte { width: auto; max-width: 233px; margin-top: 41px; }

  .legal-tete { padding: 40px 0 120px; }
  .legal-tete__titre { font-size: 40px; line-height: 40px; letter-spacing: -1.6px; }
  .legal-tete__date { margin-top: 10px; font-size: 16px; line-height: 17.6px; }
  .legal-corps .corps { width: auto; margin-inline: 25px; }

  /* Encart d'equipe : 324px de large, visages 137 par 137, deux par
     rangee. Cotes relevees en 390. */
  .equipe { width: 324px; margin: 154px auto 0; }
  .equipe__visages { flex-wrap: wrap; gap: 10px; margin-top: 38px; }
  .equipe__visages img { width: 137px; height: 137px; }
  .equipe__titre { font-size: 26px; line-height: 28.6px; }
  .equipe__texte { width: 284px; margin-top: 37px; }
  .equipe .pilule { margin-top: 37px; }

  .carte-perso__duo { grid-template-columns: 1fr; gap: 20px; width: auto; margin-inline: 20px; }
}
