/* ==========================================================
   Robert Hébert et Associés — feuille de style
   Style galerie : serif classique, fond blanc cassé, accent brique
   ========================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --fond: #F7F6F3;         /* blanc cassé */
  --fond-2: #EFEDE8;       /* bandes */
  --encre: #1D1D1B;        /* texte */
  --gris: #5E5C58;         /* texte secondaire */
  --brique: #9B3A2B;       /* accent */
  --brique-pale: #F0E6E2;  /* fond du lien actif */
  --trait: #DEDBD5;        /* filets */
  --trait-fonce: #A9A59E;  /* lignes de formulaire */

  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --marge: clamp(20px, 4vw, 48px);
  --largeur: 1240px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
sup { font-size: 0.7em; line-height: 0; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brique); }

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

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

.evitement {
  position: absolute; left: -9999px; top: 0;
  background: var(--encre); color: var(--fond);
  padding: 10px 16px; z-index: 10;
}
.evitement:focus { left: var(--marge); }

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

.entete { border-bottom: 1px solid var(--trait); }
.entete-interieur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
  padding-block: 18px;
}

.marque {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--encre);
  line-height: 1.2;
}
.marque:hover { color: var(--encre); }

.nav ul {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin: 0; padding: 0; list-style: none;
}
.nav a {
  display: block;
  font-size: 1rem;
  text-decoration: none;
  color: var(--encre);
  padding: 6px 12px;
  border-radius: 4px;
}
.nav a:hover { color: var(--brique); }
.nav a[aria-current="page"] { color: var(--brique); background: var(--brique-pale); }

/* ---------- Éléments communs ---------- */

.surtitre {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brique);
  margin: 0 0 18px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--encre);
  margin: 0;
}

.titre-page {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0 0 clamp(28px, 4vw, 44px);
}

.titre-section {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 clamp(28px, 4vw, 48px);
}

.bouton-contour {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--encre);
  border: 1px solid var(--trait-fonce);
  border-radius: 4px;
  padding: 11px 18px;
  background: transparent;
}
.bouton-contour:hover { border-color: var(--encre); color: var(--encre); background: #fff; }
.bouton-contour .fleche { transition: transform 0.2s ease; }
.bouton-contour:hover .fleche { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .bouton-contour .fleche { transition: none; } }

.signature { margin: clamp(28px, 3.5vw, 40px) 0 clamp(28px, 3.5vw, 40px); }
.signature .nom {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  line-height: 1.1;
  margin: 0;
}
.signature .role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gris);
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.signature .role::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--trait-fonce);
}

/* ==========================================================
   ACCUEIL
   ========================================================== */

.accueil {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px);
}
.accueil h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 clamp(20px, 2.5vw, 28px);
  text-wrap: balance;
}
.accueil .intro { max-width: 34rem; margin: 0; }
.accueil-photo { margin: 0; }
.accueil-photo img { width: 100%; }

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

.bande { background: var(--fond-2); border-top: 1px solid var(--trait); }

.contact {
  padding-block: clamp(64px, 8vw, 104px);
  scroll-margin-top: 16px;
}
.contact-grille {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
}

.personne { margin-bottom: 26px; }
.personne .nom {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 0;
}
.personne .role { color: var(--gris); margin: 2px 0 0; }
.telephone {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-top: 36px;
}
.telephone a { text-decoration: none; }
.telephone a:hover { text-decoration: underline; }

/* Formulaire */
.formulaire { display: grid; gap: 26px; }
.formulaire .rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.champ { display: flex; flex-direction: column; }
.champ label { font-size: 0.95rem; font-weight: 500; margin-bottom: 6px; }
.champ input,
.champ select,
.champ textarea {
  font: inherit;
  color: var(--encre);
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: 4px;
  padding: 11px 13px;
  width: 100%;
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231D1D1B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.champ input:hover,
.champ select:hover,
.champ textarea:hover { border-color: var(--trait-fonce); }
.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--brique);
  box-shadow: 0 0 0 3px var(--brique-pale);
}
.note { font-size: 0.9rem; color: var(--gris); margin: 0 0 -8px; }
.piege { position: absolute; left: -9999px; }

.bouton {
  font: inherit;
  font-weight: 500;
  color: #fff;
  background: var(--encre);
  border: 0;
  border-radius: 4px;
  padding: 14px 24px;
  cursor: pointer;
  justify-self: start;
}
.bouton:hover { background: var(--brique); }
.bouton[disabled] { opacity: 0.6; cursor: progress; }

.statut { min-height: 1.5em; margin: 0; font-weight: 500; }
.statut.ok { color: #2D6A3E; }
.statut.erreur { color: var(--brique); }

/* ==========================================================
   NOS SERVICES
   ========================================================== */

.pourquoi { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 104px); }
.pourquoi-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.pourquoi .corps { max-width: 42rem; }
.pourquoi-photo { margin: 6px 0 0; }
.pourquoi-photo img { width: 100%; }
.pourquoi .corps p:first-child {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  line-height: 1.4;
}

.services { padding-block: clamp(64px, 8vw, 104px); }
.services-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(28px, 3.5vw, 48px);
  margin: 0; padding: 0; list-style: none;
}
.services li { border-top: 1px solid var(--trait-fonce); padding-top: 20px; }
.services h3 {
  font-size: clamp(1.6rem, 2.2vw, 1.9rem);
  line-height: 1.15;
  margin: 0 0 12px;
}
.services li p { margin: 0; max-width: 38ch; color: #33322F; }

.specialites { padding-block: clamp(64px, 8vw, 104px); }
.specialites-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
}
.specialites h3 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin: 0;
}
.specialites h3 a { text-decoration: none; }
.specialites h3 a:hover { color: var(--brique); }
.specialites .role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gris);
  margin: 2px 0 18px;
}
.specialites p { max-width: 36rem; }
.lien-suite { font-weight: 500; color: var(--brique); }

/* ==========================================================
   NOTRE ÉQUIPE
   ========================================================== */

.equipe-entete { padding-block: clamp(48px, 7vw, 96px) 0; }

.membre {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--trait);
  scroll-margin-top: 16px;
}

.membre-identite { align-self: start; }
@media (min-width: 900px) {
  .membre-identite { position: sticky; top: 28px; }
}
.membre h2 {
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  line-height: 1;
  margin: 0 0 10px;
}
.membre .role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gris);
  margin: 0 0 22px;
}

.membre-bio { max-width: 42rem; }
.membre-bio > p:first-child {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.4;
}
.membre-bio h3 {
  font-size: 1.85rem;
  line-height: 1.15;
  margin: 44px 0 8px;
}
.membre-bio h3 .selection { font-style: italic; font-weight: 400; color: var(--gris); font-size: 0.75em; }
.membre-bio h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brique);
  margin: 24px 0 8px;
}
.liste {
  columns: 2 16rem;
  column-gap: 40px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 0.97rem;
  line-height: 1.4;
}
.liste li {
  break-inside: avoid;
  padding: 7px 0;
  border-bottom: 1px solid var(--trait);
}

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

.pied { border-top: 1px solid var(--trait); }
.pied-grille {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  justify-content: space-between; align-items: center;
  padding-block: 32px 40px;
  font-size: 0.95rem;
}
.pied .marque { font-size: 1.1rem; }
.pied ul { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0; padding: 0; list-style: none; }
.pied .cta { color: var(--brique); font-weight: 500; }
.pied .droits { color: var(--gris); width: 100%; margin: 0; font-size: 0.875rem; }

/* ==========================================================
   Écrans étroits
   ========================================================== */

@media (max-width: 880px) {
  .accueil,
  .pourquoi-grille,
  .contact-grille,
  .specialites-grille,
  .membre { grid-template-columns: 1fr; }
  .services-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .marque { font-size: 1.15rem; }
  .nav ul { margin-left: -7px; gap: 0; }
  .nav a { padding: 5px 7px; font-size: 0.94rem; }
  .services-grille { grid-template-columns: 1fr; }
  .formulaire .rangee { grid-template-columns: 1fr; gap: 26px; }
}
