/* Feuille de style des pages intérieures (services, métiers, à propos…).
   Reprend les réglages de la page d'accueil (index.html), qui garde son propre CSS. */

/* ---------- Couleurs et réglages globaux ---------- */
:root {
  --fond: #1B1B1D;
  --fond-2: #222225;
  --fond-3: #2A2A2E;
  --ligne: #36363B;
  --texte: #F4F3F1;
  --texte-2: #F4F3F1;
  --texte-3: #A8A8AD;      /* petites mentions seulement */
  --accent: #2ED3A0;
  --accent-clair: #5EE3BA;
  --sur-accent: #0C1F19;
  --accent-fond: color-mix(in srgb, var(--accent) 12%, transparent);
  --rayon: 16px;
  --max: 1180px;
  --f-titre: "Instrument Serif", Georgia, serif;
  --f-ui: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--fond); color: var(--texte); font-family: var(--f-ui); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--f-titre); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
h1 .accent, h2 .accent { font-style: italic; }
h3 { font-family: var(--f-ui); line-height: 1.2; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
.accent { color: var(--accent); }
.conteneur { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 88px 0; }
section > .conteneur { position: relative; z-index: 1; }
.fond-alt { background: var(--fond-2); }
.fond-alt .carte { background: var(--fond); }
.titre-section { font-size: clamp(34px, 4.6vw, 54px); max-width: 800px; margin-bottom: 18px; }
.intro-section { color: var(--texte-2); font-size: 18px; max-width: 640px; margin-bottom: 40px; }

/* Textures (mêmes que la page d'accueil) */
.statique::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.t-grille::after {
  background-image: linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 85% at var(--ox) var(--oy), #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 60% 85% at var(--ox) var(--oy), #000 0%, transparent 72%);
}
.t-ondes::after {
  background: repeating-radial-gradient(circle at var(--ox) var(--oy), transparent 0 34px, color-mix(in srgb, var(--accent) 20%, transparent) 34px 35px);
  -webkit-mask-image: radial-gradient(circle at var(--ox) var(--oy), #000 5%, transparent 62%);
          mask-image: radial-gradient(circle at var(--ox) var(--oy), #000 5%, transparent 62%);
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .2s, background .2s, border-color .2s; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--sur-accent); }
.btn-accent:hover { background: var(--accent-clair); }
.btn-contour { border-color: var(--ligne); color: var(--texte); }
.btn-contour:hover { border-color: var(--accent); }
.boutons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Navigation ---------- */
header { position: sticky; top: 0; z-index: 50; background: rgba(27, 27, 29, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--ligne); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; white-space: nowrap; }
.logo-img { display: block; height: 30px; width: auto; }
.logo-carre { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: var(--sur-accent); font-size: 15px; font-weight: 700; }
.liens { display: flex; gap: 28px; font-size: 15px; white-space: nowrap; }
.liens a:hover, .liens a[aria-current] { color: var(--accent); }
.nav-droite { display: flex; align-items: center; gap: 16px; }
.burger { display: none; background: none; border: 0; color: var(--texte); font-size: 26px; cursor: pointer; }

/* ---------- En-tête de page ---------- */
.page-hero { padding: 72px 0 84px; overflow: hidden; }
.fil { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--texte-3); margin-bottom: 28px; list-style: none; }
.fil li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.fil a:hover { color: var(--accent); }
.surtitre { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(42px, 6vw, 76px); max-width: 900px; margin-bottom: 24px; }
.page-hero .chapo { font-size: clamp(17px, 1.8vw, 20px); max-width: 640px; margin-bottom: 36px; }

/* ---------- Cartes et grilles ---------- */
.grille { display: grid; gap: 20px; }
.grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.carte { background: var(--fond-3); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 30px; transition: border-color .25s, transform .25s; }
a.carte { display: block; }
a.carte:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-4px); }
.carte h3 { font-size: 20px; margin-bottom: 12px; }
.carte p { font-size: 15px; }
.carte .lien-carte { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 600; font-size: 14px; }
.etiquette { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-3); margin: 16px 0 4px; }
.etiquette.verte { color: var(--accent); }
.numero { font-family: var(--f-titre); font-size: 40px; line-height: 1; color: var(--accent); display: block; margin-bottom: 14px; }
.groupe-titre { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin: 8px 0 20px; }
.groupe-titre h3 { font-size: 24px; }
.groupe-titre span { color: var(--texte-3); font-size: 15px; }
.groupe + .groupe { margin-top: 48px; }

/* Étapes */
.etapes { list-style: none; counter-reset: etape; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.etapes li { counter-increment: etape; border-top: 1px solid var(--ligne); padding-top: 20px; font-size: 15px; }
.etapes li::before { content: counter(etape, decimal-leading-zero); display: block; font-family: var(--f-titre); font-size: 34px; color: var(--accent); margin-bottom: 10px; }

/* Pastilles de liens (métiers, offres) */
.pastilles { display: flex; flex-wrap: wrap; gap: 10px; }
.pastilles a { font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ligne); transition: border-color .2s, color .2s; }
.pastilles a:hover { border-color: var(--accent); color: var(--accent); }

/* Questions fréquentes : chaque question s'ouvre au clic (balise <details>) */
.faq { max-width: 820px; border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; font-size: 15.5px; }

/* Témoignage */
.temoin { max-width: 860px; }
.temoin blockquote { font-family: var(--f-titre); font-size: clamp(26px, 3vw, 34px); line-height: 1.25; color: #E6E5E1; margin-bottom: 18px; }

/* Texte long (à propos, mentions légales) */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(30px, 3.6vw, 40px); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 16.5px; margin-bottom: 14px; }
.prose ul { padding-left: 20px; }

/* Encadré « à compléter » : tout ce qui manque encore, bien visible */
.a-completer { display: inline; padding: 2px 8px; border: 1px dashed var(--accent); border-radius: 6px; background: var(--accent-fond); color: var(--accent-clair); font-size: .92em; }
div.a-completer { display: block; padding: 22px 24px; border-radius: var(--rayon); }
.a-completer::before { content: "À compléter · "; font-weight: 700; }

/* ---------- Appel à l'action ---------- */
.cta { position: relative; overflow: hidden; background: var(--fond-3); border: 1px solid var(--ligne); border-radius: 28px; padding: 76px 56px; text-align: center; }
.cta::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(34px, 4.6vw, 56px); max-width: 780px; margin: 0 auto 18px; }
.cta p { font-size: 18px; max-width: 560px; margin: 0 auto 32px; }
.cta .boutons { justify-content: center; }

/* ---------- Pied de page ---------- */
footer { border-top: 1px solid var(--ligne); padding: 64px 0 40px; font-size: 14px; }
.footer-grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.footer-grille h4 { font-size: 14px; margin-bottom: 16px; font-weight: 600; }
.footer-grille a { display: block; margin-bottom: 10px; color: var(--texte-3); }
.footer-grille a:hover { color: var(--accent); }
.footer-bas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--ligne); color: var(--texte-3); }

/* ---------- Écrans moyens et téléphones ---------- */
@media (max-width: 1040px) {
  .liens { display: none; }
  .burger { display: block; }
  .liens.ouvert { display: flex; flex-direction: column; gap: 20px; position: absolute; top: 72px; left: 0; right: 0; background: var(--fond); padding: 24px; border-bottom: 1px solid var(--ligne); }
}
@media (max-width: 960px) {
  .grille-3, .grille-4, .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 72px 0; }
  .page-hero { padding: 48px 0 64px; }
  .nav-droite .btn { display: none; }
  .grille-2, .grille-3, .grille-4, .etapes { grid-template-columns: minmax(0, 1fr); }
  .cta { padding: 52px 22px; }
  .footer-grille { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
