/* =====================================================
   STYLE.CSS — Site vitrine Sylvie Chassiot
   Assistante maternelle agréée à Cadaujac (33)
   Mobile-first, HTML/CSS pur, zéro JavaScript
===================================================== */


/* =====================================================
   1. IMPORT DE LA POLICE GOOGLE FONTS (NUNITO)
===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');


/* =====================================================
   2. VARIABLES CSS (PALETTE DE COULEURS)
===================================================== */
:root {
  --jaune:       #FFD93D;   /* Jaune principal */
  --orange:      #FF6B6B;   /* Orange accent (boutons CTA) */
  --vert:        #6BCB77;   /* Vert (badges, accents) */
  --fond-clair:  #FFFBF0;   /* Fond page chaleureux */
  --texte:       #2D2D2D;   /* Texte foncé principal */
  --blanc:       #FFFFFF;   /* Blanc pur */
  --gris-leger:  #F5F5F5;   /* Gris très léger */
  --ombre:       0 4px 20px rgba(0, 0, 0, 0.08); /* Ombre douce */
}


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

html {
  /* Défilement fluide pour les liens ancres de navigation */
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--texte);
  background-color: var(--fond-clair);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Liens par défaut (sans soulignement superflu) */
a {
  color: inherit;
  text-decoration: none;
}

/* Titres */
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.3;
}

h2 {
  font-size: 1.75rem;
  color: var(--texte);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

/* Soulignement décoratif sous les h2 */
h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--jaune);
  border-radius: 2px;
  margin-top: 0.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

img {
  max-width: 100%;
  display: block;
}


/* =====================================================
   4. CONTENEUR CENTRALISÉ
===================================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Variante centrée (texte centré, utilisée pour Contact et Footer) */
.container--centre {
  text-align: center;
}


/* =====================================================
   5. NAVIGATION STICKY
===================================================== */
.nav-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--blanc);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1.25rem;
}

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

/* Logo / nom dans la nav */
.nav-logo {
  font-weight: 800;
  font-size: 1rem;
  color: var(--texte);
  white-space: nowrap;
}

/* Liens de navigation — cachés sur mobile, visibles à partir de 768px */
.nav-links {
  display: none;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--texte);
  transition: color 0.2s ease;
}

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

/* Bouton CTA dans la nav */
.nav-cta {
  display: inline-block;
  background-color: var(--orange);
  color: var(--blanc);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background-color: #e85555;
  transform: translateY(-2px);
}


/* =====================================================
   6. BOUTONS CTA (CALL TO ACTION)
===================================================== */

/* CTA principal — grand, très visible */
.btn-cta {
  display: inline-block;
  background-color: var(--orange);
  color: var(--blanc);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  text-decoration: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.btn-cta--grand {
  font-size: 1.25rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  margin-bottom: 1.5rem;
}

.btn-cta--grand:hover {
  background-color: #e85555;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255, 107, 107, 0.5);
}

/* CTA secondaire — légèrement différent visuellement */
.btn-cta--secondaire {
  font-size: 1rem;
  padding: 0.85rem 2rem;
  background-color: var(--texte);
  box-shadow: 0 4px 15px rgba(45, 45, 45, 0.25);
  margin-top: 0.5rem;
}

.btn-cta--secondaire:hover {
  background-color: #444;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(45, 45, 45, 0.35);
}


/* =====================================================
   7. PLACEHOLDERS PHOTOS (divs colorés temporaires)
===================================================== */

/* Style de base commun à tous les placeholders */
.placeholder-photo {
  background-color: var(--jaune);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texte);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  width: 100%;
}

/* Placeholder hero — pleine largeur, bord à bord, sans arrondi */
.placeholder-photo--hero {
  height: 280px;
  margin-top: 0;
  border-radius: 0;
  width: 100%;
  align-self: stretch;
}

/* Placeholder standard (section présentation) */
.placeholder-photo--standard {
  height: 250px;
  margin-bottom: 2rem;
}

/* Placeholder espace (les 2 photos côte à côte) */
.placeholder-photo--espace {
  height: 200px;
  margin-bottom: 1rem;
}

/* Variante verte pour le jardin */
.placeholder-photo--vert {
  background-color: var(--vert);
}


/* =====================================================
   8. SECTIONS — ALTERNANCE DE FONDS
===================================================== */
.section {
  padding: 4rem 0;
}

/* Section fond blanc */
.section--blanc {
  background-color: var(--blanc);
  box-shadow: var(--ombre);
}

/* Section fond clair (crème) */
.section--fond-clair {
  background-color: var(--fond-clair);
}


/* =====================================================
   9. HERO / HEADER
===================================================== */
.hero {
  background: linear-gradient(135deg, var(--fond-clair) 0%, #FFF3CD 100%);
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.hero-content {
  max-width: 700px;
  padding: 2.5rem 1.25rem 0;
}

/* H1 du hero */
.hero h1 {
  font-size: 1.75rem;
  color: var(--texte);
  margin-bottom: 1rem;
}

/* Photo hero — mobile : pleine largeur, recadrée en hauteur fixe */
.hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* Accroche sous le h1 */
.hero-accroche {
  font-size: 1.15rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 1.5rem;
}


/* =====================================================
   10. SECTION PRÉSENTATION
===================================================== */
.presentation-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.presentation-texte {
  flex: 1;
}

/* Badges chiffres clés */
.badges {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Badge individuel */
.badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--ombre);
}

.badge--jaune {
  background-color: var(--jaune);
}

.badge--vert {
  background-color: var(--vert);
  color: var(--blanc);
}

.badge-icone {
  font-size: 2rem;
  line-height: 1;
}

.badge-chiffre {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}

.badge-texte {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
  opacity: 0.8;
}


/* =====================================================
   11. SECTION ESPACE D'ACCUEIL
===================================================== */
.espace-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.espace-carte {
  background-color: var(--blanc);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--ombre);
}

/* Image pleine largeur dans les cartes espace */
.espace-carte-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Padding uniquement sur le texte */
.espace-carte-texte {
  padding: 1.5rem;
}

.espace-carte-texte h3 {
  color: var(--texte);
  margin-bottom: 0.5rem;
}

.espace-carte-texte p {
  font-size: 0.95rem;
  color: #555;
}


/* =====================================================
   12. SECTION INFORMATIONS PRATIQUES
===================================================== */
.infos-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.infos-liste {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Ligne d'information individuelle */
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--fond-clair);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--ombre);
}

.info-icone {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.info-item strong {
  font-weight: 800;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.2rem;
}

.info-item p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0;
}


/* =====================================================
   13. SECTION CONTACT
===================================================== */
.contact-intro {
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto 2rem;
  color: #555;
}

/* Email cliquable */
.contact-email {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.lien-email {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.lien-email:hover {
  color: #e85555;
}


/* =====================================================
   14. FOOTER
===================================================== */
.footer {
  background-color: var(--texte);
  color: var(--blanc);
  padding: 2.5rem 1.25rem;
}

.footer-nom {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-mention {
  font-size: 0.85rem;
  opacity: 0.65;
  margin-bottom: 0;
}


/* =====================================================
   15. MEDIA QUERIES — TABLETTE (768px et +)
===================================================== */
@media (min-width: 768px) {

  /* Navigation : afficher les liens */
  .nav-links {
    display: flex;
  }

  /* Hero : deux colonnes côte à côte sur desktop */
  .hero {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 3rem;
    gap: 3rem;
  }

  .hero-content {
    flex: 1;
    padding: 0;
    order: 1; /* contenu à gauche */
  }

  /* Photo hero desktop : à droite, arrondie */
  .hero-img {
    width: 380px;
    height: 320px;
    flex-shrink: 0;
    border-radius: 16px;
    order: 2;
    object-fit: cover;
  }

  /* H1 plus grand */
  .hero h1 {
    font-size: 2.25rem;
  }

  /* Badges côte à côte */
  .badges {
    flex-direction: row;
  }

  .badge {
    flex: 1;
  }

  /* Présentation : une seule colonne, photo au-dessus du texte */
  .presentation-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .placeholder-photo--standard {
    width: 100%;
  }

  /* Espace : deux photos côte à côte */
  .espace-inner {
    flex-direction: row;
  }

  .espace-carte {
    flex: 1;
  }

  /* Infos pratiques en deux colonnes */
  .infos-inner {
    flex-direction: row;
    align-items: flex-start;
  }

  .infos-liste {
    flex: 1;
  }

  /* H2 plus grand sur tablette */
  h2 {
    font-size: 2rem;
  }
}


/* =====================================================
   16. MEDIA QUERIES — DESKTOP (1200px et +)
===================================================== */
@media (min-width: 1200px) {

  /* Hero encore plus aéré */
  .hero {
    padding: 4rem;
    gap: 4rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-img {
    width: 460px;
    height: 380px;
  }

  /* H2 grand sur desktop */
  h2 {
    font-size: 2.25rem;
  }

  /* CTA encore plus grand */
  .btn-cta--grand {
    font-size: 1.4rem;
    padding: 1.1rem 3rem;
  }

  /* Sections plus espacées */
  .section {
    padding: 5rem 0;
  }
}
