/* Empowered by Nicole Eremia - Styles principaux */

/* Import des Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Variables CSS pour la charte graphique */
:root {
  /* Palette de couleurs stricte */
  --color-primary: #2C3E50;     /* Bleu-gris métallisé profond */
  --color-accent: #D4A850;      /* Or doux satiné */
  --color-background: #FFFDF8;  /* Blanc cassé lumineux */
  --color-background-alt: #F9F5EC; /* Crème doux */
  
  /* Typographies */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Tailles de titres exactes */
  --h1-size: 64px;
  --h2-size: 48px;
  --h3-size: 32px;
  --h4-size: 24px;
  --h5-size: 18px;
  --h6-size: 16px;
  
  /* Taille du texte principal */
  --body-size: 18px;
  
  /* Largeur maximale */
  --max-width: 1140px;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-primary);
  background-color: var(--color-background);
  overflow-x: hidden;
}

/* Typographies selon les spécifications */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }
h5 { font-size: var(--h5-size); }
h6 { font-size: var(--h6-size); }

/* Responsive typography */
@media (max-width: 768px) {
  :root {
    --h1-size: 48px;
    --h2-size: 36px;
    --h3-size: 28px;
    --h4-size: 22px;
    --body-size: 16px;
  }
}

@media (max-width: 480px) {
  :root {
    --h1-size: 36px;
    --h2-size: 28px;
    --h3-size: 24px;
    --h4-size: 20px;
    --body-size: 16px;
  }
}

/* Container principal */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Flexbox containers */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }

/* Sections */
section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--color-background-alt);
}

/* Hero section - 100vh minimum */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

/* Boutons selon la charte */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background-color: #c19940;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 80, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 0.5rem 0;
  transition: var(--transition);
  will-change: transform;
}

.navbar.scrolled {
  background-color: rgba(255, 253, 248, 0.98);
  box-shadow: 0 2px 20px rgba(44, 62, 80, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  z-index: 1001;
}

.logo-image {
  height: 220px;
  width: auto;
  max-width: 800px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  position: relative;
  z-index: 1001;
}

.nav-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--color-accent);
}

/* Menu mobile */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-background);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: var(--transition);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Grille responsive */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Images responsives */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Cards */
.card {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(44, 62, 80, 0.15);
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: white;
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-content {
  margin-bottom: 2rem;
}

.footer-signature {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--color-accent);
  font-weight: 500;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Formulaires */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 168, 80, 0.1);
}

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

/* Utilitaires */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.py-1 { padding: 1rem 0; }
.py-2 { padding: 2rem 0; }
.py-3 { padding: 3rem 0; }

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-fill-mode: both;
  will-change: opacity, transform;
}

/* Stabilisation des images */
.hero-image,
.mission-image {
  position: relative;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.hero-image img,
.mission-image img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .hero {
    min-height: 80vh;
  }
}
/* Ajustement du padding pour ne pas cacher le titre sous le header */
body {
  padding-top: 200px;
}

/* Agrandissement du logo */
.logo-image {
  height: 220px;
  width: auto;
  max-width: 1000px;
}

/* Responsive logo */
@media (max-width: 768px) {
  .logo-image {
    height: 120px;
  }
}
