/* =====================================================================
   A CONSTRUCTIONS NORD — Feuille de style
   ---------------------------------------------------------------------
   Direction artistique : couleurs du logo (orange -> or), noir chaud,
   typographie "ingénierie" (Space Grotesk + Inter).
   Les zones de texte à personnaliser sont signalées dans index.html
   par la mention  [À COMPLÉTER].
   ===================================================================== */

/* ---------- 1. Variables (couleurs, polices) ---------- */
:root {
  --orange:    #F39200;   /* orange profond du logo            */
  --gold:      #FBB814;   /* or / jaune du haut du dégradé     */
  --grad:      linear-gradient(120deg, #F39200 0%, #FBB814 100%);
  --ink:       #16140F;   /* noir chaud (titres, fond foncé)   */
  --ink-soft:  #45403A;   /* texte courant                     */
  --muted:     #7A746B;   /* texte secondaire                  */
  --line:      #E8E3DA;   /* filets / bordures claires         */
  --paper:     #FFFFFF;   /* fond principal                    */
  --sand:      #FAF8F4;   /* fond de section alterné (discret) */

  --maxw: 1180px;
  --pad: clamp(1.2rem, 4vw, 2.5rem);
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(22,20,15,.45);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.05; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--sand { background: var(--sand); border-block: 1px solid var(--line); }
.section--dark { background: var(--ink); color: #D8D2C7; }
.section--dark h2 { color: #fff; }

/* Bandeau de titre de section */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 3px;
  background: var(--grad);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-top: .9rem;
  max-width: 18ch;
}
.section-intro { margin-top: 1rem; max-width: 56ch; color: var(--muted); }

/* Accent dégradé réutilisable (rappel du papier en-tête) */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 3. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary { background: var(--grad); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(243,146,0,.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(243,146,0,.8); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); }

/* ---------- 4. En-tête / navigation ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 46px; width: auto; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; line-height: 1; }
.brand__name span { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .2em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--ink);
  position: relative; padding: .3rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--grad); transition: width .25s ease;
}
.nav a:hover::after, .nav a:focus-visible::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- 5. Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { /* voile sombre pour lisibilité */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22,20,15,.55) 0%, rgba(22,20,15,.78) 100%);
}
.hero__inner { padding-block: clamp(5rem, 16vw, 9rem); max-width: 50rem; }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--grad); }
.hero h1 {
  color: #fff; font-size: clamp(2.7rem, 8vw, 5.6rem); font-weight: 700;
  letter-spacing: -.03em; margin: 1.1rem 0; line-height: .98;
}
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #EDE8DF; max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin-top: 3rem;
  padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.2);
}
.hero__facts div { line-height: 1.2; }
.hero__facts b { font-family: var(--font-display); display: block; font-size: 1.5rem; color: #fff; }
.hero__facts span { font-size: .82rem; color: #C9C3B8; letter-spacing: .04em; }

/* ---------- 6. Entreprise (histoire + carte identité) ---------- */
.about { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about__text p { margin-top: 1.1rem; }
.idcard {
  background: var(--ink); color: #ECE7DC; border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.idcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); }
.idcard h3 { color: #fff; font-size: 1.15rem; margin-bottom: 1.1rem; }
.idcard dl { display: grid; grid-template-columns: auto 1fr; gap: .65rem 1rem; font-size: .95rem; }
.idcard dt { color: var(--gold); font-family: var(--font-display); font-weight: 500; }
.idcard dd { text-align: right; color: #E7E1D6; }

/* ---------- 7. Savoir-faire (cartes) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico { width: 44px; height: 44px; margin-bottom: 1rem; }
.card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.card p { font-size: .95rem; color: var(--muted); }

/* ---------- 8. Organigramme ---------- */
.org { margin-top: 2.5rem; text-align: center; }
.org__top { display: flex; justify-content: center; }
.org-node {
  display: inline-block; background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem 1.4rem; min-width: 200px; box-shadow: 0 8px 22px -16px rgba(0,0,0,.4);
}
.org-node--lead { border: 2px solid transparent; background:
  linear-gradient(#fff,#fff) padding-box,
  var(--grad) border-box; }
.org-node b { font-family: var(--font-display); display: block; color: var(--ink); font-size: 1.05rem; }
.org-node span { font-size: .82rem; color: var(--orange); font-family: var(--font-display); font-weight: 500; letter-spacing: .04em; }
.org-node small { display: block; color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.org__connector { width: 2px; height: 34px; background: var(--line); margin: 0 auto; }
.org__row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; }
.org__row::before { /* barre horizontale reliant les branches */
  content: ""; position: absolute; top: -18px; left: 12%; right: 12%; height: 2px; background: var(--line);
}
.org__row--single::before { display: none; }

/* ---------- 9. Galerie réalisations / événements ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 2.5rem; }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1.2rem .9rem;
  background: linear-gradient(transparent, rgba(22,20,15,.85)); color: #fff;
  font-family: var(--font-display); font-size: .98rem; font-weight: 500;
}
.shot figcaption span { display: block; font-family: var(--font-body); font-weight: 400; font-size: .82rem; color: #D8D2C7; margin-top: .15rem; }

/* ---------- 10. Atouts clients ---------- */
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2.4rem; margin-top: 2.5rem; }
.perk { display: flex; gap: 1rem; align-items: flex-start; }
.perk .ico { flex: 0 0 auto; width: 40px; height: 40px; }
.perk h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.perk p { font-size: .94rem; color: var(--muted); }

/* ---------- 11. Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__list { margin-top: 1.5rem; display: grid; gap: 1.2rem; }
.contact__item { display: flex; gap: .9rem; align-items: flex-start; }
.contact__item .ico { width: 34px; height: 34px; flex: 0 0 auto; }
.contact__item b { font-family: var(--font-display); color: var(--ink); display: block; }
.section--dark .contact__item b { color: #fff; }
.contact__item a:hover { color: var(--orange); }
.contact__panel { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.contact__panel h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.contact__panel p { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; }

/* ---------- 12. Bandeau "ligne" + pied de page ---------- */
.ligne-band { background: #fff; padding-block: 2.2rem; text-align: center; border-top: 1px solid var(--line); }
.ligne-band img { margin-inline: auto; max-height: 90px; width: auto; }

.footer { background: var(--ink); color: #B9B2A6; padding-block: 3rem 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #fff; letter-spacing: -.01em; }
.footer__brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer p { font-size: .9rem; margin-top: .8rem; max-width: 34ch; }
.footer h4 { font-family: var(--font-display); color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .9rem; }
.footer a { display: block; font-size: .92rem; margin-bottom: .5rem; }
.footer a:hover { color: var(--gold); }
.footer__legal { margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: #8A8377; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }

/* ---------- 13. Accessibilité : focus visible ---------- */
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px;
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem var(--pad) 1.2rem;
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .cards, .gallery, .perks { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .idcard dd { text-align: left; }
  .idcard dl { grid-template-columns: 1fr; gap: .15rem 0; }
  .idcard dt { margin-top: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---------- 15. Section Industrie (points forts) ---------- */
.ind-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.ind-point { border-top: 3px solid var(--gold); border-image: var(--grad) 1; padding-top: 1rem; }
.ind-point h3 { color: #fff; font-size: 1.12rem; margin-bottom: .4rem; }
.ind-point p { color: #C9C3B8; font-size: .94rem; }
@media (max-width: 680px) { .ind-points { grid-template-columns: 1fr; } }

/* ---------- 16. Organigramme : grille des compagnons ---------- */
.org__team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 780px; margin: 0 auto; }
.org__team .org-node { min-width: 0; width: 100%; }
@media (max-width: 900px) { .org__team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .org__team { grid-template-columns: 1fr; } }
