/* =========================================================
   Epikoeur Conseil — Polices auto-hébergées (RGPD)
   Fichiers dans assets/fonts/ — téléchargés via telecharger-polices.ps1
   ========================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Inter.ttf') format('truetype');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/Lora.ttf') format('truetype');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/Lora-Italic.ttf') format('truetype');
}

/* =========================================================
   Epikoeur Conseil — Feuille de style partagée
   Palette bleus & verts, typographie lisible, attention humaine
   ========================================================= */

:root {
  /* Bleus */
  --bleu-profond: #1e4e7a;
  --bleu-medium:  #2f6f9f;
  --bleu-clair:   #6fa8c9;
  --bleu-pale:    #e6f0f6;

  /* Verts */
  --vert-sauge:   #5e8b75;
  --vert-doux:    #88b09c;
  --vert-clair:   #c9ddd1;
  --vert-pale:    #ecf3ee;

  /* Neutres chaleureux */
  --creme:        #faf8f3;
  --blanc:        #ffffff;
  --gris-doux:    #e8e6e1;
  --texte:        #1f2d3d;
  --texte-doux:   #4a5a6e;

  /* Accents */
  --accent:       #d4a574; /* terracotta doux pour rappel chaleur humaine */

  /* Typographie */
  --police-titre: 'Lora', Georgia, 'Times New Roman', serif;
  --police-corps: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --largeur-max: 1140px;
  --rayon: 12px;
  --ombre-douce: 0 4px 20px rgba(30, 78, 122, 0.08);
  --ombre-plus:  0 8px 30px rgba(30, 78, 122, 0.12);
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--police-corps);
  font-size: 18px;             /* base généreuse pour la lisibilité */
  line-height: 1.65;
  color: var(--texte);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------- Typographie ------- */
h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: 600;
  color: var(--bleu-profond);
  line-height: 1.25;
  margin-bottom: 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.35rem; color: var(--vert-sauge); }

p {
  margin-bottom: 1.2em;
  color: var(--texte-doux);
  max-width: 70ch;            /* longueur de ligne confortable */
}

a {
  color: var(--bleu-medium);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

a:hover, a:focus {
  color: var(--vert-sauge);
  border-bottom-color: var(--vert-sauge);
}

strong { color: var(--texte); }

/* ------- Conteneurs ------- */
.container {
  width: 100%;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.25rem 0;
}

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

.section--vert {
  background: linear-gradient(135deg, var(--vert-pale) 0%, var(--bleu-pale) 100%);
}

/* ------- Header & Navigation ------- */
.site-header {
  background: var(--blanc);
  border-bottom: 1px solid var(--gris-doux);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: var(--largeur-max);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--police-titre);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--bleu-profond);
  border: none;
}

.logo:hover {
  color: var(--vert-sauge);
}

.logo-mark {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.logo:hover .logo-mark {
  opacity: 0.8;
}

.footer-logo {
  display: block;
  height: 240px;
  width: auto;
  margin-bottom: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--texte);
  font-weight: 500;
  font-size: 1rem;
  border: none;
  padding: 0.4rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--vert-sauge);
  transform: scaleX(0);
  transform-origin: center;
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--bleu-profond);
}

/* ------- Hero ------- */
.hero {
  padding: 4rem 0 3.25rem;
  background: linear-gradient(135deg, var(--bleu-pale) 0%, var(--vert-pale) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--vert-clair) 0%, transparent 70%);
  opacity: 0.4;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .baseline {
  font-size: 1.3rem;
  color: var(--vert-sauge);
  font-style: italic;
  margin-bottom: 1.5rem;
  font-family: var(--police-titre);
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--texte-doux);
  margin-bottom: 2rem;
  max-width: 60ch;
}

/* ------- Boutons ------- */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: var(--rayon);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--bleu-profond);
  color: var(--blanc);
}

.btn-primary:hover {
  background: var(--vert-sauge);
  color: var(--blanc);
  transform: translateY(-2px);
  box-shadow: var(--ombre-plus);
}

.btn-secondary {
  background: transparent;
  color: var(--bleu-profond);
  border-color: var(--bleu-profond);
  margin-left: 0.5rem;
}

.btn-secondary:hover {
  background: var(--bleu-profond);
  color: var(--blanc);
}

/* ------- Cartes (valeurs, services) ------- */
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.carte {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 2rem;
  box-shadow: var(--ombre-douce);
  transition: var(--transition);
  border-top: 3px solid var(--vert-sauge);
}

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

/* Cartes avec plusieurs emojis en haut (ex. respect + environnement) */
.carte-icones {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.carte-icones .carte-icone {
  margin-bottom: 0;
}

.carte-icone {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--vert-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.carte h3 {
  margin-bottom: 0.7rem;
  color: var(--bleu-profond);
}

.carte p {
  font-size: 0.97rem;
  margin-bottom: 0;
}

/* ------- Section titres ------- */
.section-titre {
  text-align: center;
  margin-bottom: 1rem;
}

.section-intro {
  text-align: center;
  max-width: 65ch;
  margin: 0 auto 2rem;
  color: var(--texte-doux);
}

.kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--vert-sauge);
  margin-bottom: 1rem;
}

/* ------- Page Équipe ------- */
.profil {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.profil-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bleu-medium) 0%, var(--vert-sauge) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanc);
  font-family: var(--police-titre);
  font-size: 5rem;
  font-weight: 600;
  box-shadow: var(--ombre-plus);
  position: relative;
  overflow: hidden;
  /* Pour la photo : remplit le cercle sans déformation, centrée */
  object-fit: cover;
  object-position: center;
}

.profil-photo .note-photo {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--police-corps);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.profil-info h2 {
  margin-bottom: 0.2rem;
}

.profil-titre {
  font-style: italic;
  color: var(--vert-sauge);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  font-family: var(--police-titre);
}

.citation {
  border-left: 4px solid var(--vert-sauge);
  padding: 1.2rem 1.5rem;
  background: var(--vert-pale);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--texte);
}

.citation::before {
  content: '« ';
  color: var(--vert-sauge);
  font-size: 1.5rem;
}

.citation::after {
  content: ' »';
  color: var(--vert-sauge);
  font-size: 1.5rem;
}

.parcours {
  list-style: none;
  margin-top: 1rem;
}

.parcours li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.7rem;
  color: var(--texte-doux);
}

.parcours li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--vert-sauge);
}

/* Lien LinkedIn du profil */
.profil-linkedin {
  margin-top: -0.4rem;
  margin-bottom: 1.5rem;
}

.profil-linkedin a {
  color: var(--bleu-profond);
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.profil-linkedin a:hover,
.profil-linkedin a:focus {
  color: var(--bleu-profond);
  border-bottom-color: var(--bleu-profond);
}

/* ------- Page Contact ------- */
.contact-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-infos {
  background: var(--blanc);
  padding: 2.5rem;
  border-radius: var(--rayon);
  box-shadow: var(--ombre-douce);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icone {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bleu-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-family: var(--police-corps);
  color: var(--bleu-profond);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-item p {
  margin: 0;
  font-size: 0.97rem;
}

.contact-item a {
  color: var(--bleu-medium);
  font-weight: 500;
}

.contact-cta {
  background: linear-gradient(135deg, var(--bleu-profond) 0%, var(--vert-sauge) 100%);
  color: var(--blanc);
  padding: 2.5rem;
  border-radius: var(--rayon);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-cta h3 {
  color: var(--blanc);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.8rem;
}

.contact-cta .btn {
  background: var(--blanc);
  color: var(--bleu-profond);
  align-self: flex-start;
}

.contact-cta .btn:hover {
  background: var(--creme);
  color: var(--vert-sauge);
}

/* ------- Footer ------- */
.site-footer {
  background: var(--bleu-profond);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 2.5rem;
}

.footer-grille {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer-logo-section {
  flex-shrink: 0;
}

.footer-description {
  padding-top: 0.3rem;
  align-self: stretch;
}

.footer-description p {
  margin-bottom: 0;
  font-size: 1.7rem;
  font-weight: bold;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-bottom: 40px;
}

.footer-nav {
  padding-top: 0.5rem;
}

.site-footer h4 {
  color: var(--blanc);
  font-family: var(--police-corps);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  border: none;
  display: block;
  padding: 0.3rem 0;
}

.site-footer a:hover {
  color: var(--vert-clair);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.footer-bas {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  text-align: left;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
}

.footer-baseline-text {
  display: block;
  font-style: italic;
  font-family: var(--police-titre);
  font-size: 1.35rem;
  color: var(--vert-clair);
  margin-top: 0;
  font-weight: normal;
}

/* ------- Menu hamburger ------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-toggle:hover {
  background: var(--bleu-pale);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bleu-profond);
  border-radius: 2px;
  transition: var(--transition);
}

/* Animation croix à l'ouverture */
.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ------- Animations au scroll (Intersection Observer) ------- */
.animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Décalage en cascade pour les cartes */
.grille .carte:nth-child(1).animate { transition-delay: 0s; }
.grille .carte:nth-child(2).animate { transition-delay: 0.12s; }
.grille .carte:nth-child(3).animate { transition-delay: 0.24s; }

/* Respecter la préférence de l'utilisateur */
@media (prefers-reduced-motion: reduce) {
  .animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------- Responsive ------- */
@media (max-width: 800px) {
  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.2rem;
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--blanc);
    border-top: 1px solid var(--gris-doux);
    border-bottom: 1px solid var(--gris-doux);
    box-shadow: var(--ombre-douce);
    padding: 0.5rem 0;
    z-index: 200;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0;
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .section {
    padding: 2rem 0;
  }

  .profil {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .profil-photo {
    margin: 0 auto;
  }

  .profil p, .profil .citation, .profil .parcours {
    text-align: left;
  }

  .contact-grille {
    grid-template-columns: 1fr;
  }

  .footer-grille {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .btn-secondary {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* ------- Pages légales ------- */
.hero--compact {
  padding: 3rem 0 2rem;
}

.legal-content {
  max-width: 780px;
}

.legal-bloc {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--gris-doux);
}

.legal-bloc:last-of-type {
  border-bottom: none;
}

.legal-bloc h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--bleu-profond);
}

.legal-bloc h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--vert-sauge);
}

.legal-liste {
  list-style: none;
  margin: 1rem 0 1rem 0;
}

.legal-liste li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  color: var(--texte-doux);
  font-size: 0.97rem;
  max-width: none;
  margin-bottom: 0;
}

.legal-liste li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bleu-clair);
}

.legal-liste li strong {
  color: var(--texte);
}

.legal-maj {
  font-size: 0.88rem;
  color: var(--texte-doux);
  opacity: 0.75;
  font-style: italic;
  margin-top: 2rem;
}

.a-completer {
  background: #fff3cd;
  color: #856404;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.92em;
  font-style: italic;
}

code {
  font-family: monospace;
  background: var(--gris-doux);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--bleu-profond);
}

/* Liens légaux dans le footer-bas */
.footer-bas {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-legal-liens {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-liens a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  border: none;
  display: inline;
  padding: 0;
  transition: var(--transition);
}

.footer-legal-liens a:hover {
  color: var(--vert-clair);
}

@media (max-width: 600px) {
  .footer-bas {
    flex-direction: column;
    text-align: center;
  }
}

/* ------- Accessibilité ------- */
:focus-visible {
  outline: 3px solid var(--vert-sauge);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
