/* ==========================================================================
   paulcarpentier.fr — feuille de style
   --------------------------------------------------------------------------
   Principes : l'espace. Un fond bleu nuit semé d'étoiles, des nébuleuses
   discrètes, un accent dégradé violet → cyan, une étoile orangée pour les
   petits détails. Space Grotesk pour les titres, Inter pour le texte.
   Le site est toujours sombre, quel que soit le réglage de l'appareil.

   Sommaire
    1. Polices (auto-hébergées, licence SIL OFL)
    2. Variables : couleurs, typographie, espacements
    3. Base
    4. Mise en page & titres de section
    5. En-tête
    6. Boutons, liens, étiquettes
    7. Héros
    8. « Qu'est-ce qui coince ? » (héros), fenêtres & réalisations
    9. Refonte (méthode) & expertises
   10. Pour qui
   11. Formules
   12. Engagements
   13. À propos
   14. Questions fréquentes
   15. Contact & formulaire
   16. Pied de page
   17. Pages de texte (mentions légales, 404)
   18. Animations, accessibilité, impression
   ========================================================================== */


/* 1. Polices
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Police de repli recalée sur les proportions d'Inter : le texte ne « saute »
   pas quand la vraie police finit de se charger. */
@font-face {
  font-family: "Inter repli";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}


/* 2. Variables
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Palette : nuit, étoiles, nébuleuses */
  --c-fond: #0c0a17;          /* fond principal, nuit chaude */
  --c-surface: #171427;       /* cartes */
  --c-teinte: #110e1f;        /* fond de section occasionnel */
  --c-encre: #f6f1ea;         /* titres et texte */
  --c-encre-douce: #b5adc2;   /* texte secondaire */
  --c-ligne: #262039;
  --c-ligne-forte: #3a3253;
  --c-accent: #ffb070;        /* orangé de la comète : liens, surtitres, détails */
  --c-accent-fonce: #ffd2a8;  /* survol (plus clair sur fond sombre) */
  --c-accent-pale: #2b1c24;   /* fonds d'icônes */
  --c-corail: #ff8a6a;
  --c-etoile: #ffb86b;        /* petites étoiles décoratives */
  --c-sur-accent: #1a0e0a;    /* texte posé sur le dégradé */
  --c-bande: #150f23;         /* section « Engagements » */
  --c-bande-texte: #f6f1ea;
  --c-bande-douce: #b5adc2;
  --degrade: linear-gradient(120deg, #ffc27a, #ff8a5b 55%, #ec74b0);
  --souligne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='d'%3E%3Cstop offset='0' stop-color='%23ffc27a'/%3E%3Cstop offset='.55' stop-color='%23ff8a5b'/%3E%3Cstop offset='1' stop-color='%23ec74b0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 11C60 4 120 3 180 6s90 6 114 2' fill='none' stroke='url(%23d)' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");

  --ombre-carte: 0 1px 2px rgb(0 0 0 / 0.4);
  --ombre-fenetre:
    0 1px 2px rgb(0 0 0 / 0.4),
    0 30px 80px -30px rgb(0 0 0 / 0.8),
    0 0 80px -20px rgb(255 150 95 / 0.25);

  /* Typographie */
  --police-titre: "Space Grotesk", "Inter", "Inter repli", system-ui, sans-serif;
  --police-texte: "Inter", "Inter repli", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t-heros: clamp(2.5rem, 1.6rem + 3.6vw, 4.375rem);   /* 40 → 70 px */
  --t-h2: clamp(1.875rem, 1.5rem + 1.6vw, 2.875rem);    /* 30 → 46 px */
  --t-h3: clamp(1.1875rem, 1.13rem + 0.25vw, 1.375rem); /* 19 → 22 px */
  --t-chapo: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem); /* 17 → 21 px */
  --t-texte: 1.0625rem;                                  /* 17 px */
  --t-petit: 0.9375rem;                                  /* 15 px */
  --t-mini: 0.8125rem;                                   /* 13 px */

  /* Formes & espacements */
  --rayon: 1rem;
  --rayon-petit: 0.625rem;
  --largeur: 72rem;
  --gouttiere: 1rem;
  --espace-section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --hauteur-entete: 4.25rem;
}

@media (min-width: 40em) {
  :root {
    --gouttiere: 2rem;
  }
}


/* 3. Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hauteur-entete) + 1rem);
}

body {
  margin: 0;
  background: var(--c-fond);
  color: var(--c-encre);
  font-family: var(--police-texte);
  font-size: var(--t-texte);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Ciel étoilé : trois couches de points, fixes derrière tout le site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 140px 90px, rgb(255 255 255 / 0.7), transparent),
    radial-gradient(1.5px 1.5px at 80px 160px, rgb(255 214 170 / 0.9), transparent) 0 0 / 220px 220px,
    radial-gradient(1px 1px at 60px 40px, rgb(255 255 255 / 0.5), transparent) 0 0 / 130px 130px,
    radial-gradient(1.5px 1.5px at 200px 260px, rgb(236 116 176 / 0.8), transparent) 0 0 / 370px 370px;
  background-size: 220px 220px, 220px 220px, 220px 220px, 130px 130px, 370px 370px;
  opacity: 0.55;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  font-size: var(--t-h3);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

::selection {
  background: var(--c-accent);
  color: var(--c-sur-accent);
}

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


/* 4. Mise en page & titres de section
   ========================================================================== */

.conteneur {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.section {
  padding-block: var(--espace-section);
}

.section--teinte {
  background: var(--c-teinte);
  border-block: 1px solid var(--c-ligne);
}

.section__entete {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section__entete h2 {
  font-size: var(--t-h2);
}

.section__entete p:not(.surtitre) {
  margin-top: 1rem;
  color: var(--c-encre-douce);
  font-size: var(--t-chapo);
  line-height: 1.55;
}

.surtitre {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--c-accent);
  font-size: var(--t-mini);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.surtitre::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--degrade);
}


/* 5. En-tête
   ========================================================================== */

.evitement {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: var(--rayon-petit);
  background: var(--c-encre);
  color: var(--c-fond);
  font-weight: 600;
  transform: translateY(-200%);
}

.evitement:focus {
  transform: none;
}

/* Texte lu par les lecteurs d'écran, invisible à l'écran */
.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Barre flottante, arrondie, qui reste visible en haut de l'écran */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 0.75rem;
}

.entete__barre {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 3.5rem;
  padding: 0 0.4375rem 0 1.125rem;
  border: 1px solid rgb(255 255 255 / 0.09);
  border-radius: 999px;
  background: rgb(17 14 31 / 0.72);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 12px 32px -16px rgb(0 0 0 / 0.7);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-right: auto;
  text-decoration: none;
}

/* La comète du logo : elle file un peu vers le haut au survol */
.logo__comete {
  width: 1.875rem;
  height: 1.875rem;
  flex: none;
  transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.logo:hover .logo__comete {
  transform: translate(2px, -2px);
}

.logo__nom {
  font-family: var(--police-titre);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo__metier {
  padding-left: 0.75rem;
  border-left: 1px solid var(--c-ligne-forte);
  color: var(--c-encre-douce);
  font-size: var(--t-mini);
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 40em) {
  .logo__metier {
    display: none;
  }
}

.nav ul {
  display: flex;
  gap: 0.25rem;
}

.nav a {
  display: block;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  color: var(--c-encre-douce);
  font-size: var(--t-petit);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.nav a:hover {
  background: var(--c-teinte);
  color: var(--c-encre);
}

@media (max-width: 64em) {
  .nav {
    display: none;
  }
}


/* 6. Boutons, liens, étiquettes
   ========================================================================== */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--degrade) border-box;
  color: var(--c-sur-accent);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.15s, filter 0.15s, transform 0.15s;
}

.bouton:hover {
  box-shadow: 0 0 28px -4px rgb(255 150 95 / 0.6);
  filter: brightness(1.08);
}

.bouton:active {
  transform: translateY(1px);
}

.bouton svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  transition: transform 0.2s;
}

.bouton:hover .fleche {
  transform: translateX(3px);
}

.bouton--secondaire {
  border-color: var(--c-ligne-forte);
  background: transparent;
  color: var(--c-encre);
}

.bouton--secondaire:hover {
  border-color: var(--c-accent);
  box-shadow: none;
  filter: none;
}

.bouton--petit {
  min-height: 2.5rem;
  padding: 0.5rem 1.125rem;
  font-size: var(--t-petit);
}

/* Le bouton de l'en-tête tient toujours sur une ligne, même sur petit écran */
.entete .bouton {
  flex: none;
  white-space: nowrap;
}

@media (max-width: 24em) {
  .entete__barre {
    gap: 0.5rem;
    padding-left: 0.875rem;
  }

  .entete .bouton {
    padding-inline: 0.875rem;
  }
}

@media (max-width: 22.5em) {
  .logo {
    gap: 0.4375rem;
  }

  .logo__comete {
    width: 1.5rem;
    height: 1.5rem;
  }

  .logo__nom {
    font-size: 0.9375rem;
  }

  .entete .bouton {
    padding-inline: 0.75rem;
  }
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--c-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.lien-fleche:hover {
  color: var(--c-accent-fonce);
  text-decoration-thickness: 2px;
}

.lien-fleche svg {
  width: 1rem;
  height: 1rem;
}

.etiquettes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.etiquettes li {
  padding: 0.1875rem 0.625rem;
  border: 1px solid var(--c-ligne);
  border-radius: 999px;
  color: var(--c-encre-douce);
  font-size: var(--t-mini);
  font-weight: 500;
}


/* 7. Héros
   ========================================================================== */

.heros {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(1rem, 2vw, 2rem);
}

/* Nébuleuses orangée et rosée derrière le héros */
.heros::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(36rem 26rem at 82% 28%, rgb(255 150 95 / 0.22), transparent 70%),
    radial-gradient(30rem 22rem at 100% 70%, rgb(236 116 176 / 0.12), transparent 70%),
    radial-gradient(26rem 20rem at 5% 10%, rgb(255 184 107 / 0.07), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}

/* La comète du logo, en grand, qui traverse le ciel du héros */
.heros::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  right: -3rem;
  z-index: -1;
  width: clamp(14rem, 8rem + 22vw, 30rem);
  aspect-ratio: 1;
  background: url("/assets/img/comete.svg") no-repeat center / contain;
  opacity: 0.4;
  pointer-events: none;
}

@media (min-width: 60em) {
  .heros::after {
    top: -1.5rem;
    right: 2%;
    opacity: 0.5;
  }
}

.heros__grille {
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 5rem);
  align-items: center;
}

@media (min-width: 60em) {
  .heros__grille {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.pastille {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--c-ligne);
  border-radius: 999px;
  background: var(--c-surface);
  box-shadow: var(--ombre-carte);
  font-size: var(--t-petit);
  font-weight: 500;
}

.pastille__point {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--degrade);
  box-shadow: 0 0 10px rgb(236 116 176 / 0.8);
}

.heros h1 {
  max-width: 15ch;
  font-size: var(--t-heros);
  font-weight: 660;
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.insecable {
  white-space: nowrap;
}

/* Trait dessiné à la main sous quelques mots */
.souligne {
  padding-bottom: 0.1em;
  background: var(--souligne) no-repeat left bottom / 100% 0.28em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.heros__chapo {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--c-encre-douce);
  font-size: var(--t-chapo);
  line-height: 1.55;
}

/* Bandeau des domaines d'intervention, sous le héros */
.heros__themes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-ligne);
  color: var(--c-encre-douce);
  font-family: var(--police-titre);
  font-size: var(--t-petit);
  font-weight: 500;
}

.heros__themes li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.heros__themes li::before {
  content: "✦";
  color: var(--c-accent);
  font-size: 0.7em;
}

.heros__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}


/* 8. « Qu'est-ce qui coince ? » (héros), fenêtres & réalisations
   ========================================================================== */

/* Héros : « Qu'est-ce qui coince ? », six situations qui mènent au formulaire */
.heros__aiguillage {
  width: min(100%, 32rem);
  justify-self: center;
}

.aiguillage__titre {
  font-family: var(--police-titre);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.aiguillage__aide {
  margin-top: 0.375rem;
  color: var(--c-encre-douce);
  font-size: var(--t-petit);
}

.aiguillage {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

@media (min-width: 30em) {
  .aiguillage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.aiguillage a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  height: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--c-ligne-forte);
  border-radius: 1rem;
  background: rgb(23 20 39 / 0.75);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.aiguillage a:hover {
  border-color: var(--c-accent);
  background: var(--c-surface);
  box-shadow: 0 0 28px -10px rgb(255 150 95 / 0.55);
  transform: translateY(-2px);
}

.aiguillage__icone {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 0.75rem;
  background: var(--c-accent-pale);
  color: var(--c-accent);
  transition: background-color 0.2s, color 0.2s;
}

.aiguillage a:hover .aiguillage__icone {
  background: var(--degrade);
  color: var(--c-sur-accent);
}

.aiguillage__icone svg {
  width: 1.25rem;
  height: 1.25rem;
}

.aiguillage__texte {
  font-size: var(--t-petit);
  font-weight: 600;
  line-height: 1.3;
}

.aiguillage__texte small {
  display: block;
  margin-top: 0.125rem;
  color: var(--c-encre-douce);
  font-size: var(--t-mini);
  font-weight: 400;
}

/* Fenêtre de navigateur (cadre des réalisations) */
.fenetre {
  overflow: hidden;
  border: 1px solid var(--c-ligne);
  border-radius: var(--rayon);
  background: var(--c-surface);
  box-shadow: var(--ombre-fenetre);
}

.fenetre__barre {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--c-ligne);
}

.fenetre__barre > span:not(.fenetre__adresse) {
  width: 0.625rem;
  height: 0.625rem;
  flex: none;
  border-radius: 50%;
  background: var(--c-ligne-forte);
}

.fenetre__adresse {
  min-width: 0;
  margin-left: 0.5rem;
  padding: 0.125rem 0.75rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--c-teinte);
  color: var(--c-encre-douce);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Réalisations : une carte vedette (la refonte) et deux créations */
.realisations {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

@media (min-width: 46em) {
  .realisations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .realisation--vedette {
    grid-column: 1 / -1;
  }
}

/* Sur grand écran, la refonte s'étale : capture à gauche, texte à droite */
@media (min-width: 64em) {
  .realisation.realisation--vedette {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 2rem 0.75rem 0.75rem;
  }

  .realisation--vedette .realisation__texte {
    padding-inline: 0;
  }
}

.realisation {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.75rem 0.75rem 1.5rem;
  border: 1px solid var(--c-ligne);
  border-radius: calc(var(--rayon) + 0.5rem);
  background: rgb(23 20 39 / 0.5);
}

.realisation .fenetre {
  box-shadow: none;
}

.realisation__texte {
  padding-inline: 0.75rem;
}

/* Capture d'écran de la page d'accueil, calée en haut */
.realisation__capture {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.realisation__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.625rem;
  margin-bottom: 0.625rem;
  color: var(--c-encre-douce);
  font-size: var(--t-mini);
  font-weight: 500;
}

.badge {
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: var(--degrade);
  color: var(--c-sur-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.realisation h3 {
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
}

.realisation--vedette h3 {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
}

.realisation__texte > p:not(.realisation__meta) {
  margin-top: 0.5rem;
  color: var(--c-encre-douce);
}

.realisation__texte .lien-fleche {
  margin-top: 0.875rem;
  font-size: var(--t-petit);
}


/* 9. Refonte (méthode) & expertises
   ========================================================================== */

/* Les cinq étapes d'une refonte, reliées par un fil dégradé */
.etapes {
  display: grid;
  gap: 1rem;
  counter-reset: etape;
}

@media (min-width: 46em) {
  .etapes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .etapes {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.etapes li {
  position: relative;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--c-ligne);
  border-radius: var(--rayon);
  background: var(--c-surface);
}

.etapes li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--degrade);
  opacity: 0.7;
}

.etapes__numero {
  display: block;
  margin-bottom: 0.75rem;
  background: var(--degrade);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--police-titre);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.etapes h3 {
  font-size: 1.125rem;
}

.etapes p {
  margin-top: 0.5rem;
  color: var(--c-encre-douce);
  font-size: var(--t-petit);
}

.services {
  display: grid;
  gap: 1rem;
}

@media (min-width: 46em) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.carte-service {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  border: 1px solid var(--c-ligne);
  border-radius: var(--rayon);
  background: var(--c-surface);
  box-shadow: var(--ombre-carte);
  transition: border-color 0.2s, transform 0.2s;
}

.carte-service:hover {
  border-color: var(--c-ligne-forte);
  transform: translateY(-2px);
}

.carte-service__icone {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.5rem;
  border-radius: 0.75rem;
  background: var(--c-accent-pale);
  color: var(--c-accent);
}

.carte-service__icone svg {
  width: 1.5rem;
  height: 1.5rem;
}

.carte-service p {
  color: var(--c-encre-douce);
}

.carte-service .etiquettes {
  margin-top: auto;
  padding-top: 0.5rem;
}

.carte-service p.carte-service__accroche {
  margin-bottom: -0.375rem;
  color: var(--c-accent);
  font-size: var(--t-mini);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* « Et aussi » : les autres services, regroupés en trois familles */
.autres {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}

.autres__titre {
  margin-bottom: 1.75rem;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
}

.autres__grille {
  display: grid;
  gap: 1rem;
}

@media (min-width: 60em) {
  .autres__grille {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.autres__groupe {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--c-ligne);
  border-radius: var(--rayon);
  background: rgb(23 20 39 / 0.6);
}

.autres__groupe h4 {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 1.25rem;
  font-family: var(--police-titre);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.autres__groupe h4 svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  color: var(--c-accent);
}

.autres__groupe ul {
  display: grid;
  gap: 1rem;
}

.autres__groupe li {
  color: var(--c-encre-douce);
  font-size: var(--t-petit);
  line-height: 1.55;
}

.autres__groupe strong {
  display: block;
  margin-bottom: 0.125rem;
  color: var(--c-encre);
  font-weight: 600;
}


/* 10. Pour qui
   ========================================================================== */

.secteurs {
  display: grid;
  gap: 1rem;
}

@media (min-width: 40em) {
  .secteurs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .secteurs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.secteur {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--c-ligne);
  border-radius: var(--rayon);
  background: var(--c-surface);
}

/* Une petite étoile devant chaque titre */
.secteur h3::before {
  content: "✦";
  margin-right: 0.5rem;
  color: var(--c-etoile);
  font-size: 0.8em;
}

.secteur p {
  color: var(--c-encre-douce);
  font-size: var(--t-petit);
}

/* La dernière carte invite à écrire : bordure dégradée */
.secteur--appel {
  border-color: transparent;
  background:
    linear-gradient(var(--c-surface), var(--c-surface)) padding-box,
    var(--degrade) border-box;
}

.secteur--appel h3::before {
  content: none;
}

.secteur--appel .lien-fleche {
  margin-top: auto;
  padding-top: 0.25rem;
}


/* 11. Formules
   ========================================================================== */

.formules {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 60em) {
  .formules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.formule {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border: 1px solid var(--c-ligne);
  border-radius: calc(var(--rayon) + 0.25rem);
  background: var(--c-surface);
}

/* L'audit, point de départ conseillé : bordure dégradée et halo */
.formule--conseillee {
  border-color: transparent;
  background:
    linear-gradient(var(--c-surface), var(--c-surface)) padding-box,
    var(--degrade) border-box;
  box-shadow: 0 0 60px -24px rgb(255 150 95 / 0.55);
}

.formule__etiquette {
  align-self: flex-start;
  padding: 0.1875rem 0.625rem;
  border: 1px solid var(--c-ligne-forte);
  border-radius: 999px;
  color: var(--c-encre-douce);
  font-size: var(--t-mini);
  font-weight: 500;
}

.formule--conseillee .formule__etiquette {
  border-color: transparent;
  background: var(--degrade);
  color: var(--c-sur-accent);
  font-weight: 600;
}

.formule h3 {
  margin-top: 0.5rem;
  font-size: clamp(1.625rem, 1.4rem + 1vw, 2rem);
  letter-spacing: -0.03em;
}

.formule__accroche {
  margin-top: -0.375rem;
  color: var(--c-accent);
  font-weight: 600;
}

.formule > p:not(.formule__etiquette):not(.formule__accroche) {
  color: var(--c-encre-douce);
}

.formule__points {
  display: grid;
  gap: 0.625rem;
  margin: 0.5rem 0 1.25rem;
  padding-top: 1.125rem;
  border-top: 1px dashed var(--c-ligne-forte);
  font-size: var(--t-petit);
}

.formule__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  line-height: 1.45;
}

.formule__points svg {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.1em;
  flex: none;
  color: var(--c-corail);
}

.formule .bouton {
  margin-top: auto;
  align-self: flex-start;
}

.formules__note {
  max-width: 44rem;
  margin: 2rem auto 0;
  color: var(--c-encre-douce);
  text-align: center;
}


/* 12. Engagements
   ========================================================================== */

.section--sombre {
  border-block: 1px solid var(--c-ligne);
  background:
    radial-gradient(40rem 24rem at 10% 0%, rgb(255 150 95 / 0.16), transparent 70%),
    radial-gradient(36rem 24rem at 95% 100%, rgb(236 116 176 / 0.12), transparent 70%),
    var(--c-bande);
  color: var(--c-bande-texte);
}

.section--sombre .section__entete p:not(.surtitre),
.section--sombre .engagements p {
  color: var(--c-bande-douce);
}



.engagements {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--rayon);
  background: rgb(255 255 255 / 0.1);
}

@media (min-width: 46em) {
  .engagements {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .engagements {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.engagements li {
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  background: rgb(17 14 31 / 0.92);
}

.engagements svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 1rem;
  color: var(--c-accent);
}

.engagements p {
  margin-top: 0.5rem;
  font-size: var(--t-petit);
}


/* 13. À propos
   ========================================================================== */

.apropos {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 60rem;
}

@media (min-width: 46em) {
  .apropos {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  }
}

/* Portrait : un anneau dégradé et un halo, comme une planète éclairée */
.portrait {
  width: clamp(12rem, 9rem + 10vw, 17rem);
  aspect-ratio: 1;
  padding: 4px;
  border-radius: 50%;
  background: var(--degrade);
  box-shadow: 0 0 80px -10px rgb(255 150 95 / 0.45);
}

.portrait img {
  width: 100%;
  height: 100%;
  border: 4px solid var(--c-fond);
  border-radius: 50%;
  object-fit: cover;
}

.apropos h2 {
  font-size: var(--t-h2);
}

.apropos__texte p:not(.surtitre) {
  margin-top: 1.125rem;
  color: var(--c-encre-douce);
  font-size: var(--t-chapo);
  line-height: 1.6;
}

.apropos__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.apropos__texte strong {
  color: var(--c-encre);
  font-weight: 600;
}


/* 14. Questions fréquentes
   ========================================================================== */

.faq__grille {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 60em) {
  .faq__grille {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
    align-items: start;
  }

  .faq__grille .section__entete {
    position: sticky;
    top: calc(var(--hauteur-entete) + 2rem);
    margin-bottom: 0;
  }
}

.faq details {
  border-bottom: 1px solid var(--c-ligne-forte);
}

.faq details:first-child {
  border-top: 1px solid var(--c-ligne-forte);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* Le « + » devient « − » à l'ouverture */
.faq summary::after {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 0.75rem 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 0.75rem no-repeat,
    var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-ligne-forte);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  background:
    linear-gradient(currentColor, currentColor) center / 0.75rem 2px no-repeat,
    var(--c-surface);
  transform: rotate(180deg);
}

.faq summary:hover {
  color: var(--c-accent);
}

.faq details p {
  max-width: 40rem;
  padding-bottom: 1.5rem;
  color: var(--c-encre-douce);
}


/* 15. Contact & formulaire
   ========================================================================== */

.contact {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  padding: clamp(1.25rem, 0.75rem + 3vw, 4rem);
  border: 1px solid var(--c-ligne-forte);
  border-radius: calc(var(--rayon) * 1.5);
  background:
    radial-gradient(34rem 22rem at 100% 0%, rgb(255 150 95 / 0.28), transparent 70%),
    radial-gradient(28rem 20rem at 0% 100%, rgb(236 116 176 / 0.16), transparent 70%),
    var(--c-surface);
}

@media (min-width: 60em) {
  .contact {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 3.5rem;
  }
}

.contact h2 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  letter-spacing: -0.035em;
}

.contact__intro > p:not(.surtitre) {
  max-width: 30rem;
  margin-top: 1.25rem;
  color: var(--c-encre-douce);
  font-size: var(--t-chapo);
  line-height: 1.55;
}

.contact__assurances {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.75rem;
  font-size: var(--t-petit);
}

.contact__assurances li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  line-height: 1.45;
}

.contact__assurances svg {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.1em;
  flex: none;
  color: var(--c-corail);
}

/* WhatsApp et LinkedIn, pour ceux qui préfèrent écrire directement */
.contact__direct {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-ligne);
}

.contact__direct p {
  font-size: var(--t-petit);
  font-weight: 600;
}

.contact__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.875rem;
}

.contact__liens .bouton {
  background: var(--c-surface);
}

/* Les couleurs de WhatsApp et de Malt, pour que les logos se reconnaissent d'un coup d'œil */
.icone-whatsapp {
  color: #25d366;
}

.icone-malt {
  color: #fc5757;
}

/* Le formulaire */
.formulaire {
  display: grid;
  gap: 1.125rem;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: 1px solid var(--c-ligne);
  border-radius: var(--rayon);
  background: rgb(12 10 23 / 0.7);
}

.formulaire__ligne {
  display: grid;
  gap: 1.125rem;
}

@media (min-width: 40em) {
  .formulaire__ligne {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.champ {
  display: grid;
  gap: 0.4375rem;
}

.champ label {
  font-size: var(--t-petit);
  font-weight: 600;
}

.champ label span {
  color: var(--c-encre-douce);
  font-weight: 400;
}

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6875rem 0.9375rem;
  border: 1px solid #6e6489; /* contraste ≥ 3:1 avec le fond du champ */
  border-radius: 0.75rem;
  background: var(--c-teinte);
  color: var(--c-encre);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.champ textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.champ ::placeholder {
  color: #9289a6;
  opacity: 1;
}

/* Liste déroulante : flèche dessinée, la même partout */
.champ select {
  padding-right: 2.75rem;
  background: var(--c-teinte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.875rem center / 1.125rem;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.champ input:hover,
.champ select:hover,
.champ textarea:hover {
  border-color: #8c80a8;
}

.champ input:focus-visible,
.champ select:focus-visible,
.champ textarea:focus-visible {
  border-color: var(--c-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgb(255 150 95 / 0.3);
}

/* Le pot de miel reste hors de l'écran */
.formulaire__pot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formulaire__envoi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.25rem;
}

.formulaire__envoi .bouton[disabled] {
  cursor: progress;
  opacity: 0.6;
}

.formulaire__note {
  flex: 1 1 14rem;
  color: var(--c-encre-douce);
  font-size: var(--t-mini);
}

.formulaire__note a {
  color: var(--c-accent);
  text-underline-offset: 0.2em;
}

.formulaire__statut {
  font-size: var(--t-petit);
  font-weight: 500;
}

.formulaire__statut:empty {
  display: none;
}

.formulaire__statut[data-etat="ok"] {
  padding: 0.75rem 1rem;
  border: 1px solid rgb(76 212 151 / 0.4);
  border-radius: 0.75rem;
  background: rgb(76 212 151 / 0.1);
  color: #7ee2b3;
}

.formulaire__statut[data-etat="erreur"] {
  padding: 0.75rem 1rem;
  border: 1px solid rgb(255 128 128 / 0.4);
  border-radius: 0.75rem;
  background: rgb(255 128 128 / 0.1);
  color: #ffadad;
}


/* 16. Pied de page
   ========================================================================== */

.pied {
  padding-block: 2.5rem;
  border-top: 1px solid var(--c-ligne);
  color: var(--c-encre-douce);
  font-size: var(--t-petit);
}

.pied__grille {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.pied nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.pied a {
  text-decoration: underline;
  text-decoration-color: var(--c-ligne-forte);
  text-underline-offset: 0.25em;
}

.pied a:hover {
  color: var(--c-encre);
  text-decoration-color: currentColor;
}


/* 17. Pages de texte (mentions légales, 404)
   ========================================================================== */

.texte {
  max-width: 44rem;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) var(--espace-section);
}

.texte h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  letter-spacing: -0.03em;
}

.texte h2 {
  margin: 2.75rem 0 0.875rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.texte p,
.texte ul {
  margin-bottom: 1rem;
  color: var(--c-encre-douce);
}

.texte ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.texte li + li {
  margin-top: 0.375rem;
}

.texte strong {
  color: var(--c-encre);
  font-weight: 600;
}

.texte a:not(.bouton) {
  color: var(--c-accent);
  text-underline-offset: 0.2em;
}

.texte .chapo {
  font-size: var(--t-chapo);
}


.texte .bouton {
  margin-top: 1rem;
}


/* 18. Animations, accessibilité, impression
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Les étoiles scintillent très lentement */
  body::before {
    animation: scintillement 6s ease-in-out infinite alternate;
  }

  @keyframes scintillement {
    to { opacity: 0.85; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .entete,
  .heros::before,
  .contact__actions button {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
