/* =========================================================================
   Salesforce Solutions Recrutement
   Feuille de style unique. Aucune dépendance externe.
   ========================================================================= */

:root {
  --encre:        #17181c;
  --encre-doux:   #5b5e66;
  --encre-tres-doux: #8b8e96;
  --papier:       #faf9f7;
  --papier-creux: #f2f0ec;
  --filet:        #e3e0da;
  --accent:       #8c5a3c;

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --largeur:  72rem;
  --gouttiere: clamp(1.25rem, 5vw, 3rem);
  --rythme:   clamp(4.5rem, 11vw, 8.5rem);
}

/* ---------- Réinitialisation ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--encre); color: var(--papier); }

/* ---------- Accessibilité ---------- */

.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--encre);
  color: var(--papier);
  padding: .75rem 1.25rem;
  z-index: 100;
}
.evitement:focus { left: 0; }

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

/* ---------- Structure ---------- */

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

.section {
  padding-block: var(--rythme);
  border-top: 1px solid var(--filet);
}

.grille {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 62rem) {
  .grille { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); }
  .grille__aside { position: sticky; top: 6.5rem; align-self: start; }
}

/* ---------- En-tête ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--papier) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.entete--pose { border-bottom-color: var(--filet); }

.entete__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.marque {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.3;
}
.marque__suite { color: var(--encre-doux); }

.nav {
  display: none;
  gap: 2rem;
  font-size: .875rem;
  color: var(--encre-doux);
}
.nav a {
  text-decoration: none;
  padding-block: .25rem;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav a:hover { color: var(--encre); border-bottom-color: var(--encre); }

@media (min-width: 48rem) { .nav { display: flex; } }

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(4.5rem, 15vh, 10rem) clamp(4rem, 11vw, 8rem);
}

.hero__titre {
  font-family: var(--serif);
  font-weight: 400;
  /* Les retours à la ligne du HTML règlent la composition : pas de max-width,
     qui provoquerait un second niveau de césure par-dessus. */
  font-size: clamp(2.15rem, 5.6vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -.015em;
}

.hero__chapo {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--encre-doux);
}

.actions {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

/* ---------- Boutons et liens ---------- */

.bouton {
  display: inline-block;
  background: var(--encre);
  color: var(--papier);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding: .85rem 1.6rem;
  border-radius: 2px;
  transition: background-color .2s ease, transform .2s ease;
}
.bouton:hover { background: #2a2c33; }
.bouton:active { transform: translateY(1px); }

.bouton--grand {
  margin-top: 2.25rem;
  padding: 1rem 2rem;
  font-size: 1rem;
}

.lien-fleche {
  text-decoration: none;
  font-size: .9375rem;
  color: var(--encre-doux);
  border-bottom: 1px solid var(--filet);
  padding-bottom: .2rem;
  transition: color .2s ease, border-color .2s ease;
}
.lien-fleche::after { content: ' →'; }
.lien-fleche:hover { color: var(--encre); border-bottom-color: var(--encre); }

/* ---------- Titres de section ---------- */

.surtitre {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--encre-tres-doux);
  margin-bottom: 1.25rem;
}

.titre {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.01em;
}

/* ---------- Corps de texte ---------- */

.prose { max-width: 62ch; }

.prose h3 {
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .005em;
  margin-bottom: .75rem;
}
.prose h3 + p { margin-top: 0; }
.prose p { color: var(--encre-doux); }
.prose p + p { margin-top: 1rem; }
.prose h3:not(:first-child) { margin-top: 2.75rem; }

.prose__retrait {
  margin-top: 2rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--filet);
  font-style: italic;
}

/* ---------- Expertises ---------- */

.famille + .famille { margin-top: 3.25rem; }

.famille__nom {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--filet);
}

.liste-profils dt {
  font-weight: 600;
  font-size: .9375rem;
  margin-top: 1.5rem;
}
.liste-profils dd {
  margin-top: .3rem;
  color: var(--encre-doux);
  max-width: 58ch;
}

.note {
  margin-top: 3.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--filet);
  color: var(--encre-tres-doux);
  font-size: .9375rem;
  max-width: 58ch;
}

/* ---------- Méthode ---------- */

.etapes li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--filet);
}
.etapes li:first-child { border-top: 0; padding-top: 0; }

.etapes__num {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--accent);
}

.etapes h3 {
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: .35rem;
}
.etapes p { color: var(--encre-doux); max-width: 56ch; }

/* ---------- Pourquoi nous ---------- */

.arguments dt {
  font-weight: 600;
  font-size: .9375rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--filet);
}
.arguments dt:first-child { padding-top: 0; border-top: 0; }
.arguments dd {
  margin-top: .3rem;
  padding-bottom: 1.5rem;
  color: var(--encre-doux);
  max-width: 56ch;
}
.arguments dd:last-child { padding-bottom: 0; }

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

.section--contact { background: var(--papier-creux); }

.contact { max-width: 44rem; }

.contact__titre {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.015em;
}

.contact__texte {
  margin-top: 1.25rem;
  max-width: 46ch;
  color: var(--encre-doux);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.contact__secondaire {
  margin-top: 1.25rem;
  font-size: .9375rem;
  color: var(--encre-tres-doux);
}
.contact__secondaire a {
  color: var(--encre-doux);
  text-decoration: none;
  border-bottom: 1px solid var(--filet);
}
.contact__secondaire a:hover { color: var(--encre); border-bottom-color: var(--encre); }

.signature {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--filet);
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.signature__photo {
  width: 4.5rem;
  height: 4.5rem;
  /* Neutralise le max-width: 100% de la réinitialisation : le portrait doit
     garder son diamètre même dans un conteneur étroit. */
  max-width: none;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
}

.signature__nom { font-weight: 600; font-size: .9375rem; }
.signature__role {
  font-size: .875rem;
  color: var(--encre-tres-doux);
  margin-top: .1rem;
}
.signature__role a {
  color: var(--encre-doux);
  text-decoration: none;
  border-bottom: 1px solid var(--filet);
}
.signature__role a:hover { color: var(--encre); border-bottom-color: var(--encre); }

/* ---------- Pied de page ---------- */

.pied {
  border-top: 1px solid var(--filet);
  padding-block: 2.5rem;
  font-size: .8125rem;
  color: var(--encre-tres-doux);
}

.pied__interieur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.pied nav { display: flex; gap: 1.75rem; }
.pied a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.pied a:hover { color: var(--encre); border-bottom-color: var(--encre); }

/* ---------- Page mentions légales ---------- */

.page-legale { padding-block: clamp(3.5rem, 9vw, 6rem); }
.page-legale .titre { margin-bottom: 2.5rem; }

.page-legale h2 {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--encre-tres-doux);
  margin-top: 2.75rem;
  margin-bottom: .85rem;
}
.page-legale p { max-width: 62ch; color: var(--encre-doux); }
.page-legale p + p { margin-top: .6rem; }
.page-legale a { color: var(--encre); }

/* ---------- Apparition au défilement ---------- */

.reveler {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
              transform .7s cubic-bezier(.22, .61, .36, 1);
}
.reveler--visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveler { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
