/*
Theme Name: Concept Libre Energie
Theme URI: https://cl-energie.fr
Author: Concept Libre Energie
Author URI: https://cl-energie.fr
Description: Thème sur-mesure pour Concept Libre Énergie — Bureau d'études énergies renouvelables
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: concept-libre-energie
Tags: custom-theme, one-page, energie-renouvelable
*/

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-50:    #E8F0F7;
  --blue-100:   #B8D0E8;
  --blue-200:   #7AAFD5;
  --blue-600:   #2E5F87;
  --blue-800:   #1E4060;
  --blue-900:   #12283D;
  --gold:       #F5B800;
  --gold-dark:  #D49E00;
  --gold-light: #FDD960;
  --gold-pale:  #FEF5D0;
  --gray-50:    #F6F8FA;
  --gray-100:   #EDF0F3;
  --gray-200:   #D1D8E0;
  --gray-600:   #5A6472;
  --gray-800:   #243040;
  --text-primary:   #14202C;
  --text-secondary: #4A5766;
  --text-muted:     #7A8898;
  --border:     #D8E2EC;
  --white:      #ffffff;
  --radius:     10px;
  --radius-lg:  16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
}

/* ================================================
   NAVIGATION
   ================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 48px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold-dark); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--gray-800) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--gold-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* ================================================
   HERO
   ================================================ */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 2rem 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero h1 em { font-style: italic; color: var(--blue-800); }

.hero-lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--gray-800);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover { border-color: var(--gold); color: var(--blue-800); }

/* Hero card */
.hero-visual { position: relative; }

.hero-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-200), var(--gold));
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.hero-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label { font-size: 12px; color: var(--text-muted); font-weight: 400; }

.hero-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

/* ================================================
   STRIP
   ================================================ */
.strip {
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.strip-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.strip-items { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }

.strip-item {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.strip-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ================================================
   SECTIONS COMMUNES
   ================================================ */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 2rem;
}

.section-header { margin-bottom: 3rem; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  font-weight: 300;
  line-height: 1.8;
}

/* ================================================
   MISSIONS
   ================================================ */
.missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.mission-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mission-card:hover {
  border-color: var(--gold-light);
  box-shadow: 0 4px 20px rgba(245, 184, 0, 0.08);
}

.mission-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.mission-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue-600);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mission-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.mission-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

.mission-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 11px;
  font-weight: 500;
  color: var(--gold-dark);
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ================================================
   SECTION ABOUT (FOND BLEU)
   ================================================ */
.about-section {
  max-width: 100%;
  background: var(--blue-800);
  padding: 0;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-inner .section-eyebrow { color: var(--gold-light); }
.about-inner .section-title { color: var(--white); }
.about-inner .section-lead { color: rgba(255,255,255,0.7); max-width: none; }

.about-highlights { display: flex; flex-direction: column; gap: 1rem; }

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.highlight-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(245,184,0,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.highlight-text {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  line-height: 1.6;
}

.highlight-text strong {
  color: var(--white);
  font-weight: 500;
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

/* ================================================
   RÉFÉRENCES
   ================================================ */
.refs-section {
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
  padding: 0;
}

.refs-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 2rem;
}

.refs-placeholder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.ref-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ref-type {
  font-size: 11px;
  font-weight: 500;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.ref-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.ref-detail { font-size: 13px; color: var(--text-muted); font-weight: 300; }

.ref-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-dot svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue-600);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.refs-note { margin-top: 2rem; font-size: 13px; color: var(--text-muted); font-style: italic; }

/* ================================================
   CONTACT
   ================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1rem; }

.contact-item { display: flex; align-items: center; gap: 14px; }

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--gold-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 500;
  margin-bottom: 1px;
}

.contact-item-value { font-size: 14px; color: var(--text-primary); font-weight: 400; }

.contact-item-value a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item-value a:hover { color: var(--blue-800); }

/* FORMULAIRE */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }

.form-group input,
.form-group textarea,
.form-group select {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  background: var(--gold);
  color: var(--gray-800);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

.form-submit:hover { background: var(--gold-dark); }

#form-success {
  display: none;
  font-size: 14px;
  color: var(--gold-dark);
  padding: 10px 0;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
  background: var(--gray-800);
  color: rgba(255,255,255,0.6);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.footer-brand { max-width: 320px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.footer-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }

.footer-desc { font-size: 13px; line-height: 1.6; }

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-links-title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 60px; }
  .hero-visual { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    z-index: 99;
  }
  .hamburger { display: flex; }
  .footer-top { flex-direction: column; }
}

/* ================================================
   PAGE MENTIONS LÉGALES
   ================================================ */

.legal-page {
  min-height: 100vh;
  background: var(--gray-50);
  padding: 3rem 0 5rem;
}

.legal-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}

.legal-back:hover { color: var(--blue-800); }

.legal-main-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--blue-800);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.legal-section h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
}

.legal-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  font-weight: 300;
}

.legal-section ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
  list-style: none;
  padding: 0;
}

.legal-section ul li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
  padding-left: 1rem;
  position: relative;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.legal-section a {
  color: var(--blue-600);
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
  transition: color 0.2s;
}

.legal-section a:hover { color: var(--blue-800); }

@media (max-width: 768px) {
  .legal-page { padding: 2rem 0 4rem; }
  .legal-inner { padding: 0 1.25rem; }
}