/* ═══════════════════════════════════════════════════════════════
   CRÉER DÉVELOPPER AQUITAINE — Design System · Anthracite & Doré
   Fichier commun à toutes les pages (variables, reset, nav, footer,
   hero, cartes, boutons, formulaires, alertes, responsive).
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Variables ──────────────────────────────────────────── */
:root {
  /* Palette principale — anthracite / or */
  --anthracite:    #1B1E23;
  --anthracite-2:  #23272E;
  --anthracite-3:  #2E333B;

  --or:            #B8912F;
  --or-dk:         #8F6F1F;
  --or-lt:         #D4AF6A;
  --or-xlt:        #EAD9AE;

  /* Fonds clairs — corporate haut de gamme */
  --bg:            #F7F6F3;
  --bg-2:          #FFFFFF;
  --surface:       #FFFFFF;
  --surface-2:     #F1EFEA;

  /* Textes */
  --text:          #1B1E23;
  --text-2:        #4A4F57;
  --text-3:        #7A808A;
  --text-inv:      #F7F6F3;

  /* Bordures */
  --border:        #E4E1DA;
  --border-2:      #D2CDC0;

  /* Dégradés signatures */
  --grad-or:       linear-gradient(135deg, #EAD9AE 0%, #B8912F 55%, #8F6F1F 100%);
  --grad-dark:     linear-gradient(135deg, #1B1E23 0%, #2E333B 100%);
  --grad-nav:      linear-gradient(90deg, #1B1E23 0%, #23272E 60%, #1B1E23 100%);
  --grad-btn:      linear-gradient(135deg, #D4AF6A 0%, #B8912F 100%);
  --grad-overlay:  linear-gradient(180deg, rgba(27,30,35,.35) 0%, rgba(27,30,35,.78) 75%, rgba(27,30,35,.94) 100%);

  /* Effets */
  --shadow-sm:     0 2px 8px rgba(27,30,35,.08);
  --shadow:        0 4px 20px rgba(27,30,35,.10);
  --shadow-lg:     0 12px 40px rgba(27,30,35,.16);
  --shadow-or:     0 4px 20px rgba(184,145,47,.30);
  --glow-or:       0 0 0 3px rgba(184,145,47,.18);

  /* Rayon */
  --radius-sm:     4px;
  --radius:        10px;
  --radius-lg:     18px;
  --radius-full:   9999px;

  /* Typo */
  --font:          'Playfair Display', 'Georgia', 'Palatino Linotype', serif;
  --font-ui:       -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --nav-h:         76px;
  --transition:    .2s ease;
}

/* ── 2. Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a { color: var(--or-dk); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--or); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
  color: var(--anthracite);
}

ul { margin: 0; padding: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--or-dk);
  margin-bottom: 10px;
}

/* ── 3. Navigation ─────────────────────────────────────────── */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--nav-h);
  background: var(--grad-nav);
  border-bottom: 1px solid rgba(184,145,47,.22);
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.20);
}

.main-nav .container {
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 30px;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand-mark {
  width: 38px; height: 38px; flex-shrink: 0;
}
.nav-brand-name {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .5px;
  background: var(--grad-or);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
  display: block;
}
.nav-brand-tagline {
  font-size: 10px;
  color: #A8AEB8;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

#menu-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  flex: 1;
}

.menuItem a {
  display: flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: #C8CBD1;
  text-decoration: none;
  letter-spacing: .3px;
  transition: all var(--transition);
  white-space: nowrap;
}
.menuItem a:hover,
.menuItem.actif a {
  color: var(--or-lt);
  background: rgba(184,145,47,.14);
  text-decoration: none;
}
.menuItem.actif a { box-shadow: inset 0 0 0 1px rgba(184,145,47,.35); }

.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

#menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(184,145,47,.35);
  color: var(--or-lt);
  font-size: 18px;
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: auto;
}

/* ── 4. Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--text-inv);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-overlay);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(32px, 4.4vw, 54px);
  max-width: 760px;
  margin-bottom: .35em;
}
.hero-sub {
  color: #E6E2D8;
  font-size: 17px;
  max-width: 620px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-sm { min-height: 340px; }
.hero-sm .hero-content { padding: 64px 24px; }
.hero-sm .hero-content h1 { font-size: clamp(28px, 3.6vw, 42px); }

/* ── 5. Boutons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
  font-family: var(--font-ui);
}
.btn-primary { background: var(--grad-btn); color: var(--anthracite); box-shadow: var(--shadow-or); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(184,145,47,.42); color: var(--anthracite); text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.10); text-decoration: none; color: #fff; }
.btn-dark { background: var(--anthracite); color: #fff; }
.btn-dark:hover { background: var(--anthracite-2); color: #fff; text-decoration: none; }
.btn-sm { padding: 8px 18px; font-size: 12.5px; }
.btn-lg { padding: 15px 34px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ── 6. Sections & cartes ──────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--grad-dark); color: var(--text-inv); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .text-3 { color: #A8AEB8; }

.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); }
.section-head p { color: var(--text-2); font-size: 16px; }

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--or-lt); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-photo { height: 190px; background-size: cover; background-position: center; }
.card-body { padding: 24px; }
.card-body h3 { font-size: 19px; margin-bottom: 8px; }
.card-body p { color: var(--text-2); font-size: 14px; margin-bottom: 14px; }
.card-link { font-size: 13px; font-weight: 700; color: var(--or-dk); }

.pilier {
  text-align: center;
  padding: 34px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: all var(--transition);
}
.pilier:hover { box-shadow: var(--shadow); border-color: var(--or-lt); transform: translateY(-2px); }
.pilier-icone {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--grad-or);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--anthracite);
}
.pilier h3 { font-size: 18px; }
.pilier p { color: var(--text-2); font-size: 14px; margin-bottom: 16px; }

.chiffres { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; text-align: center; }
.chiffre-val {
  font-family: var(--font);
  font-size: 40px;
  font-weight: 700;
  background: var(--grad-or);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.chiffre-lbl { font-size: 12.5px; letter-spacing: .5px; text-transform: uppercase; color: #A8AEB8; margin-top: 8px; }

.liste-atouts { list-style: none; }
.liste-atouts li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text-2);
  font-size: 14.5px;
}
.liste-atouts li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--grad-btn);
  border-radius: 2px;
  transform: rotate(45deg);
}

.etapes { counter-reset: etape; }
.etape {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.etape:last-child { border-bottom: none; }
.etape-num {
  counter-increment: etape;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--anthracite);
  color: var(--or-lt);
  font-family: var(--font);
  font-weight: 700;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.etape-num::before { content: counter(etape); }
.etape-txt h3 { font-size: 16.5px; margin-bottom: 4px; }
.etape-txt p { color: var(--text-2); font-size: 14px; margin: 0; }

/* ── 7. Cartes entreprises (page investissement) ───────────── */
.entreprise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.entreprise-card:hover { box-shadow: var(--shadow-lg); border-color: var(--or-lt); transform: translateY(-3px); }
.entreprise-photo { height: 180px; background-size: cover; background-position: center; position: relative; }
.entreprise-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--grad-btn);
  color: var(--anthracite);
  font-size: 11px; font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  letter-spacing: .4px;
}
.entreprise-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.entreprise-secteur { font-size: 11.5px; color: var(--or-dk); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.entreprise-body h3 { font-size: 18px; margin-bottom: 8px; }
.entreprise-body p { color: var(--text-2); font-size: 14px; margin-bottom: 16px; flex: 1; }
.entreprise-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
}
.entreprise-meta strong { color: var(--anthracite); font-family: var(--font); font-size: 15px; }
.entreprise-meta span { color: var(--text-3); }

/* ── 8. Article / actualité ────────────────────────────────── */
.article-card {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.article-card:last-child { border-bottom: none; }
.article-photo { width: 220px; height: 150px; flex-shrink: 0; border-radius: var(--radius); background-size: cover; background-position: center; }
.article-date { font-size: 12px; color: var(--or-dk); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.article-body h3 { font-size: 19px; margin-bottom: 8px; }
.article-body p { color: var(--text-2); font-size: 14.5px; margin-bottom: 8px; }
.tag-actu {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(184,145,47,.12);
  color: var(--or-dk);
  margin-right: 6px;
}

/* ── 9. Formulaires ────────────────────────────────────────── */
.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.form-label .req { color: var(--or-dk); }
.form-control {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  padding: 11px 14px;
  font-family: var(--font-ui);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
textarea.form-control { resize: vertical; }
.form-control:focus { border-color: var(--or); box-shadow: var(--glow-or); }
.form-control::placeholder { color: var(--text-3); }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ── 10. Alertes ───────────────────────────────────────────── */
.alert {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.alert-success { background: rgba(34,197,94,.10); border: 1px solid rgba(34,197,94,.28); color: #15803d; }
.alert-error   { background: rgba(239,68,68,.10); border: 1px solid rgba(239,68,68,.28); color: #b91c1c; }

/* ── 11. Footer ────────────────────────────────────────────── */
.app-footer {
  background: var(--anthracite);
  color: #A8AEB8;
  padding: 56px 0 26px;
  font-size: 13.5px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand { font-family: var(--font); font-size: 20px; color: #fff; margin-bottom: 10px; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px; font-family: var(--font-ui); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #A8AEB8; }
.footer-col a:hover { color: var(--or-lt); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #7A808A;
}
.footer-bottom a { color: #7A808A; }
.footer-bottom a:hover { color: var(--or-lt); }

/* ── 12. Bandeau CTA ───────────────────────────────────────── */
.bandeau-cta {
  background: var(--grad-dark);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}
.bandeau-cta h2 { color: #fff; margin-bottom: 12px; }
.bandeau-cta p { color: #C8CBD1; max-width: 560px; margin: 0 auto 28px; }

/* ── 13. Responsive ────────────────────────────────────────── */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  #menu-toggle { display: flex; }
  #menu-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--anthracite);
    border-bottom: 1px solid rgba(184,145,47,.22);
    padding: 10px 0;
    z-index: 200;
  }
  #menu-nav.open { display: flex; }
  .menuItem a { border-radius: 0; padding: 14px 24px; }
  .nav-cta { margin-left: 12px; }
  .nav-cta .btn-outline { display: none; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .article-card { flex-direction: column; }
  .article-photo { width: 100%; height: 180px; }
  .chiffres { gap: 34px; }
}

/* ── 14. Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--or); }
