/* =========================================================
   POLYGONE PLUS — Design system (charte graphique réelle)
   Or/laiton, prune profond, gris neutre — le polygone comme
   motif : plusieurs facettes (pôles), une seule structure.
   Typo : Poppins (wordmark/titres), EB Garamond (accent/tagline),
   Inter (texte courant).
   ========================================================= */

:root{
  --cream: #faf7f2;
  --panel: #f3ede3;
  --white: #ffffff;
  --ink: #2a2230;
  --ink-soft: #5b5460;
  --line: #e4dccb;

  --gold: #ba884b;
  --gold-deep: #9a6f3a;
  --plum: #502948;
  --plum-soft: #7a4a70;
  --gray: #787d80;

  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-accent: "EB Garamond", Georgia, serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--font-body);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  line-height:1.18;
  margin:0 0 .5em;
  font-weight:600;
  color:var(--plum);
  letter-spacing:-0.01em;
}
p{ margin:0 0 1em; color:var(--ink-soft); }

.accent{
  font-family:var(--font-accent);
  font-style:italic;
  color:var(--gold-deep);
}
.eyebrow{
  font-family:var(--font-display);
  font-size:.74rem;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--gold-deep);
  display:inline-flex;
  align-items:center;
  gap:.6em;
}
.eyebrow::before{
  content:"";
  width:24px; height:2px;
  background:var(--gold);
  display:inline-block;
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--plum);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(250,247,242,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 24px;
}
.logo-lockup{ display:flex; align-items:center; gap:10px; }
.logo-lockup img{ height:38px; width:auto; }
.nav-links{ display:flex; gap:30px; align-items:center; }
.nav-links a{
  font-family:var(--font-display);
  font-size:.9rem; font-weight:500; color:var(--ink-soft);
  position:relative; padding:6px 0;
  transition:color .2s ease;
}
.nav-links a:hover, .nav-links a.active{ color:var(--plum); }
.nav-links a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background:var(--gold);
}
.nav-cta{
  font-size:.85rem; font-weight:600;
  background:var(--plum);
  color:var(--white) !important;
  padding:10px 18px;
  border-radius:4px;
  transition:background .2s ease;
}
.nav-cta:hover{ background:var(--gold-deep); }
.nav-toggle{ display:none; }

/* Sous-menu "Nos activités" */
.has-sub{ position:relative; }
.sub-nav{
  display:none;
  position:absolute; top:100%; left:0; padding-top:14px;
}
.has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav{ display:block; }
.sub-nav > li{
  background:var(--white); border:1px solid var(--line); border-radius:6px;
  box-shadow:0 10px 24px rgba(42,34,48,.08);
  min-width:180px; overflow:hidden;
}
.sub-nav a{
  display:block; padding:11px 16px; font-size:.86rem; color:var(--ink-soft);
  border-bottom:1px solid var(--line);
}
.sub-nav li:last-child a{ border-bottom:0; }
.sub-nav a:hover{ background:var(--panel); color:var(--plum); }

@media (max-width: 900px){
  .nav-links{
    position:fixed; inset:62px 0 0 0; background:var(--cream);
    flex-direction:column; padding:32px 24px; gap:22px; align-items:flex-start;
    transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
  }
  .nav-links.open{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .nav-toggle{
    display:flex; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:6px;
  }
  .nav-toggle span{ width:22px; height:2px; background:var(--plum); display:block; }
  .sub-nav{
    display:block; position:static; padding-top:10px; padding-left:14px;
    box-shadow:none; border-left:2px solid var(--line);
  }
  .sub-nav > li{ border:0; box-shadow:none; margin-bottom:4px; min-width:0; }
  .sub-nav a{ padding:6px 0; border-bottom:0; }
}

/* ---------- Hero : le polygone à facettes ---------- */
.hero{
  position:relative;
  padding:88px 0 64px;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:52px;
  align-items:center;
}
.hero h1{
  font-size:clamp(2.1rem, 4vw, 3rem);
  max-width:15ch;
}
.hero-lead{ font-size:1.05rem; max-width:48ch; }
.hero-actions{ display:flex; gap:14px; margin-top:26px; flex-wrap:wrap; }

.btn{
  font-family:var(--font-display);
  font-weight:600;
  font-size:.88rem;
  padding:13px 24px;
  border-radius:4px;
  display:inline-flex; align-items:center; gap:8px;
  transition:transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary{ background:var(--gold); color:var(--white); }
.btn-primary:hover{ transform:translateY(-1px); background:var(--gold-deep); }
.btn-ghost{ border:1.5px solid var(--plum); color:var(--plum); }
.btn-ghost:hover{ background:var(--plum); color:var(--white); }

.hero-poles{ display:flex; gap:28px; margin-top:40px; flex-wrap:wrap; }
.hero-poles div{ max-width:160px; }
.hero-poles strong{
  display:block; font-family:var(--font-display); font-weight:600; color:var(--plum); font-size:.92rem; margin-bottom:2px;
}
.hero-poles span{ font-size:.8rem; color:var(--ink-soft); }

.facet-art{ width:100%; height:auto; }

/* ---------- Section shell ---------- */
.section{ padding:76px 0; }
.section-head{ max-width:640px; margin:0 0 44px; }
.section-head h2{ font-size:clamp(1.6rem,2.6vw,2.1rem); margin-top:12px; }
.section-panel{ background:var(--panel); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

/* ---------- Pôles (3 activités) ---------- */
.poles-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.pole-card{
  background:var(--white);
  padding:36px 30px;
  position:relative;
}
.pole-card::before{
  content:"";
  position:absolute; top:0; left:0; right:0; height:4px;
}
.pole-card.gold::before{ background:var(--gold); }
.pole-card.plum::before{ background:var(--plum); }
.pole-card.gray::before{ background:var(--gray); }
.pole-card .num{ font-family:var(--font-display); font-weight:600; font-size:.75rem; letter-spacing:.1em; color:var(--gray); }
.pole-thumb{
  width:64px; height:82px; object-fit:cover; border-radius:6px; margin-bottom:14px;
  border:1px solid var(--line);
}
.pole-card h3{ font-size:1.15rem; margin:12px 0 10px; }
.pole-card p{ font-size:.92rem; margin-bottom:16px; }
.pole-card ul{ display:flex; flex-direction:column; gap:7px; }
.pole-card li{ font-size:.86rem; color:var(--ink-soft); padding-left:16px; position:relative; }
.pole-card li::before{ content:"—"; position:absolute; left:0; color:var(--gold-deep); }
.pole-card a.pole-link{
  display:inline-block; margin-top:18px; font-family:var(--font-display); font-weight:600; font-size:.85rem; color:var(--plum);
  border-bottom:1.5px solid var(--gold);
}

/* ---------- Services grid (grille détaillée) ---------- */
.grid-services{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(270px,1fr));
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.service-card{
  background:var(--white);
  padding:30px 26px;
  transition:background .2s ease;
}
.service-card:hover{ background:var(--panel); }
.service-card .tag{
  font-family:var(--font-display); font-size:.72rem; font-weight:600; color:var(--gold-deep);
  letter-spacing:.08em; text-transform:uppercase;
}
.service-card h3{ font-size:1.05rem; margin:10px 0 8px; }
.service-card p{ font-size:.9rem; margin-bottom:0; }

/* ---------- Atouts / values ---------- */
.cards-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.plain-card{
  background:var(--white); border:1px solid var(--line); border-radius:6px; padding:28px;
}
.plain-card h3{ font-size:1.02rem; }

.atouts-list{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px 32px; }
.atouts-list li{
  font-size:.95rem; color:var(--ink-soft); padding-left:22px; position:relative;
}
.atouts-list li::before{
  content:"◆"; position:absolute; left:0; top:2px; color:var(--gold); font-size:.7rem;
}

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--plum);
  border-radius:10px;
  padding:48px;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cta-band h2{ margin:0; font-size:1.4rem; color:var(--white); }
.cta-band .eyebrow{ color:var(--gold); }
.cta-band .eyebrow::before{ background:var(--gold); }

/* ---------- Contact ---------- */
.contact-layout{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.info-list{ display:flex; flex-direction:column; gap:22px; }
.info-item{ display:flex; gap:16px; }
.info-item .ico{
  width:38px; height:38px; border-radius:6px; background:var(--panel); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--plum);
}
.info-item .label{ font-family:var(--font-display); font-size:.72rem; font-weight:600; color:var(--gray); text-transform:uppercase; letter-spacing:.08em; }
.info-item .value{ color:var(--plum); font-size:.98rem; font-weight:500; }

form.contact-form{
  background:var(--white); border:1px solid var(--line); border-radius:8px;
  padding:32px; display:flex; flex-direction:column; gap:18px;
}
.field label{
  display:block; font-family:var(--font-display); font-size:.75rem; font-weight:600; color:var(--gray);
  text-transform:uppercase; letter-spacing:.07em; margin-bottom:8px;
}
.field input, .field textarea, .field select{
  width:100%; background:var(--cream); border:1px solid var(--line); border-radius:5px;
  padding:12px 14px; color:var(--ink); font-family:var(--font-body); font-size:.95rem;
}
.field textarea{ resize:vertical; min-height:120px; }
.field input:focus, .field textarea:focus, .field select:focus{ border-color:var(--gold); }
.form-msg{
  padding:14px 16px; border-radius:6px; font-size:.9rem;
}
.form-msg.ok{ background:#eef4ea; border:1px solid #8faf7a; color:#3d5c2e; }
.form-msg.err{ background:#f7e9e6; border:1px solid #c98b7a; color:#7a3324; }

.map-wrap{
  border:1px solid var(--line); border-radius:8px; overflow:hidden; margin-top:32px;
}
.map-wrap iframe{ width:100%; height:320px; border:0; filter:grayscale(.25) sepia(.08); }

/* ---------- Footer ---------- */
.site-footer{ border-top:1px solid var(--line); padding:56px 0 28px; background:var(--panel); }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; margin-bottom:40px; }
.footer-grid img{ height:34px; margin-bottom:14px; }
.footer-grid h4{
  font-family:var(--font-display); font-size:.76rem; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--gray); margin-bottom:16px;
}
.footer-grid li{ margin-bottom:10px; font-size:.92rem; color:var(--ink-soft); }
.footer-grid a:hover{ color:var(--plum); }
.footer-bottom{
  border-top:1px solid var(--line); padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:.8rem; color:var(--gray);
}

/* ---------- Page header (pages internes) ---------- */
.page-head{ padding:60px 0 36px; border-bottom:1px solid var(--line); }
.page-head h1{ font-size:clamp(1.8rem,3.2vw,2.4rem); margin-top:12px; }
.breadcrumbs{ font-size:.82rem; color:var(--gray); margin-bottom:14px; }
.breadcrumbs a:hover{ color:var(--plum); }

.head-grid{ display:grid; grid-template-columns:1.25fr .9fr; gap:48px; align-items:center; }
.head-portrait{
  border-radius:12px; overflow:hidden; border:1px solid var(--line);
  background:var(--panel); max-width:320px; margin:0 auto;
}
.head-portrait img{ width:100%; height:auto; display:block; }
@media (max-width: 900px){
  .head-grid{ grid-template-columns:1fr; }
  .head-portrait{ order:-1; max-width:220px; }
}

/* ---------- Bloc pôle détaillé (page activités) ---------- */
.pole-detail{ padding:64px 0; border-bottom:1px solid var(--line); }
.pole-detail:last-of-type{ border-bottom:0; }
.pole-detail-head{ display:flex; align-items:center; gap:16px; margin-bottom:8px; }
.pole-dot{ width:12px; height:12px; border-radius:50%; }
.pole-dot.gold{ background:var(--gold); }
.pole-dot.plum{ background:var(--plum); }
.pole-dot.gray{ background:var(--gray); }
.pole-detail h2{ margin:0; }
.pole-detail .lead{ max-width:64ch; font-size:1.02rem; margin-top:10px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-grid .facet-wrap{ order:-1; max-width:360px; margin:0 auto; }
  .poles-grid{ grid-template-columns:1fr; }
  .cards-3{ grid-template-columns:1fr; }
  .contact-layout{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:28px; }
  .atouts-list{ grid-template-columns:1fr; }
}
@media (max-width: 560px){
  .cta-band{ flex-direction:column; align-items:flex-start; }
}
