/* ===== POLICES (auto-hébergées) ===== */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/lato-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(fonts/lato-700.woff2) format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/playfair-700.woff2) format('woff2');
}

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

:root {
  --vert:     #4A7B6F;
  --vert-cl:  #E8F0EE;
  --beige:    #F7F3EC;
  --brun:     #8B6347;
  --texte:    #2D2D2D;
  --gris:     #6B6B6B;
  --blanc:    #FFFFFF;
  --ombre:    0 4px 16px rgba(0,0,0,0.08);
  --rayon:    10px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--texte);
  background: var(--blanc);
  text-align: justify;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--vert);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; color: var(--brun); margin-bottom: .5rem; }

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

a { color: var(--vert); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== NAVIGATION ===== */
header {
  background: var(--blanc);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: auto;
  padding: 1.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vert);
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.logo-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 3px solid var(--vert-cl);
}

.logo span {
  display: block;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--gris);
  letter-spacing: .04em;
}

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

nav ul li a {
  display: block;
  padding: .45rem .85rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--texte);
  transition: background var(--transition), color var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--vert);
  color: var(--blanc);
  text-decoration: none;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--vert) 0%, #6A9B8E 100%);
  color: var(--blanc);
  text-align: center;
  padding: 6rem 2rem 5rem;
}

.hero h1 { color: var(--blanc); margin-bottom: 1rem; }

.hero p {
  color: rgba(255,255,255,.88);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background: var(--blanc);
  color: var(--vert);
  font-weight: 700;
  padding: .75rem 1.8rem;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--blanc);
  color: var(--blanc);
  margin-left: .75rem;
}

.btn-outline:hover { background: var(--blanc); color: var(--vert); }

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 2rem;
}

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

.container {
  max-width: 900px;
  margin: auto;
}

.container-wide {
  max-width: 1100px;
  margin: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .sous-titre {
  color: var(--gris);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .5rem;
}

.divider {
  width: 50px;
  height: 3px;
  background: var(--brun);
  border-radius: 2px;
  margin: .75rem auto 0;
}

/* ===== CARTES ===== */
.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.carte {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 2rem;
  box-shadow: var(--ombre);
  transition: transform var(--transition);
}

.carte:hover { transform: translateY(-4px); }

.carte-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.carte p, .carte h3 { text-align: left; }

/* ===== PROFIL / QUI SUIS-JE ===== */
.profil-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

.profil-photo {
  text-align: center;
}

.photo-placeholder {
  width: 220px;
  height: 260px;
  background: var(--vert-cl);
  border-radius: var(--rayon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 4rem;
  color: var(--vert);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.tag {
  background: var(--vert-cl);
  color: var(--vert);
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 50px;
}

/* ===== LISTE AVANTAGES ===== */
.check-list {
  list-style: none;
  margin: 1.25rem 0;
}

.check-list li {
  padding: .4rem 0 .4rem 2rem;
  position: relative;
  color: var(--texte);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--vert);
  font-weight: 700;
}

/* ===== ACCORDÉON / ÉTAPES ===== */
.etapes {
  counter-reset: etape;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.etape {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.etape-num {
  width: 52px;
  height: 52px;
  background: var(--vert);
  color: var(--blanc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .2rem;
}

/* ===== TARIFS ===== */
.tarifs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.tarif-carte {
  background: var(--blanc);
  border: 2px solid var(--vert-cl);
  border-radius: var(--rayon);
  padding: 1.75rem;
  text-align: center;
  transition: border-color var(--transition);
}

.tarif-carte:hover { border-color: var(--vert); }

.tarif-prix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--vert);
  margin: .5rem 0;
}

.tarif-desc {
  font-size: .9rem;
  color: var(--gris);
}

/* ===== CONTACT ===== */
.contact-box {
  background: var(--vert);
  color: var(--blanc);
  border-radius: var(--rayon);
  padding: 3rem 2.5rem;
  text-align: center;
}

.contact-box h2 { color: var(--blanc); margin-bottom: .75rem; }
.contact-box p  { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }

.contact-infos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.contact-info-item {
  font-size: .95rem;
  color: rgba(255,255,255,.9);
}

/* ===== CITATION ===== */
blockquote {
  border-left: 4px solid var(--brun);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--vert-cl);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  font-style: italic;
  color: var(--gris);
}

blockquote cite {
  display: block;
  margin-top: .5rem;
  font-style: normal;
  font-weight: 700;
  font-size: .9rem;
  color: var(--brun);
}

/* ===== ÉVENTAIL DE CARTES ===== */
.eventail-wrap {
  position: relative;
  margin-top: 3rem;
  overflow: visible;
}

.eventail {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  padding-top: 30px;
  padding-bottom: 1rem;
  flex-wrap: nowrap;
}

.eventail-carte {
  position: relative;
  width: 140px;
  min-height: 220px;
  flex-shrink: 0;
  background: var(--blanc);
  border-radius: 12px;
  padding: 1rem .85rem .9rem;
  box-shadow: 4px 8px 26px rgba(0,0,0,0.32);
  transform-origin: bottom center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid var(--vert);
  overflow: hidden;
  cursor: default;
}

/* Cadre intérieur façon carte à jouer */
.eventail-carte::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1.5px solid rgba(255,255,255,.45);
  border-radius: 8px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.25s ease;
  opacity: 0;
}

/* Dos de carte : fond vert plein avec motif décoratif */
.eventail-carte::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px;
  top: 54px; bottom: 8px;
  background-color: var(--vert);
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,255,255,.13) 0, rgba(255,255,255,.13) 1.5px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.13) 0, rgba(255,255,255,.13) 1.5px, transparent 0, transparent 50%);
  background-size: 9px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.2);
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.eventail-carte:nth-child(1) { transform: translateY(70px) rotate(-6deg); z-index: 1; }
.eventail-carte:nth-child(2) { transform: translateY(40px) rotate(-4deg); z-index: 2; }
.eventail-carte:nth-child(3) { transform: translateY(18px) rotate(-2deg); z-index: 3; }
.eventail-carte:nth-child(4) { transform: translateY(0px)  rotate(0deg);  z-index: 4; }
.eventail-carte:nth-child(5) { transform: translateY(18px) rotate(2deg);  z-index: 3; }
.eventail-carte:nth-child(6) { transform: translateY(40px) rotate(4deg);  z-index: 2; }
.eventail-carte:nth-child(7) { transform: translateY(70px) rotate(6deg);  z-index: 1; }

.eventail-carte:hover,
.eventail-carte:focus {
  transform: translateY(-20px) rotate(0deg);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  z-index: 10;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  overflow: visible;
  outline: none;
}

/* Cache le dos de carte au survol, révèle le cadre */
.eventail-carte:hover::after,
.eventail-carte:focus::after { opacity: 0; }

.eventail-carte:hover::before,
.eventail-carte:focus::before { opacity: 1; }

.eventail-entete {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.eventail-entete .ec-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}

.eventail-entete h3 {
  margin-bottom: 0;
  font-size: .85rem;
  line-height: 1.2;
  color: var(--vert);
}

.eventail-texte {
  position: relative;
  z-index: 3;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease 0.1s, margin-top 0.3s ease;
  font-size: .88rem;
  line-height: 1.55;
  margin-top: 0;
}

.eventail-texte p { margin-bottom: .5rem; color: var(--texte); text-align: left; }
.eventail-texte p:last-child { margin-bottom: 0; }

.eventail-carte:hover .eventail-texte,
.eventail-carte:focus .eventail-texte {
  max-height: 500px;
  opacity: 1;
  margin-top: .75rem;
}

/* Fallback mobile : grille simple */
@media (max-width: 720px) {
  .eventail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 0;
    flex-wrap: wrap;
  }
  .eventail-carte {
    transform: none !important;
    width: auto;
    min-height: unset;
    overflow: visible;
  }
  .eventail-carte::after { display: none; }
  .eventail-texte {
    max-height: none;
    opacity: 1;
    margin-top: .75rem;
  }
}

/* ===== NUAGE DE MOTS ===== */
.nuage-mots {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: .6rem 2rem;
  padding: 2.5rem 1.5rem 2rem;
  margin-top: 1.5rem;
  background: var(--vert-cl);
  border-radius: var(--rayon);
  line-height: 1.3;
}

.nuage-mots span {
  font-family: 'Playfair Display', Georgia, serif;
  transition: transform var(--transition);
  cursor: default;
}

.nuage-mots span:hover {
  transform: scale(1.12);
}

/* ===== FOOTER ===== */
footer {
  background: #1E2A27;
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 2rem;
  font-size: .875rem;
}

footer p { color: rgba(255,255,255,.65); }
footer a { color: rgba(255,255,255,.8); }
footer a:hover { color: var(--blanc); }

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  .profil-grid { grid-template-columns: 1fr; }
  .photo-placeholder { width: 160px; height: 200px; }
  .btn-outline { margin-left: 0; margin-top: .5rem; }
  .hero { padding: 4rem 1.5rem 3.5rem; }
}
