/* =========================
   1. FONTS
   ========================= */
@font-face {
  font-family: 'Inter';
  src: url('fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/InterVariable-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* =========================
   2. BASE GLOBALE
   color palette:
   rouge  : #aa7f7d
   bleu   : #b2bdd4  (header)
   beige1 : #e2dacb  (clair)
   beige2 : #bfb4a1  (foncé)
   ========================= */

:root {
    --logo-size: 200px;
    --logo-ratio: 0.85;
    --logo-width: calc(var(--logo-size) * var(--logo-ratio));
    --overlap: 0.33;
    --header-color: #b2bdd4;
    /* --header-color: #aa7f7d; */
    --header-gap: 5rem;
    --circle-size: clamp(300px, 60vw, 450px);

}

html {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}

body {
    margin: 0;
    line-height: 1.6;

}

/* =========================
   3. HEADER & NAVIGATION

   Structure :
   .site-header  (sticky, pas de background propre)
   ├── .header-band     (bande colorée, hauteur = --logo-size)
   │   ├── .logo        (absolute, z:1001, chevauche band + overlap)
   │   └── .header-content  (flex column, space-between)
   │       ├── .header-titles  (h1 + h2 en haut)
   │       └── nav.main-nav    (aligné en bas de .header-band)
   └── .header-overlap  (transparent, logo y déborde visuellement)
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Bande colorée : hauteur exacte du logo */
.header-band {
  background-color: var(--header-color);
  box-shadow: 0 2px 5px #7f8eae9a;
  height: var(--logo-size);
  position: relative;
}

/* Zone transparente : débordement visuel du logo sous la bande */
.header-overlap {
  height: calc(var(--logo-size) * var(--overlap));
  margin-bottom: 15px;  /* pour éviter un petit "saut" visuel lors du scroll */
}

/* Logo : chevauche les deux zones */
.logo {
  position: absolute;
  top: 0;
  left: 0;
  height: calc(var(--logo-size) * (1 + var(--overlap)));
  width: auto;
  z-index: 1001;
  filter: drop-shadow(0 2px 5px #7f8eae9a);
}

/* Contenu texte : occupe toute la hauteur de .header-band
   padding-left = largeur logo + gap
   space-between pousse h.titles en haut et m.nav en bas */
.header-content {
  height: var(--logo-size);         /* hauteur exacte = hauteur de .header-band */
  box-sizing: border-box;           /* padding inclus dans la hauteur, pas en plus */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: calc(var(--logo-width) + var(--header-gap));
  padding-right: 2.5rem;
  padding-top: calc(var(--logo-size) * 0.32);
  padding-bottom: calc(var(--logo-size) * 0.08);
}

.header-titles {
  display: flex;
  flex-direction: column;
  gap: clamp(0.3rem, 0.5vh, 0.8rem);
  /* minimum 0.3rem, idéalement 0.5% hauteur viewport, maximum 0.8rem */
}

.header-titles h1 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 500;
  color: #202020;
}

.header-titles h2 {
  font-size: 1.1rem;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  font-weight: 300;
  color: #202020;
}

/* Nav alignée en bas via space-between sur .header-content */
.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 3rem;
  /*padding-bottom: 1.5rem;  marge esthétique au bord inférieur */
}

.main-nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: #202020;
  font-weight: 200;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  text-decoration: underline;
}

.main-nav a.active {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #6d5150;}

/* =========================
   4. HERO (section accueil)
   ========================= */
.band-hero {
  scroll-margin-top: calc(var(--logo-size) * (1 + var(--overlap)));
  min-height: calc(100vh - var(--logo-size) * (1 + var(--overlap)));
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #202020;
  background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('Images/heroband-opt4.jpg');
  background-size: cover;
  background-position: center;
  padding: 4rem 10%;
}

.band-hero .band-text {
  max-width: 800px;               /* largeur raisonnable pour une citation */
  text-align: center;
}

.band-hero h1,
.band-hero h2,
.band-hero h3 {
  color: #ffffff;
}

.band-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

.band-hero h3 {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 300;
  line-height: 1.2;
  text-align: right;
}

/* =========================
   5. BANDES SPOTLIGHT
  Options pas forcéement appliquées dans le HTML, mais disponibles pour chaque section .band
   Système de classes cumulatives :
   .band           → base flex, hauteur minimale, scroll-margin
   .band-light     → fond beige clair (#e2dacb)
   .band-dark      → fond beige foncé (#bfb4a1)
   .band-reverse   → image à gauche (flex-direction: row-reverse)
   .band-full      → texte seul centré sur max-width:800px

       ========================= */

.band {
    scroll-margin-top: calc(var(--logo-size) * (1 + var(--overlap)));
    display: flex;
    align-items: stretch;
    min-height: 300px;
    /* padding: 1vw; */
}

/* use square-layout class on .band/.band-reverse to activate square helpers */
.band.square-layout,
.band-reverse.square-layout {
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.band-light { background-color: #e2dacb; }
.band-dark  { background-color: #bfb4a1; }

.band-reverse { flex-direction: row-reverse; }

.band-text {
  flex: 1;
  padding: 1rem 5%;
  align-self: center;
}

.band-text-cols {
  column-count: 2;
  column-gap: 3rem;
  text-align: justify;
}

.band-image {
  position: relative;
  flex: 0 0 min(42vw, 520px);
  width: min(42vw, 520px);
  overflow: hidden;
 /* start clipping section variables */
  --clip-base: 0rem;
  --clip-tl-x: 0;
  --clip-tr-x: 0;
  --clip-br-x: 0;
  --clip-bl-x: 0;
  --clip-tl-y: 0;
  --clip-tr-y: 0;
  --clip-br-y: 0;
  --clip-bl-y: 0;
  border-top-left-radius: var(--clip-tl-x) / var(--clip-tl-y);
  border-top-right-radius: var(--clip-tr-x) / var(--clip-tr-y);
  border-bottom-right-radius: var(--clip-br-x) / var(--clip-br-y);
  border-bottom-left-radius: var(--clip-bl-x) / var(--clip-bl-y);
  clip-path: inset(0 round var(--clip-tl-x) var(--clip-tr-x) var(--clip-br-x) var(--clip-bl-x) / var(--clip-tl-y) var(--clip-tr-y) var(--clip-br-y) var(--clip-bl-y));
}

/* Reusable corner helpers for the image block itself.
   - Change --clip-base to scale the curve size.
   - Change the multiplier below to adjust the ellipse ratio.
*/
.band-image.clip-midline {
  --clip-base: 1.5rem;
  --clip-tl-x: var(--clip-base);
  --clip-bl-x: var(--clip-base);
  --clip-tl-y: calc(var(--clip-base) * 1.6);
  --clip-bl-y: calc(var(--clip-base) * 1.6);
}

.band-image.clip-corner-br {
  --clip-base: 10.75rem;
  --clip-br-x: var(--clip-base);
  --clip-br-y: calc(var(--clip-base) * 1.7);
}

.band-image.clip-corner-tl {
  --clip-base: 20.75rem;
  --clip-tl-x: var(--clip-base);
  --clip-tl-y: calc(var(--clip-base) * 1.7);
}
/* end clipping section */
.band-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =========================
   OPT-IN SQUARE LAYOUT HELPERS
   Apply `.square-text` and `.square-image` on .band/.band-reverse with
   `.square-layout` to get equal 50/50 columns + 1:1 square images.
   ========================= */

.band-text.square-text {
  flex: 0 0 50%;
  max-width: 50%;
  box-sizing: border-box;
  padding: 2rem 4%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

/* Text on left side (normal .band): align right towards midline */
.band:not(.band-reverse) .band-text.square-text {
  text-align: right;
  align-items: flex-end;
}

/* Text on right side (.band-reverse): align left towards midline (default) */
.band-reverse .band-text.square-text {
  text-align: left;
  align-items: flex-start;
}

.band-image.square-image {
  flex: 0 0 50%;
  width: 100%;
  max-height: clamp(300px, 50vw, 500px);
  aspect-ratio: 1 / 1;
  overflow: visible;
  position: relative;
}

.band-image.square-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.band-full .band-text {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 10%;
  display: block;
}

/* =========================
   BAND VARIANTS
   ========================= */

.band-circle {
  display: block;          /* ← réintégrer — annule le flex de .band */
  overflow: hidden;        /* contient le float */
  position: relative;
  box-shadow:
    inset 0  20px 45px -35px #0000009a,
    inset 0 -20px 45px -20px #0000009a;
  padding: 1rem 0%;        /* padding sur la section directement */
}

/* Le div texte : prend toute la largeur, padding pour respirer */
.band-circle-text {
  padding: 0.5rem ;
  /* PAS de overflow — sinon ça recrée un BFC et shape-outside est ignoré */
}
.band-circle .circle-float {
  width: var(--circle-size);
  height: var(--circle-size);
  
  clip-path: circle(50% at 0% 50%);    /* ← le pochoir circulaire */
  shape-outside: circle(50% at 0% 50%);
  overflow: hidden;                      /* ← coupe ce qui dépasse la boîte */
  position: relative;
  
  float: left;
  margin-right: 8vw;
}

.band-circle .circle-float img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(120%) translate(-50%, 0%);
  transform-origin: center center;
}

.band-circle .float-left img {
  transform: scale(120%) translate(-50%, 0%);
}

.band-circle .float-right img {
  transform: scale(120%) translate(50%, 0%);
}
/* .band-circle .float-left img {
  transform: scale(120%) translate(-50%, 0%);
} */
/* Desktop : mobile-serpentin caché */
.mobile-serpentin {
  display: none;
}

/* Desktop : band-circle-text-desktop visible */
.band-circle-text-desktop {
  display: block;
  flex: 1;
  padding: 1rem 5%;
  margin-right: 0.5rem;
}

@media (min-width: 1142px) {
  .band-circle-text-desktop {
    margin-right: clamp(0.5rem, calc((100vw - 1142px) * 1.2 + 0.5rem), calc(100vw * 0.3333));
  }
}

/* =========================
   6. TYPOGRAPHIE
   ========================= */

h1, h2, h3, p {
  margin: 0;
}

h1 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 500;
  color: #202020;
}

h2 {
  margin-bottom: 0.3rem;
  font-size: 1.5rem;
  font-weight: 300;
  color: #202020;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: #202020;
}

p {
  margin: 0.3rem 0 0.5rem 0;
}

/* Décoration de titre : petite barre verticale à gauche du texte */
/*.band-text h1::before,
.band-text h2::after {
  content: '';
  display: inline-block;
  width: 0.4rem;
  height: 1em;
  background-color: #b18484;
  margin-right: 0.6rem;
  vertical-align: middle;
  border-radius: 2px;
}
*/

/* =========================
   7. VARIATIONS TYPOGRAPHIQUES
   ========================= */

.block-small  { font-size: 0.9rem; }
.block-normal { font-size: 1rem; }
.block-large  { font-size: 1.2rem; }
.accent {
  font-weight: 400;
  color: #aa7f7d;
}

.liste-tirets {
     list-style-position: outside;
     padding-left: 1rem;
   }

/* =========================
   8. FOOTER
   ========================= */

.footer {
  font-size: 0.6rem;
  text-align: center;
  padding: 2rem;
  background-color: #aa7f7d;
  color: #202020;
}

.footer a {
  color: #202020;
}

/* =========================
   9. ALIGNEMENTS
   ========================= */

.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* =========================
   10. BOUTON DE RDV
   ========================= */
.btn-rdv {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: #aa7f7d;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-rdv:hover {
  background-color: #8493b1;
}

/* ⚠️ LIEN avec incohérence HTML #3 — .btn-rdv-header commenté dans le HTML
   Cette règle existe dans le CSS mais le bouton est commenté dans index.html.
   Les valeurs top/right sont codées en dur (4.5rem / 9rem) et devront être
   recalculées si le logo-size ou le padding-right de .header-content changent.
   À considérer : les passer en calc() basé sur --logo-size pour qu'elles s'adaptent
   automatiquement aux breakpoints, plutôt que de les redéfinir dans le @media.
*/
.btn-rdv-header {
  position: absolute;
  top: 4.5rem;
  right: 9rem;       /* aligne avec le padding-right de .header-content */
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
}

.btn-rdv-contact {
  position: absolute;
  top: 4.5rem;
  /* right: 9rem;       aligne avec le padding-right de .header-content */
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
}
/* =========================
   11. RESPONSIVE

   Breakpoints :
   900px  → tablette (logo réduit, typo ajustée)
   700px  → mobile   (logo dans le flux, header empilé)

*/
  
/* Desktop 
@media (min-width: 1700px) {

  .band-text {
    max-width: 1200px;
    padding: 1rem 10%;
    text-align: justify;
  }
  
  .band-text-cols {
    column-count: 2;
    column-gap: 3rem;
    text-align: justify;
  }

}*/

/* --- Tablette : 700px–900px --- */
@media (max-width: 930px) {
  :root {
    --logo-size: 140px;   /* logo réduit → tout le header se recalcule */
  }

  /* Typo proportionnelle au logo réduit */
  .header-titles h1 { font-size: 1.2rem; }
  .header-titles h2 { font-size: 0.75rem; }

  .main-nav {
    padding-top: 0.7rem;
    gap: 1rem;
    font-size: 0.3rem;
    /* ⚠️ NOTE : font-size: 0.3rem appliqué sur .main-nav n'affecte pas les <a> enfants
       car ceux-ci ont leur propre font-size: 0.85rem dans .main-nav a.
       Cette déclaration est donc sans effet visible. Probablement vestige d'un test.
       Si l'intention est de réduire la taille des liens nav en tablette,
       cibler .main-nav a { font-size: 0.7rem; } directement.
    */
  }

  .btn-rdv-header {
    top: 2.75rem;
    right: 4rem;       /* aligne avec le padding-right de .header-content */
  }
}

/* --- Mobile : < 700px --- */
@media (max-width: 700px) {
  :root {
    --logo-size: 125px;
  }

  /* Header redevient un bloc simple coloré */
  .site-header {
    background-color: var(--header-color);
    padding: 1rem;
    box-shadow: 0 2px 5px #7f8eae9a;
  }

  /* .header-band perd sa couleur propre (déjà sur .site-header) */
  .header-band {
    height: auto; 
    background-color: transparent;
    box-shadow: none;
    position: static;
  }

  /* Zone overlap masquée sur mobile */
  .header-overlap {
    display: none;
  }

  /* Logo repart dans le flux, centré */
  .logo {
    position: static;
    height: var(--logo-size);
    width: auto;
    display: block;
    margin: 0 auto 0.75rem auto;
  }

  /* Contenu centré, padding-left annulé */
  .header-content {
    padding: 0;
    align-items: center;
    text-align: center;
    gap: 1rem;
    justify-content: center;
  }

  .header-titles h1 { font-size: 1.4rem; }
  .header-titles h2 { font-size: 0.9rem; }

  .main-nav {
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 400;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }

  /* ⚠️ LIEN avec incohérence HTML #3 :
     .btn-rdv-header est masqué sur mobile via display:none.
     Si le bouton est un jour décommenté dans le HTML, il sera correctement caché ici.
     Pas de changement nécessaire dans ce bloc.
  */
  .btn-rdv-header {
    display: none;
  }

  /* Bandes : empilées verticalement */
  .band,
  .band-reverse {
    flex-direction: column;
    min-height: unset;
  }

  .band-image {
    width: 100%;
    min-height: 250px;
    min-height: 100vw;
    max-height: 100vw;
    aspect-ratio: 1 / 1;
  }

  .band-text {
    padding: 2rem 6%;
  }

  .band-full .band-text {
    padding: 2rem 6%;
  }

  .band-hero {
    padding: 3rem 6%;
    min-height: 60vh;
  }

  .band-text-cols {
    column-count: 1;
    column-gap: normal;
    text-align: left;
  }

  /* Disable square-layout on mobile */
  .band.square-layout,
  .band-reverse.square-layout {
    max-width: 100%;
    align-items: unset;
  }

  .band-text.square-text {
    flex: 1;
    max-width: 100%;
    padding: 2rem 6%;
    display: block;
    text-align: left;
    align-items: unset;
    justify-content: unset;
  }

  .band:not(.band-reverse) .band-text.square-text {
    text-align: left;
  }

  .band-reverse .band-text.square-text {
    text-align: left;
  }

  .band-image.square-image {
    flex: 1;
    max-width: 100%;
    max-height: none;
    width: 100%;
  }

  /* order of the columns in the presation */
  section#prestations.band-reverse {
    flex-direction: column;
  }

  .fleurs-bach {
    flex-direction: column;
  }

  .fleurs-bach .band-image {
    order: 1;
  }

  .fleurs-bach .band-text {
    order: 2;
  }
}


 @media (max-width: 600px) {
   
 
  /* Cacher l'image unique et le texte desktop */
  .circle-float-desktop,
  .band-circle-text-desktop {
    display: none;
  }

  /* Afficher le serpentin mobile */
  .mobile-serpentin {
    display: block;
    overflow: hidden;
    padding: 0;
  }

  .band-circle .circle-float {
    width: min(220px, 34vw);
    height: min(220px, 34vw);
    margin-bottom: 5vw;
    margin-right: 0;
  }

  .band-circle .float-left {
    float: left;
    clip-path: circle(50% at 0% 50%);
    shape-outside: circle(50% at 0% 50%);
    margin-right: 8vw;
    
  }

  .band-circle .float-right {
    float: right;
    clip-path: circle(50% at 100% 50%);
    shape-outside: circle(50% at 100% 50%);
    margin-left: 1vw;
    margin-right: 0;
  }

  .band-circle .float-left + .band-circle-text {
        padding-right: 8vw;
        padding-left: 8vw;
        text-align: justify;
    
    }

  .band-circle .float-right + .mobile-serpentine-text {
        padding-left: 8vw;
        padding-right: 8vw;
        text-align: justify;
    
    }

  .mobile-serpentine-text {
    padding-bottom: 0.5rem;
  }

  .mobile-serpentine-text h2,
  .band-circle-text h2 {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    font-weight: 350;
    line-height: 1.15;
    margin-bottom: 0.35rem;
  }

  .band-circle .float-right + .mobile-serpentine-text h2 {
    text-align: right;
  }
 
}

