/* ==========================================================================
   PIERRE BASTIN — Feuille de style principale
   --------------------------------------------------------------------------
   Tout le design tient dans CE seul fichier. Pour changer une couleur,
   une police ou un espacement sur TOUT le site, il suffit de modifier les
   "variables" ci-dessous (les lignes qui commencent par --).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES — les réglages globaux (couleurs, polices, etc.)
   -------------------------------------------------------------------------- */
:root {
  /* Teintes violettes (flamme violette) */
  --violet-deep:  #5b4a8a;
  --violet:       #7a64ad;
  --violet-soft:  #b8a4d9;
  --violet-wash:  #f1ecf7;   /* fond très clair violet */

  /* Teintes vertes (cristal d'émeraude) */
  --emerald-deep: #2f7a5f;
  --emerald:      #4a9d7d;
  --emerald-soft: #9ccdb8;
  --emerald-wash: #ecf5f0;   /* fond très clair vert */

  /* Neutres */
  --cream:   #fdf9f2;        /* fond général, blanc cassé chaud */
  --white:   #ffffff;
  --ink:     #34303a;        /* texte principal */
  --muted:   #6f6a79;        /* texte secondaire */
  --line:    #e7e1ee;        /* traits de séparation */

  /* Typographie */
  --font-titre: "Cormorant Garamond", Georgia, serif;
  --font-texte: "Mulish", "Segoe UI", system-ui, sans-serif;

  /* Mesures */
  --largeur-max: 1080px;
  --rayon: 14px;             /* arrondi des coins */
  --ombre: 0 18px 40px -22px rgba(253, 249, 242, 0.92);
  --transition: 0.25s ease;
}

/* --------------------------------------------------------------------------
   2. BASE — réglages généraux
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-texte);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  /* léger halo coloré en fond de page */
  background-image:
    radial-gradient(60rem 60rem at 110% -10%, var(--violet-wash) 0%, transparent 55%),
    radial-gradient(50rem 50rem at -10% 110%, var(--emerald-wash) 0%, transparent 55%);
  background-attachment: fixed;
}

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

a { color: var(--violet-deep); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--emerald-deep); }

h1, h2, h3 { font-family: var(--font-titre); font-weight: 600; line-height: 1.15; color: var(--violet-deep); }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: .6rem; }
h3 { font-size: 1.35rem; color: var(--emerald-deep); }

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

/* petite ornementation : un trait dégradé sous certains titres */
.trait {
  width: 64px; height: 3px; border: none; margin: 1rem 0 1.6rem;
  background: linear-gradient(90deg, var(--violet), var(--emerald));
  border-radius: 2px;
}
.trait.centre { margin-left: auto; margin-right: auto; }

/* séparateur décoratif : un petit signe infini centré entre certains
   paragraphes (pour aérer la lecture) */
.infini {
  text-align: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--violet-soft);
  margin: 1.8rem 0;
  letter-spacing: .1em;
  user-select: none;
}

/* conteneur centré, réutilisable partout */
.contenu { max-width: var(--largeur-max); margin: 0 auto; padding: 0 1.5rem; }

/* --------------------------------------------------------------------------
   3. EN-TÊTE + NAVIGATION  (injecté par js/site.js)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.barre {
  max-width: var(--largeur-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.4rem; padding: .7rem 1.5rem;
}
nav { display: flex; align-items: center; gap: 1rem; }
.logo { display: flex; flex-direction: row; align-items: center; gap: .85rem; line-height: 1; margin-right: 1.5rem; }
.logo-img { height: 62px; width: auto; display: block; }
.logo b { font-family: var(--font-titre); font-size: 1.35rem; color: var(--violet-deep); font-weight: 600; letter-spacing: .5px; white-space: nowrap; }
.logo span { font-size: .72rem; color: var(--emerald-deep); letter-spacing: 2px; text-transform: uppercase; margin-top: 3px; }

nav ul { list-style: none; display: flex; align-items: center; gap: .3rem; }
nav > ul > li { position: relative; }
nav a, nav .groupe-titre {
  display: block; padding: .5rem .55rem; border-radius: 8px;
  font-size: .88rem; color: var(--ink); cursor: pointer; white-space: nowrap;
  background: none; border: none; font-family: inherit;
}
nav a:hover, nav .groupe-titre:hover { background: var(--violet-wash); color: var(--violet-deep); }
nav a.actif { color: var(--emerald-deep); font-weight: 700; }

/* sous-menus déroulants */
.sous-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--rayon);
  box-shadow: var(--ombre); padding: .4rem; display: none;
}
nav li.ouvert .sous-menu { display: block; }
.sous-menu a { padding: .55rem .7rem; border-radius: 8px; font-size: .9rem; }

/* sélecteur de langue (menu déroulant) */
.langues { position: relative; }
.langue-btn { background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: .4rem .7rem; font-family: inherit; font-size: .85rem; font-weight: 700;
  color: var(--violet-deep); cursor: pointer; }
.langue-btn:hover { background: var(--violet-wash); }
.langue-menu { position: absolute; top: 100%; right: 0; margin-top: .35rem; min-width: 70px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--ombre); padding: .3rem; display: none; }
.langues.ouvert .langue-menu { display: block; }
.langue-menu a { display: block; padding: .4rem .6rem; border-radius: 6px; font-size: .85rem; }
.langue-menu a.actif { color: var(--emerald-deep); font-weight: 700; }
.langue-menu a:hover { background: var(--violet-wash); }

/* bouton menu mobile */
.burger { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.burger span { display: block; width: 26px; height: 2px; background: var(--violet-deep); margin: 5px 0; transition: var(--transition); }

/* --------------------------------------------------------------------------
   4. SECTIONS / BLOCS DE CONTENU
   -------------------------------------------------------------------------- */
main { display: block; }
section { padding: 3.5rem 0; }
section.alt { background: rgba(255,255,255,0.55); }

/* Bandeau d'accueil (hero) */
.hero { text-align: center; padding: 5rem 1.5rem 4rem; }
.hero .surtitre { color: var(--emerald-deep); letter-spacing: 3px; text-transform: uppercase; font-size: .8rem; font-weight: 700; }
.hero h1 { margin: 1rem 0; }
.hero p.intro { max-width: 720px; margin: 0 auto 1rem; color: var(--muted); font-size: 1.12rem; }

/* mise en page deux colonnes (texte + image) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.duo.inverse .duo-img { order: -1; }
.duo-img img { border-radius: var(--rayon); box-shadow: var(--ombre); }

/* grille de cartes (services, formations) */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.carte {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--rayon);
  padding: 1.8rem; box-shadow: 0 10px 30px -24px rgba(47,122,95,.6);
  transition: transform var(--transition), box-shadow var(--transition);
}
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.carte h3 { margin-bottom: .5rem; }
.carte p { color: var(--muted); font-size: .96rem; }
.carte .lien-plus { font-weight: 700; font-size: .9rem; }

/* liste à puces personnalisées */
.liste-bienfaits { list-style: none; display: grid; gap: .6rem; }
.liste-bienfaits li { padding-left: 1.6rem; position: relative; }
.liste-bienfaits li::before {
  content: "✦"; position: absolute; left: 0; color: var(--emerald);
}

/* idéogramme japonais décoratif (Reiki) */
.kanji { font-size: 3.5rem; text-align: center; color: var(--violet-soft); line-height: 1.2; }

/* encadré citation / mise en avant */
.encadre {
  background: var(--violet-wash); border-left: 4px solid var(--violet);
  padding: 1.5rem 1.8rem; border-radius: 0 var(--rayon) var(--rayon) 0; margin: 1.5rem 0;
}

/* tableau des tarifs */
.tarifs-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.tarifs-table th { background: var(--violet); color: #fff; text-align: left; padding: 1rem 1.2rem; font-family: var(--font-titre); font-size: 1.2rem; font-weight: 600; }
.tarifs-table td { padding: .85rem 1.2rem; border-top: 1px solid var(--line); }
.tarifs-table td:last-child { text-align: right; font-weight: 700; color: var(--emerald-deep); white-space: nowrap; }
.tarifs-table tr:nth-child(even) td { background: var(--emerald-wash); }

/* boutons */
.btn {
  display: inline-block; padding: .8rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; transition: var(--transition);
}
.btn-violet { background: var(--violet); color: #fff; }
.btn-violet:hover { background: var(--violet-deep); color: #fff; }
.btn-vert { background: var(--emerald); color: #fff; }
.btn-vert:hover { background: var(--emerald-deep); color: #fff; }
.cta { text-align: center; }

/* bloc contact */
.coord { display: grid; gap: .4rem; }
.coord .etiquette { color: var(--emerald-deep); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 1rem; }

/* --------------------------------------------------------------------------
   5. PIED DE PAGE  (injecté par js/site.js)
   -------------------------------------------------------------------------- */
.site-footer { background: var(--violet-deep); color: #e9e2f5; margin-top: 3rem; padding: 1.9rem 1.5rem 1.1rem; }
.site-footer .contenu { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.6rem; }
.site-footer h4 { font-family: var(--font-titre); color: #fff; font-size: 1.18rem; margin-bottom: .35rem; font-weight: 600; }
.site-footer p { margin-bottom: 0; font-size: .92rem; line-height: 1.5; }
.site-footer a { color: var(--emerald-soft); }
.site-footer a:hover { color: #fff; }
.site-footer .bas { grid-column: 1/-1; border-top: 1px solid rgba(255,255,255,.15); padding-top: .9rem; margin-top: .7rem; font-size: .8rem; color: #c9bfe0; text-align: center; }

/* --------------------------------------------------------------------------
   6. RESPONSIVE — adaptation mobile
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .duo.inverse .duo-img { order: 0; }

  .burger { display: block; }
  nav { position: fixed; inset: 80px 0 auto 0; background: var(--white);
        border-bottom: 1px solid var(--line); box-shadow: var(--ombre);
        max-height: 0; overflow: hidden; transition: max-height var(--transition);
        flex-direction: column; align-items: stretch; gap: 0; }
  nav.ouvert { max-height: 85vh; overflow-y: auto; }
  nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1rem; gap: 0; }
  .sous-menu { position: static; display: block; box-shadow: none; border: none;
               padding-left: 1rem; min-width: 0; }
  nav li.ouvert .sous-menu { display: block; }
  .langues { padding: .5rem 1.5rem 1rem; }
  .langue-btn { display: none; }
  .langue-menu { position: static; display: flex; gap: .5rem; box-shadow: none;
                 border: none; padding: 0; min-width: 0; margin: 0; }
}

/* animation douce d'apparition au chargement */
@keyframes monter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero h1, .hero p, .hero .surtitre, .hero .cta { animation: monter .7s ease both; }
.hero .surtitre { animation-delay: .05s; }
.hero h1 { animation-delay: .15s; }
.hero p.intro { animation-delay: .28s; }
.hero .cta { animation-delay: .4s; }

/* --------------------------------------------------------------------------
   7. AMÉLIORATIONS v2 — vraies images
   -------------------------------------------------------------------------- */
/* cadrage homogène des images en colonne (les photos ont des formats variés) */
.duo-img img { width: 100%; height: 360px; object-fit: cover; object-position: center; }

/* bandeau d'accueil avec photo de fond */
.hero-photo {
  position: relative; color: #fff; text-align: center;
  padding: 6.5rem 1.5rem 5.5rem; overflow: hidden;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(70,46,128,.66), rgba(28,112,90,.66)),
              var(--hero-img) center/cover no-repeat;
  z-index: -1;
}

/* en-tête de page : bandeau en dégradé, arrondi et compact (forme "bouton") */
.hero-degrade {
  position: relative; color: #fff; text-align: center; overflow: hidden;
  background: linear-gradient(135deg, #4a2f86 0%, #3a5a78 50%, #1f7a5d 100%);
  max-width: 980px; margin: 1.8rem auto 0;
  border-radius: 44px; padding: 2.3rem 2rem 2.2rem;
}
.hero-degrade .intro { max-width: 660px; margin-left: auto; margin-right: auto; }
.hero-degrade .kanji { color: rgba(255,255,255,.85); }

/* texte clair partagé par les deux en-têtes colorés */
.hero-photo h1, .hero-degrade h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.30); }
.hero-photo .surtitre, .hero-degrade .surtitre { color: #e7f6ee; }
.hero-photo p.intro, .hero-degrade p.intro { color: #f3eefb; }
.hero-photo .marque, .hero-degrade .marque { color: #fff; }

/* la marque "Pierre Bastin" au-dessus des activités, dans le dégradé */
.marque {
  font-family: var(--font-titre); font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1;
  color: var(--violet-deep); margin-bottom: .5rem;
}

/* titre de groupe du menu actif */
.actif-groupe > .groupe-titre { color: var(--emerald-deep); font-weight: 700; }

/* petite bande photo pleine largeur (séparateur visuel) */
.bande-photo { height: 280px; background-size: cover; background-position: center; }

/* image latérale arrondie dans une section simple */
.img-laterale { border-radius: var(--rayon); box-shadow: var(--ombre); width:100%; height: 320px; object-fit: cover; }

/* --------------------------------------------------------------------------
   8. CALENDRIER (page Agenda)
   -------------------------------------------------------------------------- */
.calendrier { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.cal-bloc {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--rayon);
  padding: 1.5rem 1.6rem; box-shadow: 0 10px 30px -24px rgba(91,74,138,.6);
  scroll-margin-top: 96px;   /* pour que l'ancre ne passe pas sous l'en-tête fixe */
}
.cal-bloc h3 { color: var(--violet-deep); margin-bottom: .3rem; }
.cal-note { color: var(--muted); font-size: .9rem; margin: .4rem 0; }
.cal-dates { list-style: none; display: grid; gap: .35rem; margin: .6rem 0; }
.cal-dates li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .45rem .2rem; border-bottom: 1px dashed var(--line);
}
.cal-dates li span { color: var(--ink); }
.cal-dates li b { color: var(--emerald-deep); font-size: .85rem; white-space: nowrap; }

/* lien ciblé : petit surlignage quand on arrive sur un bloc via une ancre */
.cal-bloc:target { border-color: var(--violet); box-shadow: var(--ombre); }

/* --------------------------------------------------------------------------
   FILIGRANE — Fleur de Vie en fond décoratif (toutes les pages)
   -------------------------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  top: 50%; left: 50%;
  width: 110vmax; height: 110vmax;
  transform: translate(-50%, -50%);
  background: url("../img/fleur-de-vie.svg") center / contain no-repeat;
  pointer-events: none;
  z-index: -1;
}
