/**
 * CHARTE.CSS — Clart'Énergie
 * Styles globaux partagés par toutes les pages.
 */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: #F8F8F8;
  color: #1A1A1A;
  line-height: 1.7;
}
h1, h2, h3, h4, .btn, .nav-cta, .section-label {
  font-family: 'Arimo', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ── HIÉRARCHIE TYPOGRAPHIQUE ── */
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.5vw, 42px); color: #185376; }
h3 { font-size: clamp(18px, 2vw, 24px); color: #185376; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; color: #185376; }
p  { font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 15px; color: #444; line-height: 1.75; }
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: #E8B923; margin-bottom: 10px;
  font-family: 'DM Sans', sans-serif;
}

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; }
.section   { padding: 72px 24px; }

/* ── BOUTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px;
  font-family: 'Arimo', sans-serif; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: all .2s; border: 2px solid transparent;
}
.btn-primary { background: #185376; color: #ffffff; }
.btn-primary:hover { background: #1a6494; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(24,83,118,0.3); }
.btn-accent  { background: #E8B923; color: #1A1A1A; }
.btn-accent:hover { background: #d4a51e; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,185,35,0.35); }
.btn-outline { background: transparent; color: #185376; border-color: #185376; }
.btn-outline:hover { background: #185376; color: #ffffff; }
.btn-white   { background: #ffffff; color: #185376; border-color: #ffffff; }
.btn-white:hover { background: #F8F8F8; }

/* ── NAVIGATION ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: all .3s; }
nav.top     { background: transparent; }
nav.scrolled { background: rgba(255,255,255,0.97); box-shadow: 0 2px 20px rgba(24,83,118,0.10); }
.nav-inner  { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 44px; display: block; }
.nav-links  { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; color: #ffffff; transition: color .2s; }
nav.scrolled .nav-links a { color: #4A6A7D; }
.nav-links a:hover, .nav-links a.active { color: #E8B923; }
nav.scrolled .nav-links a:hover, nav.scrolled .nav-links a.active { color: #185376; }
.nav-cta { background: #E8B923 !important; color: #1A1A1A !important; padding: 10px 20px; border-radius: 8px; font-family: 'Arimo', sans-serif !important; font-weight: 700 !important; font-size: 14px !important; transition: all .2s !important; }
.nav-cta:hover { background: #d4a51e !important; transform: translateY(-1px); }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-burger span { width: 24px; height: 2px; background: #ffffff; border-radius: 2px; transition: all .3s; }
nav.scrolled .nav-burger span { background: #185376; }
.nav-mobile { display: none; position: fixed; top: 72px; left: 0; right: 0; background: #ffffff; border-bottom: 1px solid rgba(24,83,118,0.1); padding: 20px 24px; flex-direction: column; z-index: 99; box-shadow: 0 4px 24px rgba(24,83,118,0.10); }
.nav-mobile a { font-size: 16px; font-weight: 500; color: #4A6A7D; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.nav-mobile .nav-cta { border: none; margin-top: 8px; text-align: center; border-radius: 8px; padding: 14px; }

/* ── CARDS ── */
.card { background: #ffffff; border-radius: 14px; padding: 28px; box-shadow: 0 4px 24px rgba(24,83,118,0.10); transition: all .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(24,83,118,0.16); }

/* ── FOOTER ── */
footer { background: #185376; color: rgba(255,255,255,0.75); padding: 48px 24px 28px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px; }
.footer-col h4 { font-family: 'Arimo', sans-serif; font-size: 13px; font-weight: 700; color: #ffffff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .8px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: #E8B923; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.35); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }
.social-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; transition: all .2s; color: rgba(255,255,255,0.6); }
.social-btn:hover { background: #E8B923; color: #1A1A1A; }

/* ── FORMULAIRES ── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11px; font-weight: 600; color: #4A6A7D; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .5px; font-family: 'DM Sans', sans-serif; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 14px; border: 1.5px solid rgba(74,106,125,0.2); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: #1A1A1A; background: #FDF9EC; transition: all .2s; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #185376; background: #ffffff; box-shadow: 0 0 0 3px rgba(24,83,118,0.07); }
.field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { padding: 7px 14px; border: 1.5px solid rgba(74,106,125,0.2); border-radius: 8px; font-size: 13px; color: #555; cursor: pointer; background: #FDF9EC; transition: all .15s; user-select: none; font-family: 'DM Sans', sans-serif; }
.chip:hover { border-color: #185376; color: #185376; }
.chip.on { border-color: #E8B923; background: rgba(232,185,35,0.15); color: #1A1A1A; font-weight: 500; }
.submit-btn { width: 100%; padding: 14px; background: transparent; color: #E8B923; border: 2px solid #E8B923; border-radius: 10px; font-family: 'Arimo', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .2s; margin-top: 8px; }
.submit-btn:hover { background: #E8B923; color: #1A1A1A; }
.success-box { display: none; background: rgba(92,127,103,0.1); border: 1.5px solid #5C7F67; border-radius: 10px; padding: 24px; text-align: center; }
.success-box h3 { font-family: 'Arimo', sans-serif; color: #5C7F67; margin-bottom: 8px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.anim   { opacity: 0; animation: fadeUp .6s ease forwards; }
.anim-1 { animation-delay: .05s; }
.anim-2 { animation-delay: .15s; }
.anim-3 { animation-delay: .25s; }
.anim-4 { animation-delay: .35s; }

/* ── RESPONSIVE ── */
@media(max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .section { padding: 52px 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
