/* ========================================
   VARIABLES CSS
   ======================================== */

:root {
  --navy-header: #2B4C7E;
  --navy-dark: #1e3a5f;
  --green-primary: #10B77F;
  --green-dark: #0ea56f;
  --orange-primary: #FF7A3D;
  --orange-dark: #FF6B35;
  --text-dark: #2d3748;
  --text-light: #4a5568;
  --bg-light: #f8f9fa;
  --white: #ffffff;
}

/* ========================================
   RESET ET BASE
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
}

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

/* ========================================
   HEADER
   ======================================== */

header {
  background: var(--navy-header);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-container img {
  width: 48px;
  height: 48px;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1rem;
}

nav a:hover,
nav a:focus {
  color: var(--orange-primary);
  outline: 2px solid var(--orange-primary);
  outline-offset: 4px;
}

.cta-button-header {
  background: var(--orange-primary);
  color: var(--white);
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.cta-button-header:hover,
.cta-button-header:focus {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 122, 61, 0.3);
  outline: 2px solid var(--orange-primary);
  outline-offset: 2px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  background-image: linear-gradient(rgba(43, 76, 126, 0.35), rgba(43, 76, 126, 0.35)), url('images/hero-house.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px;
  color: var(--white);
  text-align: center;
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.highlight {
  color: var(--orange-primary);
}

.hero-subtitle {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.95;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  padding: 12px 20px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.hero-feature svg {
  color: var(--green-primary);
  flex-shrink: 0;
}

.hero-feature p {
  margin: 0;
  text-align: left;
  font-size: 1rem;
}

.hero-annotation {
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ========================================
   BUTTONS
   ======================================== */

.cta-button {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%);
  color: var(--white);
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 122, 61, 0.3);
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 122, 61, 0.4);
  outline: 2px solid var(--orange-primary);
  outline-offset: 2px;
}

.cta-secondary {
  background: linear-gradient(135deg, var(--navy-header) 0%, var(--navy-dark) 100%);
}

.cta-secondary:hover,
.cta-secondary:focus {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #152a47 100%);
  box-shadow: 0 6px 20px rgba(43, 76, 126, 0.4);
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
  padding: 80px 40px;
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--orange-primary);
  margin-bottom: 12px;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
  padding: 100px 40px;
  background: var(--bg-light);
}

.about-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.section-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 60px;
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--white);
}

.about-card h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 16px;
  font-weight: 700;
}

.about-card p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* ========================================
   GUIDE SECTION
   ======================================== */

.guide-section {
  padding: 100px 40px;
  background: var(--white);
}

.guide-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.guide-text h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.guide-description {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

.guide-features {
  list-style: none;
  margin-bottom: 40px;
}

.guide-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.guide-features svg {
  color: var(--green-primary);
  flex-shrink: 0;
}

.guide-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* ========================================
   SECTION PARTENAIRES
   ======================================== */

.project-section {
  padding: 100px 40px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

.project-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.project-content {
  margin: 60px 0;
}

.project-description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 40px;
  font-weight: 500;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.project-feature {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.project-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
}

.project-feature p {
  font-size: 1rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}

/* Objectifs Box */
.objectives-box {
  background: linear-gradient(135deg, #e6f7f2 0%, #f0fdf9 100%);
  border: 2px solid var(--green-primary);
  border-radius: 16px;
  padding: 40px;
  margin: 60px auto;
  max-width: 800px;
  position: relative;
}

.objectives-icon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(16, 183, 127, 0.2);
}

.objectives-box h3 {
  font-size: 1.5rem;
  color: var(--navy-header);
  margin: 20px 0 30px;
  font-weight: 700;
}

.objectives-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-block;
}

.objectives-list li {
  font-size: 1.1rem;
  color: var(--text-dark);
  padding: 12px 0;
  position: relative;
  padding-left: 35px;
}

.objectives-list li::before {
  content: "●";
  color: var(--orange-primary);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: 8px;
}

.partnership-text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin: 40px auto;
  max-width: 800px;
}

/* ========================================
   FORM SECTIONS
   ======================================== */

.form-section {
  padding: 80px 40px;
  background: var(--white);
}

.contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(16, 183, 127, 0.1);
}

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

.contact-form .cta-button {
  width: 100%;
  margin-top: 20px;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: var(--navy-header);
  color: var(--white);
  padding: 60px 40px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-col p {
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover,
.footer-col a:focus {
  color: var(--orange-primary);
  outline: 2px solid var(--orange-primary);
  outline-offset: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
  color: var(--orange-primary);
  outline: 2px solid var(--orange-primary);
  outline-offset: 2px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .guide-content {
    grid-template-columns: 1fr;
  }
  
  .guide-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .cta-button-header {
    width: 100%;
  }
  
  .hero {
    padding: 80px 20px;
    min-height: 500px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .stats-section,
  .about-section,
  .guide-section,
  .project-section,
  .form-section {
    padding: 60px 20px;
  }
  
  .section-title,
  .about-section h2,
  .guide-text h2 {
    font-size: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .objectives-box {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .cta-button {
    padding: 14px 24px;
    font-size: 1rem;
  }
}

/* ========================================
   FOCUS STATES (Accessibilité)
   ======================================== */

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--orange-primary);
  outline-offset: 2px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.stat-card,
.about-card,
.project-feature {
  animation: fadeInUp 0.6s ease-out;
}
