/* ================================================
   MARIE-LAURE EBRARD — ÉVOLUTION PROFESSIONNELLE
   Design system global
   ================================================ */

/* ---- Variables ---- */
:root {
  --bleu-profond:     #2B4C7E;
  --bleu-moyen:       #3A6299;
  --bleu-clair:       #5B8DB8;
  --bleu-tres-clair:  #EAF1F8;
  --blanc-casse:      #FAFBFD;
  --gris-bleu:        #F0F4F8;
  --texte-principal:  #3A3A3A;
  --texte-secondaire: #6B7B8D;
  --bordure:          #E2E8F0;
  --vert-sauge:       #7A9E7E;
  --orange-cta:       #D4845A;
  --orange-hover:     #be6f46;

  --font-titre: 'DM Serif Display', Georgia, serif;
  --font-corps:  'Inter', system-ui, sans-serif;
  --font-accent: 'DM Sans', system-ui, sans-serif;

  --rayon: 6px;
  --rayon-large: 12px;
  --ombre: 0 4px 24px rgba(43,76,126,0.08);
  --ombre-forte: 0 8px 40px rgba(43,76,126,0.14);

  --max-largeur: 1100px;
  --padding-section: 5rem 1.5rem;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Base ---- */
body {
  background-color: var(--blanc-casse);
  color: var(--texte-principal);
  font-family: var(--font-corps);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---- Typographie ---- */
h1, h2, h3, h4 {
  font-family: var(--font-titre);
  line-height: 1.2;
  color: var(--bleu-profond);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin-bottom: 1rem; text-align: justify; hyphens: auto; }
p:last-child { margin-bottom: 0; }

/* ---- Utilitaires ---- */
.conteneur {
  max-width: var(--max-largeur);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.etiquette {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bleu-clair);
  margin-bottom: 0.75rem;
}

.etiquette--claire {
  color: rgba(255,255,255,0.7);
}

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--rayon);
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn--principal {
  background-color: var(--orange-cta);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212,132,90,0.35);
}

.btn--principal:hover {
  background-color: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,132,90,0.45);
}

.btn--secondaire {
  background-color: transparent;
  color: var(--bleu-profond);
  border: 2px solid var(--bleu-profond);
}

.btn--secondaire:hover {
  background-color: var(--bleu-profond);
  color: #fff;
}

.btn--blanc {
  background-color: #fff;
  color: var(--bleu-profond);
  box-shadow: 0 4px 16px rgba(43,76,126,0.15);
}

.btn--blanc:hover {
  background-color: var(--bleu-tres-clair);
}

/* ---- Fade-in au scroll ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-color: var(--bordure);
  box-shadow: var(--ombre);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: var(--max-largeur);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-nom {
  font-family: var(--font-titre);
  font-size: 1.1rem;
  color: var(--bleu-profond);
}

.logo-titre {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  color: var(--texte-secondaire);
  letter-spacing: 0.05em;
}

/* ---- Nav desktop ---- */
.nav-principale {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-principale a {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--texte-principal);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-principale a:hover,
.nav-principale a.active {
  color: var(--bleu-profond);
  border-color: var(--bleu-clair);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ---- Burger ---- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background-color: var(--bleu-profond);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.ouvert span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.ouvert span:nth-child(2) { opacity: 0; }
.menu-toggle.ouvert span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================================================
   HERO — image plein-cadre + dégradé bleu à gauche
   ================================================ */
.hero {
  position: relative;
  padding-top: 70px; /* hauteur du header fixe */
  background-color: var(--bleu-profond);
  overflow: hidden;
  min-height: 520px;
}

/* Image de fond — positionnée via img tag pour éviter les problèmes de chemin CSS */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 0;
  display: block;
}

/* Dégradé opaque à gauche pour lisibilité, fondu vers la photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(43, 76, 126, 0.97) 0%,
    rgba(43, 76, 126, 0.93) 38%,
    rgba(43, 76, 126, 0.55) 60%,
    rgba(43, 76, 126, 0.10) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-contenu {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: 5rem max(5%, 2rem) 5rem max(5%, 2rem);
}

.hero-contenu h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.hero-identite {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-identite .separateur {
  opacity: 0.4;
}

.hero-accroche {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.87);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-accent);
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ================================================
   SECTION GÉNÉRIQUE
   ================================================ */
.section {
  padding: var(--padding-section);
}

.section--blanc { background-color: var(--blanc-casse); }
.section--gris  { background-color: var(--gris-bleu); }
.section--bleu  { background-color: var(--bleu-profond); }

.section-entete {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-entete h2 {
  margin-bottom: 1rem;
}

.section-entete p {
  color: var(--texte-secondaire);
  font-size: 1.05rem;
}

/* ================================================
   SECTION "EN QUOI LE BILAN PEUT VOUS AIDER"
   ================================================ */
.grille-avantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.carte-avantage {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-large);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--ombre);
  transition: transform 0.25s, box-shadow 0.25s;
}

.carte-avantage:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-forte);
}

.carte-icone {
  width: 56px;
  height: 56px;
  background: var(--bleu-tres-clair);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.carte-icone svg {
  width: 26px;
  height: 26px;
  color: var(--bleu-profond);
  stroke: currentColor;
}

.carte-avantage h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.carte-avantage p {
  font-size: 0.9rem;
  color: var(--texte-secondaire);
  line-height: 1.5;
}

.section-lien {
  text-align: center;
  margin-top: 2.5rem;
}

/* ================================================
   SECTION "LES 3 PHASES"
   ================================================ */
.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.phases::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 2px;
  background: linear-gradient(to right, var(--bleu-clair), var(--bleu-profond));
  z-index: 0;
}

.phase {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1rem;
}

.phase-numero {
  width: 52px;
  height: 52px;
  background: var(--bleu-profond);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-titre);
  font-size: 1.3rem;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--gris-bleu);
}

.phase h3 {
  margin-bottom: 0.5rem;
}

.phase p {
  font-size: 0.9rem;
  color: var(--texte-secondaire);
}

.phase-duree {
  display: inline-block;
  font-size: 0.78rem;
  font-family: var(--font-accent);
  font-weight: 600;
  color: var(--bleu-clair);
  background: var(--bleu-tres-clair);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-top: 0.5rem;
}

/* ================================================
   SECTION "MON APPROCHE"
   ================================================ */
.approche-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.approche-image {
  position: relative;
}

.approche-image img {
  width: 100%;
  border-radius: var(--rayon-large);
  box-shadow: var(--ombre-forte);
  display: block;
}

.approche-badge-flottant {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--bleu-profond);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--rayon-large);
  text-align: center;
  box-shadow: var(--ombre-forte);
  font-family: var(--font-accent);
  min-width: 130px;
}

.approche-badge-flottant strong {
  display: block;
  font-size: 1.8rem;
  font-family: var(--font-titre);
  line-height: 1;
}

.approche-badge-flottant span {
  font-size: 0.72rem;
  opacity: 0.85;
  line-height: 1.3;
}

.approche-texte h2 {
  margin-bottom: 1.25rem;
}

.approche-texte p {
  color: var(--texte-secondaire);
  margin-bottom: 1rem;
}

.approche-competences {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.75rem 0;
}

.competence {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.competence-icone {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--bleu-tres-clair);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.competence-icone svg {
  width: 18px;
  height: 18px;
  color: var(--bleu-profond);
  stroke: currentColor;
}

.competence-texte strong {
  display: block;
  font-size: 0.9rem;
  font-family: var(--font-accent);
  color: var(--bleu-profond);
  margin-bottom: 0.1rem;
}

.competence-texte span {
  font-size: 0.85rem;
  color: var(--texte-secondaire);
}

.lien-naturo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--vert-sauge);
  font-family: var(--font-accent);
  font-weight: 500;
  border-bottom: 1px solid var(--vert-sauge);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.lien-naturo:hover { opacity: 0.75; }

/* ================================================
   SECTION "TÉMOIGNAGES"
   ================================================ */
.temoignages-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.temoignage {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-large);
  padding: 2rem;
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.temoignage-etoiles {
  color: #F5A623;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.temoignage-texte {
  font-style: italic;
  color: var(--texte-principal);
  line-height: 1.65;
  margin: 0;
  flex: 1;
  text-align: left;
  hyphens: none;
}

.temoignage-auteur {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid var(--bordure);
  padding-top: 0.75rem;
}

.temoignage-nom {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bleu-profond);
}

.temoignage-source {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--texte-secondaire);
}

.temoignages-placeholder {
  text-align: center;
  padding: 2rem;
  background: var(--bleu-tres-clair);
  border-radius: var(--rayon-large);
  color: var(--texte-secondaire);
  font-family: var(--font-accent);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ================================================
   SECTION "CRÉDIBILITÉ"
   ================================================ */
.credibilite-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.credibilite-logos {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.credibilite-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-large);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--ombre);
}

.credibilite-item svg {
  width: 36px;
  height: 36px;
  color: var(--bleu-profond);
  flex-shrink: 0;
  stroke: currentColor;
}

.credibilite-item-texte strong {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.95rem;
  color: var(--bleu-profond);
  margin-bottom: 0.2rem;
}

.credibilite-item-texte span {
  font-size: 0.83rem;
  color: var(--texte-secondaire);
}

.credibilite-certificat {
  border-radius: var(--rayon-large);
  overflow: hidden;
  box-shadow: var(--ombre-forte);
  border: 1px solid var(--bordure);
}

.credibilite-certificat img {
  width: 100%;
  display: block;
}

/* ================================================
   SECTION CTA FINAL
   ================================================ */
.cta-final {
  text-align: center;
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, var(--bleu-profond) 0%, var(--bleu-moyen) 100%);
}

.cta-final h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-final p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background-color: #1a2f50;
  color: rgba(255,255,255,0.75);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-largeur);
  margin: 0 auto;
}

.footer-grille {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo-nom {
  font-family: var(--font-titre);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.footer-logo-titre {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  opacity: 0.6;
  margin-bottom: 1rem;
}

.footer-col h4 {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  color: var(--bleu-clair);
}

.footer-col p,
.footer-col a {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-naturo-lien {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--vert-sauge) !important;
  border-bottom: 1px solid var(--vert-sauge);
  padding-bottom: 1px;
}

.footer-bas {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ================================================
   EXCEPTIONS À LA JUSTIFICATION GLOBALE
   Zones courtes, centrées ou de nature UI où justify
   ne s'applique pas (hero, CTA, cartes courtes, footer)
   ================================================ */

/* Sections centrées — sous-titres */
.section-entete p { text-align: center; hyphens: none; }

/* Hero accueil */
.hero-accroche { text-align: left; hyphens: none; }
.hero-identite  { text-align: left; hyphens: none; }

/* Hero pages intérieures */
.page-hero p { text-align: center !important; hyphens: none !important; }

/* CTA final */
.cta-final p { text-align: center; hyphens: none; }

/* Cartes courtes — texte court, gauche plus lisible */
.carte-avantage p    { text-align: left; hyphens: none; }
.phase p             { text-align: left; hyphens: none; }
.financement-carte p { text-align: left; hyphens: none; }
.synergie-carte p    { text-align: left; hyphens: none; }
.credibilite-item-texte span { text-align: left; hyphens: none; }

/* Contact — infos pratiques */
.contact-item p { text-align: left; hyphens: none; }
.carte-rdv p    { text-align: center; hyphens: none; }

/* Footer — coordonnées */
.footer-col p { text-align: left; hyphens: none; }

/* Placeholder blog/témoignages */
.temoignages-placeholder { text-align: center; }
.temoignages-placeholder p { text-align: center; hyphens: none; }
.blog-vide p { text-align: center; hyphens: none; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
  .grille-avantages { grid-template-columns: repeat(2, 1fr); }
  .phases { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .phases::before { display: none; }
  .approche-grille { grid-template-columns: 1fr; gap: 2.5rem; }
  .approche-image { max-width: 340px; margin: 0 auto; }
  .approche-badge-flottant { right: 0; bottom: -1rem; }
  .credibilite-grille { grid-template-columns: 1fr; }
  .footer-grille { grid-template-columns: 1fr 1fr; }
  .hero { background-position: center center; }
  .hero-contenu { padding: 3rem 1.5rem 3rem; max-width: 100%; }
}

@media (max-width: 640px) {
  :root { --padding-section: 3.5rem 1.25rem; }

  /* Logo — masquer le sous-titre sur petits écrans pour éviter les débordements */
  .logo-titre { display: none; }

  /* Navigation mobile */
  .nav-principale {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0;
    border-top: 1px solid var(--bordure);
    box-shadow: var(--ombre-forte);
  }
  .nav-principale.ouverte { display: flex; }
  .nav-principale a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--bordure);
    font-size: 1rem;
  }
  .nav-principale a:last-child { border-bottom: none; }
  .nav-cta .btn { display: none; }
  .menu-toggle { display: flex; }

  /* Grilles */
  .grille-avantages { grid-template-columns: 1fr; }
  .temoignages-grille { grid-template-columns: 1fr; }
  .temoignage-texte { text-align: left; hyphens: none; }
  .footer-grille { grid-template-columns: 1fr; }
  .footer-bas { flex-direction: column; text-align: center; }

  /* Hero accueil */
  .hero-contenu { padding: 2.5rem 1.25rem 3rem; }
  .hero-badges { display: none; }
  .hero-overlay { background: linear-gradient(to bottom, rgba(43,76,126,0.95) 0%, rgba(43,76,126,0.88) 100%); }
  .approche-badge-flottant { display: none; }

  /* Hero des pages intérieures — réduire le padding (surchargé sur les pages inline) */
  .page-hero { padding: 6rem 1.25rem 3rem !important; }
  .page-hero p { font-size: 1rem !important; }

  /* Boutons : autoriser le retour à la ligne + pleine largeur dans les zones CTA */
  .btn { white-space: normal; }
  .hero-contenu .btn--principal,
  .cta-final .btn { width: 100%; justify-content: center; }
}
