/* ═══════════════════════════════════════════
   FHTI NICE — Feuille de style principale
   Palette : Navy #1B3068 | Vert #3F7021 | Gris #6B7280
   Police : Cormorant Garamond (titres) + DM Sans (corps)
═══════════════════════════════════════════ */

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

:root {
  --navy:       #1B3068;
  --navy-dark:  #111F45;
  --navy-light: #2A4A8A;
  --green:      #3F7021;
  --green-light:#80B63E;
  --gray:       #6B7280;
  --gray-light: #F4F5F7;
  --white:      #FFFFFF;
  --text:       #1A1A2E;
  --border:     #E2E6EE;
  --shadow:     0 4px 32px rgba(27,48,104,0.10);
  --radius:     12px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 13px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── TYPOGRAPHIE ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { font-size: 1rem; color: var(--gray); line-height: 1.8; }

a { color: inherit; text-decoration: none; }

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 100px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(27,48,104,0.07);
  transition: var(--transition);
}

.nav-logo img, .nav-logo svg {
  height: 90px;
  width: auto;
}

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

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--green); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--green-light);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.85rem !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--green) !important; transform: translateY(-1px); color: var(--white) !important; }

/* Hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 0 5%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.hero-text { animation: fadeInUp 0.9s ease both; }

.hero-badge {
  display: inline-block;
  background: rgba(63,112,33,0.2);
  border: 1px solid rgba(63,112,33,0.4);
  color: var(--green-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero h1 em {
  font-style: italic;
  color: var(--green-light);
  font-weight: 600;
}

.hero-desc {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

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

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(63,112,33,0.35);
}
.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(63,112,33,0.45);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.4);
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.hero-stats {
  display: flex; gap: 2rem; margin-top: 3rem;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; font-weight: 700;
  color: var(--green-light);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.75rem; color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 4px; display: block;
}

.hero-visual {
  display: flex; justify-content: center; align-items: center;
  animation: fadeInRight 0.9s ease 0.2s both;
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  max-width: 360px;
  width: 100%;
}

.hero-card-title {
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.hero-card-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 1.2rem;
}
.hero-card-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(63,112,33,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.hero-card-text { color: rgba(255,255,255,0.8); font-size: 0.9rem; line-height: 1.5; }
.hero-card-text strong { color: var(--white); display: block; font-size: 0.95rem; }

/* ── SECTIONS GÉNÉRALES ── */
section { padding: 70px 5%; }

.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.section-header { margin-bottom: 2.5rem; }
.section-header p { max-width: 600px; margin-top: 1rem; font-size: 1.05rem; }

/* ── GRILLES ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 3rem; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--navy);
}

.card-icon {
  width: 52px; height: 52px;
  background: var(--gray-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  transition: background var(--transition);
}
.card:hover .card-icon { background: rgba(63,112,33,0.12); }

.card h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.card p { font-size: 0.93rem; }

/* ── HIGHLIGHT BOX ── */
.highlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 20px;
  padding: 4rem 5%;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.highlight::after {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.highlight h2 { color: var(--white); }
.highlight p { color: rgba(255,255,255,0.88); }

/* ── PHILOSOPHY QUOTE ── */
.philosophy {
  background: var(--gray-light);
  border-left: 4px solid var(--green);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.philosophy blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
}
.philosophy cite {
  display: block; margin-top: 0.75rem;
  font-size: 0.82rem; color: var(--gray);
  font-style: normal; font-weight: 500;
}

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item::before {
  content: '';
  position: absolute; left: -2.45rem; top: 8px;
  width: 12px; height: 12px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--green);
}
.timeline-year {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); margin-bottom: 0.3rem;
}
.timeline-item h4 { margin-bottom: 0.4rem; }

/* ── CHIFFRES CLÉS ── */
.stat-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
}
.stat-item {
  padding: 2.5rem 2rem; text-align: center;
  border-right: 1px solid var(--border);
  background: var(--white);
  transition: background var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--gray-light); }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; font-weight: 700;
  color: var(--navy); line-height: 1;
  display: block;
}
.stat-unit { font-size: 1.5rem; color: var(--green); }
.stat-label { font-size: 0.82rem; color: var(--gray); margin-top: 0.5rem; display: block; }

/* ── LISTE AVANTAGES ── */
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.95rem; color: var(--gray);
}
.check-list li::before {
  content: '✓';
  color: var(--green); font-weight: 700;
  flex-shrink: 0; margin-top: 2px;
}

/* ── CONTACT FORM ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; }

.contact-info-item {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.4rem;
}
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--gray-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-info-text strong { display: block; color: var(--navy); font-weight: 600; margin-bottom: 2px; }
.contact-info-text span { font-size: 0.9rem; color: var(--gray); }

.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--navy); margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,48,104,0.08);
}
.form-group textarea { resize: vertical; min-height: 140px; }

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

/* ── FOOTER ── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 5% 30px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1.4fr 2fr;
  gap: 2.5rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img, .footer-brand svg { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p { margin-top: 1rem; font-size: 0.78rem; font-style: italic; line-height: 1.8; color: rgba(255,255,255,0.75); }
.footer-col h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.75); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--green-light); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}
.footer-bottom a { color: rgba(255,255,255,0.82); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.animate.visible { opacity: 1; transform: translateY(0); }

/* ── PAGE HERO (sous-pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 120px 5% 50px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 600px; margin-top: 1rem; font-size: 1.1rem; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--green-light); }
.breadcrumb span { color: var(--green-light); }

/* ── TAG ── */
.tag {
  display: inline-block;
  background: rgba(63,112,33,0.1);
  color: var(--green);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 50px;
  border: 1px solid rgba(63,112,33,0.25);
  margin-bottom: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  section { padding: 70px 5%; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  nav { padding: 0 4%; }
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: 80px; left: 0; right: 0;
    background: var(--white);
    padding: 2rem; gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 1.5rem; }
}
