@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Barlow:wght@300;400;500;600&display=swap');

:root {
  --black:        #1A0B09;
  --dark:         #1A0B09;
  --panel:        #240D0B;
  --border:       rgba(125,27,17,.22);
  --border-lit:   rgba(125,27,17,.45);
  --fg:           #FAEDD3;
  --muted:        rgba(250,237,211,.6);
  --gold:         #E8C97A;
  --gold-light:   #F0D48A;
  --gold-dim:     rgba(232,201,122,.12);
  --teal:         #C13D30;
  --bordeaux:     #7D1B11;
  --bordeaux-2:   #9B2318;
  --bordeaux-3:   #C13D30;
  --bordeaux-dim: rgba(125,27,17,.15);
  /* Aliases utilisés dans fondateur.html et notre-histoire.html */
  --accent:       #E8C97A;
  --surface:      #240D0B;
  --muted2:       rgba(250,237,211,.55);
  --r:            8px;
  --r-lg:         12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark); color: var(--fg);
  font-family: 'Barlow', sans-serif; font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* HEADER */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(26,11,9,.92); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border); transition: transform .35s ease;
}
.site-header.hide { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.5rem; letter-spacing: .08em; text-transform: uppercase;
}
.brand-logo { height: 78px; width: auto; display: block; }
.brand-mark {
  width: 36px; height: 36px; background: var(--gold);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; fill: #1A0B09; }
.menu { display: flex; align-items: center; gap: 2px; }
.menu a {
  padding: 8px 14px; border-radius: 6px; font-size: .82rem;
  font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); transition: color .2s, background .2s;
}
.menu a:hover { color: var(--fg); background: rgba(125,27,17,.12); }
.menu a.active { color: var(--fg); }
.nav-phone { color: var(--gold) !important; font-weight: 600; font-size: .82rem; letter-spacing: .02em; }
.nav-phone:hover { color: var(--gold-light) !important; background: transparent !important; }
.nav-cta {
  background: var(--gold) !important; color: #1A0B09 !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800 !important; letter-spacing: .08em; text-transform: uppercase;
  font-size: .92rem; padding: 10px 22px !important; border-radius: 4px !important;
  transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px) !important; }
.burger {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; background: transparent;
  border: 1px solid var(--border); border-radius: 6px;
  align-items: center; justify-content: center; cursor: pointer;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--fg); transition: .3s; }
@media (max-width: 1100px) {
  .burger { display: flex; }
  .menu { position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(26,11,9,.98); border-bottom: 1px solid var(--border); display: none; padding: 8px 16px 16px; }
  .menu.open { display: flex; }
  .menu a { border-radius: 6px; padding: 12px 16px; }
}

/* PAGE HERO */
.page-hero {
  padding: 148px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 20% 30%, rgba(125,27,17,.15), transparent 65%), var(--dark);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(232,201,122,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(232,201,122,.03) 1px, transparent 1px);
  background-size: 80px 80px; pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 18px;
}
.page-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--gold); }
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(44px, 6vw, 80px);
  line-height: .96; letter-spacing: .01em; text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 58ch; }

/* SECTION */
section { padding: 80px 0; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 14px;
}
.section-tag::before { content: ''; width: 20px; height: 1px; background: var(--gold); }
h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(30px, 3.8vw, 48px);
  text-transform: uppercase; line-height: 1; letter-spacing: .02em; margin-bottom: 12px;
}
h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.muted { color: var(--muted); }
.lead { color: var(--muted); font-size: 1rem; max-width: 60ch; line-height: 1.75; }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: #1A0B09;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  font-size: .95rem; padding: 13px 26px; border-radius: 4px;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--border-lit); color: var(--fg);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  font-size: .95rem; padding: 13px 26px; border-radius: 4px;
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: var(--gold); background: var(--gold-dim); }

/* CARDS */
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 28px;
  transition: border-color .25s, transform .2s;
}
.card:hover { border-color: rgba(232,201,122,.3); transform: translateY(-3px); }

/* GRID */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* ACCORDION */
.accordion .item { margin-bottom: 8px; }
.accordion .q {
  width: 100%; text-align: left; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--panel); color: var(--fg); cursor: pointer;
  font-family: 'Barlow', sans-serif; font-size: .95rem; font-weight: 500;
  transition: background .2s, border-color .2s;
}
.accordion .q[aria-expanded="true"] { background: rgba(232,201,122,.06); border-color: rgba(232,201,122,.3); }
.accordion .a { padding: 14px 18px; border-left: 2px solid var(--gold); margin: 6px 0 10px 8px; color: var(--muted); font-size: .93rem; }

/* ZONE TAG */
.zone-tag {
  font-size: .72rem; padding: 4px 9px; border-radius: 3px;
  border: 1px solid var(--border); color: var(--muted);
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}

/* FOOTER */
footer { background: var(--panel); border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 1.2rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.footer-desc { color: var(--muted); font-size: .88rem; line-height: 1.7; max-width: 34ch; }
.footer-col h4 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: var(--muted); font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .82rem; }
.footer-bottom a { color: var(--gold); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* COOKIE */
.cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; display: none; align-items: center; justify-content: space-between; gap: 16px; background: var(--panel); border: 1px solid var(--border-lit); border-radius: 10px; padding: 16px 20px; z-index: 9000; }
.cookie-banner p { color: var(--muted); font-size: .88rem; margin: 0; }
.cookie-banner a { color: var(--gold); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn { border: 1px solid var(--border); background: transparent; color: var(--fg); padding: 8px 14px; border-radius: 4px; cursor: pointer; font-family: 'Barlow', sans-serif; font-size: .85rem; }
.cookie-btn.accept { background: var(--gold); color: #1A0B09; font-weight: 700; border-color: transparent; }

/* ─── COMPOSANTS PARTAGÉS (fondateur / notre-histoire) ─── */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 4px; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; padding: 13px 26px; transition: background .2s, transform .15s, border-color .2s; }
.label { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.page-top { padding: 140px 0 72px; border-bottom: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-inner nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-inner nav a { color: var(--muted); font-size: .88rem; transition: color .2s; }
.footer-inner nav a:hover { color: var(--gold); }
.footer-inner p { color: var(--muted); font-size: .82rem; }

/* ─── CORRECTIONS MOBILE GLOBALES ─── */
@media (max-width: 600px) {
  .container { padding: 0 16px; }

  /* Header : réduire logo */
  .brand-logo { height: 52px; }
  .nav { height: 68px; }
  .menu { top: 68px; }

  /* Page hero */
  .page-hero { padding: 110px 0 56px; }
  .page-hero h1 { font-size: clamp(36px, 10vw, 56px); }

  /* Grids globaux */
  .grid-3 { grid-template-columns: 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Cookie banner */
  .cookie-banner { flex-direction: column; align-items: flex-start; left: 12px; right: 12px; bottom: 12px; }

  /* Boutons pleine largeur dans les sections */
  .btn-primary, .btn-secondary { font-size: .88rem; padding: 12px 20px; }

  /* Accordion */
  .accordion .q { font-size: .9rem; }

  /* Sections padding */
  section { padding: 52px 0; }
  h2 { font-size: clamp(26px, 7vw, 38px); }
}

@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .brand-logo { height: 44px; }
}
