/**
 * Déclic Impact — Layout, sections, components.
 * Uses only variables from theme.css.
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Barlow:wght@300;400;500;600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--cream); color: var(--text-dark); overflow-x: hidden; }

/* ——— NAV ——— */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: var(--nav-bg); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--nav-padding-x); height: var(--nav-height); border-bottom: 1px solid var(--nav-border);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-diamond {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--navy) 50%, var(--orange) 50%);
  transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-brand { font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: white; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-brand span { color: var(--orange); }
nav a { color: var(--nav-link); text-decoration: none; font-size: 13px; font-weight: 400; letter-spacing: 0.5px; transition: color 0.2s; margin-left: 28px; }
nav a:hover { color: var(--orange-light); }

/* ——— HERO ——— */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden; padding: 120px 5% 80px;
  background: var(--navy-dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 60%, var(--hero-gradient-orange) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 30%, var(--hero-gradient-navy) 0%, transparent 60%);
}
.hero-mountain { position: absolute; bottom: 0; left: 0; right: 0; height: 55%; }
.hero-content { position: relative; z-index: 2; max-width: var(--content-max); }
.hero-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase;
  color: var(--orange-light); margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.0; font-weight: 600; color: white;
  margin-bottom: 12px;
}
.hero-title em { font-style: italic; color: var(--orange-light); }
.hero-subtitle {
  font-size: 17px; font-weight: 300; color: var(--text-on-dark);
  line-height: 1.6; max-width: 480px; margin-bottom: 44px;
}
.hero-badges { display: flex; gap: 10px; margin-bottom: 40px; }
.badge {
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 14px; border: 1px solid var(--badge-border);
  color: var(--nav-link); border-radius: 2px;
}
.btn-primary {
  display: inline-block; background: var(--orange); color: white;
  text-decoration: none; padding: 15px 36px; font-size: 13px;
  font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: 2px; transition: background 0.2s, transform 0.15s;
  border: none; cursor: pointer; font-family: var(--font-sans);
}
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-1px); }
.hero-person {
  position: absolute; right: 8%; bottom: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
}
.hero-person-photo {
  width: 220px; height: 280px; object-fit: cover;
  border-top: 3px solid var(--orange);
  filter: grayscale(20%);
  background: linear-gradient(180deg, var(--hero-photo-gradient) 0%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3); font-size: 13px;
}
.hero-person-label { margin-top: 10px; font-size: 12px; color: var(--text-on-dark-muted); letter-spacing: 1px; text-align: center; }
.hero-person-name { font-size: 14px; color: white; font-weight: 500; }

/* ——— Section shared ——— */
section { padding: var(--section-padding); }
.section-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-serif); font-size: clamp(36px, 5vw, 58px);
  font-weight: 600; line-height: 1.05; margin-bottom: 24px; color: var(--navy-dark);
}
.section-title em { font-style: italic; color: var(--orange); }
.divider {
  width: var(--divider-width); height: var(--divider-height); background: var(--orange); margin-bottom: 40px;
}

/* ——— PROMESSE ——— */
.promesse { background: white; }
.promesse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 52px; }
.promesse-card { padding: 48px 40px; position: relative; overflow: hidden; }
.promesse-card:first-child { background: var(--navy-dark); }
.promesse-card:last-child { background: var(--cream); }
.promesse-card-title {
  font-family: var(--font-serif); font-size: 28px;
  font-weight: 600; margin-bottom: 28px;
}
.promesse-card:first-child .promesse-card-title { color: white; }
.promesse-card:last-child .promesse-card-title { color: var(--navy-dark); }
.promesse-item { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.promesse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
  margin-top: 7px; flex-shrink: 0;
}
.promesse-text { font-size: 15px; line-height: 1.6; }
.promesse-card:first-child .promesse-text { color: var(--text-on-dark-strong); }
.promesse-card:last-child .promesse-text { color: var(--text-mid); }
.promesse-text strong { font-weight: 600; }
.promesse-card:first-child .promesse-text strong { color: var(--orange-light); }
.promesse-card:last-child .promesse-text strong { color: var(--navy-dark); }

/* ——— EXPÉRIENCE ——— */
.experience { background: var(--cream); }
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 52px; }
.exp-col-title {
  font-family: var(--font-serif); font-size: 24px; font-weight: 600;
  color: var(--navy-dark); margin-bottom: 24px;
  padding-bottom: 14px; border-bottom: 1px solid var(--exp-border);
}
.exp-item { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.exp-marker {
  width: 20px; height: 1px; background: var(--orange);
  margin-top: 10px; flex-shrink: 0;
}
.exp-text { font-size: 15px; line-height: 1.6; color: var(--text-mid); }
.exp-text strong { color: var(--navy-dark); font-weight: 500; }
.geo-note {
  margin-top: 48px; padding: 20px 24px;
  border-left: 3px solid var(--orange); background: white;
  border-radius: 0 4px 4px 0;
}
.geo-note p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.geo-note strong { color: var(--navy-dark); }

/* ——— CITATION ——— */
.citation-section {
  position: relative; min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.mountain-bg { position: absolute; inset: 0; }
.citation-overlay { position: absolute; inset: 0; background: var(--citation-overlay); }
.citation-content {
  position: relative; z-index: 5; text-align: center;
  max-width: 700px; padding: 60px 40px;
}
.quote-mark {
  font-family: var(--font-serif); font-size: 120px;
  line-height: 0.6; color: var(--orange); opacity: 0.6;
  display: block; margin-bottom: 20px;
}
.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 44px); font-style: italic; font-weight: 400;
  color: white; line-height: 1.3; margin-bottom: 28px;
}
.quote-author {
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.65); font-weight: 400;
}
.quote-author strong { color: var(--orange-light); font-weight: 500; }

/* ——— APPROCHE ——— */
.approche { background: white; }
.approche-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 52px; }
.approche-card {
  padding: 36px 28px;
  background: var(--cream);
  border-top: 3px solid transparent;
  transition: border-color 0.2s;
}
.approche-card:hover { border-color: var(--orange); }
.approche-num { font-family: var(--font-serif); font-size: 56px; font-weight: 600; color: var(--approche-num); line-height: 1; margin-bottom: 12px; }
.approche-title { font-size: 16px; font-weight: 600; color: var(--navy-dark); margin-bottom: 12px; }
.approche-text { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* ——— TÉMOIGNAGES ——— */
.temoignages { background: var(--navy-dark); }
.temoignages .section-title { color: white; }
.temoignages .section-eyebrow { color: var(--orange-light); }
.temoignages .divider { background: var(--orange); }
.temoignage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.temoignage-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  padding: 28px; border-radius: 2px;
}
.stars-rating { color: var(--orange); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.temoignage-text { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.7; font-style: italic; margin-bottom: 18px; }
.temoignage-response { font-size: 13px; color: var(--orange-light); line-height: 1.6; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--card-border); }
.temoignage-author { font-size: 13px; font-weight: 600; color: white; }
.temoignage-role { font-size: 12px; color: rgba(255,255,255,0.45); }
.temoignage-cta { margin-top: 44px; text-align: center; }
.temoignage-cta p { color: var(--text-on-dark-muted); font-size: 14px; margin-bottom: 16px; }
.btn-outline {
  display: inline-block; border: 1px solid var(--orange); color: var(--orange-light);
  text-decoration: none; padding: 13px 32px; font-size: 13px;
  font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  border-radius: 2px; transition: background 0.2s;
  cursor: pointer; background: transparent;
}
.btn-outline:hover { background: var(--btn-outline-hover); }

/* ——— Testimonial form (in Témoignages) ——— */
.temoignage-form { margin-top: 40px; max-width: 560px; }
.temoignage-form input,
.temoignage-form select,
.temoignage-form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.08); font-family: var(--font-sans); font-size: 14px;
  color: white; border-radius: 2px; margin-bottom: 14px;
  outline: none; transition: border-color 0.2s;
}
.temoignage-form select { cursor: pointer; }
.temoignage-form input:focus,
.temoignage-form textarea:focus { border-color: var(--orange); }
.temoignage-form textarea { min-height: 100px; resize: vertical; }
.temoignage-form input::placeholder,
.temoignage-form textarea::placeholder { color: var(--placeholder); }
.temoignage-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.temoignage-form .form-actions { margin-top: 16px; }

/* ——— CONTACT ——— */
.contact { background: var(--cream); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-icon {
  width: 40px; height: 40px; background: var(--orange); border-radius: 2px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: white; font-size: 16px; font-weight: 600;
}
.contact-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-mid); margin-bottom: 3px; }
.contact-value { font-size: 15px; color: var(--navy-dark); font-weight: 500; }
.contact-info-box {
  margin-top: 32px; padding: 20px 24px; background: var(--info-box-bg); border-radius: 2px;
}
.contact-info-box .contact-label { color: var(--info-box-label); }
.contact-info-box .contact-value { color: var(--info-box-value); font-size: 13px; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border-form);
  background: white; font-family: var(--font-sans); font-size: 14px;
  color: var(--text-dark); border-radius: 2px; margin-bottom: 14px;
  outline: none; transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--orange); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--placeholder); }
.contact-form .btn-primary { width: 100%; }

/* ——— FOOTER ——— */
footer {
  background: var(--navy-dark); padding: 32px var(--nav-padding-x);
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--footer-border);
}
.footer-text { font-size: 12px; color: var(--footer-text); }
.footer-logo { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--footer-logo); letter-spacing: 2px; }
.footer-logo span { color: var(--orange); }

/* ——— ADMIN ——— */
.admin-wrap { min-height: 100vh; background: var(--cream); padding: 100px 5%; }
.admin-header { margin-bottom: 40px; }
.admin-header h1 { font-family: var(--font-serif); font-size: 32px; color: var(--navy-dark); }
.admin-login { max-width: 360px; }
.admin-login input { margin-bottom: 14px; }
.admin-login .btn-primary { width: 100%; margin-top: 8px; }
.admin-list { margin-top: 32px; }
.admin-card {
  background: white; border: 1px solid var(--border-form); border-radius: 2px;
  padding: 24px; margin-bottom: 20px; max-width: 720px;
}
.admin-card h3 { font-size: 16px; color: var(--navy-dark); margin-bottom: 4px; }
.admin-card .meta { font-size: 13px; color: var(--text-mid); margin-bottom: 12px; }
.admin-card .body { font-size: 14px; color: var(--text-dark); line-height: 1.6; margin-bottom: 16px; }
.admin-card textarea { width: 100%; min-height: 80px; padding: 12px; border: 1px solid var(--border-form); border-radius: 2px; font-family: var(--font-sans); margin-bottom: 12px; }
.admin-card .actions { display: flex; gap: 12px; align-items: center; }
.admin-error { color: var(--admin-error); font-size: 14px; margin-top: 8px; }
.admin-success { color: var(--admin-success); font-size: 14px; margin-top: 8px; }

@media (max-width: 768px) {
  .promesse-grid, .exp-grid, .approche-grid, .temoignage-grid, .contact-inner { grid-template-columns: 1fr; }
  .hero-person { display: none; }
  nav a { display: none; }
  .temoignage-form .form-row { grid-template-columns: 1fr; }
}
