/* ============================================================
   Direction marketing au mandat — système visuel

   VOCABULAIRE COMPLET DU SITE. Rien d'autre ne doit être ajouté.

   5 tailles ...... --t-display · --t-statement · --t-nom
                    --t-corps · --t-petit
   3 graisses ..... 400 · 500 · 600
   1 encre ........ --encre — toute la typographie est noire
   2 liens ........ .cta · .btn
   4 fonds ........ papier · blanc · aplat rose · champ rose

   La hiérarchie vient de la taille, de la graisse, de l'espace et
   de l'alignement — jamais d'un nouveau traitement graphique.
   Aucune capitale, aucun interlettrage de libellé, aucun filet
   décoratif : si un élément peut se dire avec un style existant,
   on réutilise ce style.
   ============================================================ */

/* ------------------------------------------------------------
   FONTES — Inter, servies localement (aucun service externe)
   ------------------------------------------------------------ */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ------------------------------------------------------------
   TOKENS
   ------------------------------------------------------------ */
:root {
  --papier: #F3F1ED;   /* blanc cassé */
  --blanc: #FFFFFF;
  --encre: #141414;    /* presque noir — la seule couleur de texte */
  --filet: color-mix(in srgb, var(--encre) 14%, transparent);

  /* rose — jamais en couleur de texte, uniquement en surface */
  --rose-clair: #FAEFF1;   /* voile — départ des champs */
  --rose-aplat: #EFCBD5;   /* aplat franc, texte encre dessus (12,6:1) */

  --grotesk: "Inter", "Suisse Int'l", -apple-system, "Helvetica Neue", sans-serif;

  /* les cinq seules tailles du site */
  --t-display: clamp(44px, 11.5vw, 62px);
  --t-statement: clamp(28px, 7.2vw, 38px);
  --t-nom: clamp(30px, 7.6vw, 40px);
  --t-corps: 17px;
  --t-petit: 15px;

  --s-section: clamp(64px, 14vw, 92px);
  --s-titre: clamp(22px, 5vw, 32px);
  --s-bloc: clamp(32px, 7vw, 44px);

  --marge: clamp(20px, 5.5vw, 24px);
  --max: 1560px;
  --gouttiere: clamp(20px, 1.8vw, 28px);
}
@media (min-width: 1024px) {
  :root {
    --t-display: clamp(76px, 8.5vw, 140px);
    --t-statement: clamp(38px, 3.2vw, 54px);
    --t-nom: clamp(34px, 3vw, 46px);
    --t-corps: 18px;
    --t-petit: 15px;
    --s-section: clamp(104px, 9vw, 150px);
    --s-titre: clamp(26px, 2.8vw, 40px);
    --s-bloc: clamp(40px, 3.6vw, 60px);
    --marge: clamp(48px, 5vw, 80px);
  }
}

/* ------------------------------------------------------------
   BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--grotesk);
  font-size: var(--t-corps);
  font-weight: 400;
  line-height: 1.5;
  color: var(--encre);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--marge); }

.br-m { display: inline; }
.br-d { display: none; }
@media (min-width: 1024px) {
  .br-m { display: none; }
  .br-d { display: inline; }
}

:focus-visible { outline: 2px solid var(--encre); outline-offset: 4px; }

/* ------------------------------------------------------------
   LES CINQ REGISTRES — tout le texte du site passe par ici
   ------------------------------------------------------------ */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; }
.t-display { font-size: var(--t-display); line-height: 1.02; }
.t-statement { font-size: var(--t-statement); line-height: 1.1; letter-spacing: -0.02em; }
.t-nom { font-size: var(--t-nom); line-height: 1.06; letter-spacing: -0.022em; font-weight: 500; }

/* libellé courant — le SEUL style de petit titre du site.
   Sert aux labels de cas, aux questions de FAQ, partout. */
.t-libelle { font-size: var(--t-corps); font-weight: 600; letter-spacing: 0; line-height: 1.5; }


/* ------------------------------------------------------------
   FONDS — quatre, pas un de plus.
   Les champs forment une famille : même palette, compositions
   différentes selon la section (droite, gauche, vertical).
   ------------------------------------------------------------ */
.s-blanc { background: var(--blanc); }
.aplat-rose { background: var(--rose-aplat); }

/* hero : la lumière entre par la droite et déborde hors écran.
   Le champ remonte sous la barre de navigation (transparente) pour
   qu'aucune bande de papier ne coupe le haut de la page. */
.champ-droite { position: relative; }
.champ-droite::before {
  content: '';
  position: absolute;
  inset: -140px 0 0 0;
  z-index: -1;
  background-image: linear-gradient(101deg,
    var(--papier) 0%,
    var(--papier) 26%,
    var(--rose-clair) 58%,
    var(--rose-aplat) 100%);
}
/* clôture : orientation inversée, champ plus large.
   Un voile vertical éteint le champ en pied de section pour que le
   raccord avec le footer ne laisse aucune couture. */
.champ-gauche {
  background-image:
    linear-gradient(180deg, transparent 58%, var(--papier) 100%),
    linear-gradient(281deg,
      var(--papier) 0%,
      var(--rose-clair) 44%,
      var(--rose-aplat) 100%);
}
@media (max-width: 767px) {
  /* le texte occupe toute la largeur : les champs deviennent verticaux */
  .champ-droite::before {
    background-image: linear-gradient(174deg,
      var(--papier) 0%, var(--papier) 38%, var(--rose-clair) 72%, var(--rose-aplat) 100%);
  }
  .champ-gauche {
    background-image:
      linear-gradient(180deg, transparent 66%, var(--papier) 100%),
      linear-gradient(186deg,
        var(--papier) 0%, var(--rose-clair) 48%, var(--rose-aplat) 100%);
  }
}

/* ------------------------------------------------------------
   LIENS — deux formes, aucune autre
   ------------------------------------------------------------ */
.cta {
  display: inline-block;
  font-size: var(--t-corps);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 0.25s ease;
}
.cta .arr, .btn .arr { display: inline-block; transition: transform 0.25s ease; }
.cta:hover { text-decoration-color: currentColor; }
.cta:hover .arr, .btn:hover .arr { transform: translateX(6px); }

.btn {
  display: inline-block;
  max-width: 100%; /* un libellé long (adresse e-mail) se replie au lieu de déborder */
  padding: 13px 18px;
  font-size: var(--t-corps);
  font-weight: 500;
  color: var(--encre);
  border: 1.5px solid var(--encre);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--encre); color: var(--papier); }

/* ------------------------------------------------------------
   NAV — collante, signature à gauche, sections à droite
   ------------------------------------------------------------ */
/* transparente tant que le hero est à l'écran — elle se pose sur le
   champ rose sans le couper — puis opaque une fois le hero passé */
.barre { position: sticky; top: 0; z-index: 20; transition: background-color 0.25s ease; }
.barre.barre-active { background: var(--papier); }
nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}
.signature, .nav-links { font-size: var(--t-petit); }
.signature { font-weight: 500; white-space: nowrap; }
.nav-links { display: flex; gap: clamp(20px, 4vw, 44px); }
.nav-links a, .signature { padding-bottom: 2px; border-bottom: 1.5px solid transparent; transition: border-color 0.2s ease; }
.nav-links a:hover, .signature:hover { border-color: var(--encre); }
.nav-links a { white-space: nowrap; }
/* sur l'accueil la signature est déjà en grand dans le hero :
   elle n'apparaît dans la barre qu'une fois le hero passé */
.accueil .barre .signature { opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.accueil .barre.barre-active .signature { opacity: 1; pointer-events: auto; }
@media (max-width: 640px) {
  /* la signature reste : c'est le seul chemin de retour vers la home */
  nav { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 16px; }
}

/* ------------------------------------------------------------
   SECTIONS
   ------------------------------------------------------------ */
section, .hero, .page-hero { padding-block: var(--s-section); }
.sec-serre { padding-block: var(--s-bloc); }
@media (min-width: 1024px) {
  .g12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gouttiere); }
}

/* ------------------------------------------------------------
   HERO DE L'ACCUEIL
   ------------------------------------------------------------ */
.hero { padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(72px, 12vw, 128px); }
/* l'offre en une ligne discrète — à peine plus grande que le menu —
   puis la promesse en registre display : c'est elle qu'on lit d'abord */
.hero-sur { font-weight: 500; }
.hero h1 { margin-top: clamp(26px, 6.5vw, 32px); }
.hero-phrase { max-width: 30em; margin-top: clamp(24px, 6vw, 30px); }
.hero .btn { margin-top: clamp(32px, 8vw, 40px); }
.hero-logos { margin-top: clamp(72px, 17vw, 104px); }
@media (min-width: 768px) {
  /* les césures du h1 sont composées à la main : la colonne doit les laisser respirer */
  .hero-txt { max-width: 72%; }
}

.page-hero { padding-top: clamp(28px, 4vw, 52px); padding-bottom: var(--s-bloc); }
.page-hero > .wrap > p { max-width: 32em; margin-top: var(--s-titre); }
.page-hero .btn { margin-top: clamp(26px, 4vw, 38px); }

/* ------------------------------------------------------------
   LOGOS
   ------------------------------------------------------------ */
.logos-liste { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 4vw, 32px) clamp(28px, 4.5vw, 56px); }
.logos-liste img { height: clamp(24px, 5vw, 32px); width: auto; filter: brightness(0) opacity(0.4); }
.logos-liste img.lg-haut { height: clamp(36px, 7.4vw, 48px); }
@media (min-width: 1024px) {
  .logos-liste { flex-wrap: nowrap; justify-content: space-between; gap: clamp(16px, 2vw, 40px); }
  .logos-liste img { height: clamp(19px, 1.8vw, 26px); }
  .logos-liste img.lg-haut { height: clamp(32px, 3vw, 42px); }
}

/* ------------------------------------------------------------
   PROJETS (accueil) — image, nom, phrase, lien. Rien d'autre.
   ------------------------------------------------------------ */
.projets-titre { margin-bottom: var(--s-titre); }
.projet { display: block; margin-top: clamp(48px, 10vw, 64px); }
.projet:first-of-type { margin-top: 0; }
.projet figure { overflow: hidden; background: var(--papier); aspect-ratio: 4 / 3; }
.projet img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.projet:hover img { transform: scale(1.015); }
.projet .nom { margin-top: 18px; }
.projet .texte { margin-top: 12px; }
.projet .cta { margin-top: 14px; }
.projet:hover .cta { text-decoration-color: currentColor; }
.projet:hover .cta .arr { transform: translateX(6px); }
.autres-projets { margin-top: clamp(44px, 8vw, 64px); }
@media (min-width: 768px) {
  .projets-liste { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 3vw, 48px); }
  .projet, .projet:first-of-type { margin-top: 0; }
}

/* ------------------------------------------------------------
   DOMAINES — moment graphique rose, grille typographique nue
   ------------------------------------------------------------ */
.domaines-liste { list-style: none; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 1024px) {
  .domaines-titre { grid-column: 1 / 4; }
  .domaines-liste {
    grid-column: 4 / 13;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    gap: 16px clamp(32px, 5vw, 88px);
  }
}
@media (max-width: 1023px) { .domaines-liste { margin-top: var(--s-titre); } }

/* ------------------------------------------------------------
   USP · BIO
   ------------------------------------------------------------ */
/* l'USP tient en un seul bloc typographique — aucun second niveau */
.usp { max-width: 26em; }
.bio-corps { margin-top: var(--s-titre); }
.bio-corps p { max-width: 32em; }
.bio-corps .cta { margin-top: clamp(24px, 4vw, 34px); }
@media (min-width: 1024px) {
  .bio-txt h2 { grid-column: 1 / 7; }
  .bio-corps { grid-column: 7 / 12; margin-top: 0; }
}

/* ------------------------------------------------------------
   CLÔTURE
   ------------------------------------------------------------ */
.parlons { padding-block: clamp(72px, 13vw, 118px); }
.parlons p { max-width: 30em; margin-top: var(--s-titre); }
.parlons .btn { margin-top: clamp(26px, 4vw, 38px); }

/* ------------------------------------------------------------
   PAGE PROJETS — la page la plus sobre du site.
   Aucun style propre : nom, libellés et texte courant sont ceux
   du reste du site. L'alternance blanc / rose sépare les cas.
   ------------------------------------------------------------ */
/* l'alternance blanc / rose sépare les cas — aucun filet */
.chapitre { padding-block: clamp(56px, 10vw, 96px); }
.chap-mission { margin-top: 12px; max-width: 26em; }
.chap-media { margin-top: clamp(28px, 5vw, 44px); overflow: hidden; background: var(--papier); aspect-ratio: 16 / 9; }
.chap-media img { width: 100%; height: 100%; object-fit: cover; }
.chap-media.media-contenue { background: var(--blanc); }
.chap-media.media-contenue img { object-fit: contain; padding: clamp(24px, 5vw, 64px); }
.chap-grille { margin-top: clamp(28px, 5vw, 44px); }
.chap-bloc p, .chap-bloc ul { margin-top: 8px; max-width: 34em; }
.chap-bloc + .chap-bloc { margin-top: clamp(24px, 4vw, 32px); }
.chiffres { list-style: none; }
.chiffres li { border-top: 1px solid var(--filet); padding-block: 8px; }
.chiffres li:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 1024px) {
  .chap-bloc, .chap-bloc + .chap-bloc { margin-top: 0; }
  .chap-bloc-probleme { grid-column: 1 / 5; }
  .chap-bloc-intervention { grid-column: 5 / 9; }
  .chap-bloc-resultats { grid-column: 9 / 13; }
}

/* ------------------------------------------------------------
   PAGE À PROPOS — même hero que partout : titre + statement.
   Le rose vient d'un aplat aligné sur la colonne du portrait.
   ------------------------------------------------------------ */
.apropos-cle { margin-top: var(--s-titre); max-width: 20em; }
.apropos-portrait { margin-top: clamp(32px, 6vw, 48px); }
.apropos-portrait img { width: 100%; filter: grayscale(1); }
@media (min-width: 768px) {
  .apropos-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gouttiere); align-items: start; }
  .apropos-txt { grid-column: 1 / 8; }
  /* l'aplat part de la colonne 9 et sort par le bord droit de l'écran */
  .apropos-portrait {
    grid-column: 9 / 13;
    margin-top: 0;
    background: var(--rose-aplat);
    padding: clamp(20px, 2.4vw, 32px);
    margin-right: calc(-1 * var(--marge));
    padding-right: var(--marge);
  }
}

.bio-longue p { max-width: 34em; margin-top: 16px; }
.bio-longue p:first-child { margin-top: 0; }
@media (max-width: 1023px) {
  /* même respiration titre → contenu que partout ailleurs */
  .bio-longue { margin-top: var(--s-titre); }
}
@media (min-width: 1024px) {
  .bio-longue-titre { grid-column: 1 / 4; }
  .bio-longue { grid-column: 4 / 11; }
}

/* ------------------------------------------------------------
   FAQ — un seul modèle, celui des pages légales
   ------------------------------------------------------------ */
.faq-titre { margin-bottom: var(--s-titre); }
.faq-item { margin-top: clamp(32px, 7vw, 48px); }
.faq-item:first-of-type { margin-top: 0; }
.faq-item h3 { max-width: 36em; }
.faq-item p { margin-top: 8px; max-width: 36em; }
@media (min-width: 1024px) {
  .faq-liste { margin-left: 33.5%; }
}

/* ------------------------------------------------------------
   CONTACT
   ------------------------------------------------------------ */
/* trois moyens de contact, strictement au même niveau */
.page-hero .ctas { margin-top: clamp(26px, 4vw, 38px); display: flex; flex-wrap: wrap; gap: 12px 16px; }
.page-hero .ctas .btn { margin-top: 0; }
.page-hero .ville { margin-top: clamp(24px, 4vw, 34px); font-size: var(--t-petit); max-width: none; }
.page-hero .ville + .ville { margin-top: 6px; }
.page-contact .page-hero { padding-bottom: var(--s-section); }

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
footer { border-top: 1px solid var(--filet); padding-block: clamp(28px, 5vw, 40px); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px 48px; justify-content: space-between; align-items: flex-start; }
.footer-id, .footer-links { font-size: var(--t-petit); }
.footer-id p { margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-links a { padding-bottom: 2px; border-bottom: 1.5px solid transparent; transition: border-color 0.2s ease; }
.footer-links a:hover { border-color: var(--encre); }

/* ------------------------------------------------------------
   RÉVÉLATION AU SCROLL
   ------------------------------------------------------------ */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; }
.rv.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .projet img, .cta .arr, .btn .arr { transition: none; }
}
