/*
Theme Name: Létizis
Theme URI: https://letizis.fr
Author: Xavier Bestion
Author URI: https://letizis.fr
Description: Thème WordPress moderne et apaisant pour Létizis, cabinet de magnétisme et de soins énergétiques à Narbonne. Design épuré à bords arrondis (style « fenêtres Ubuntu »), palette mauve/beige conservée. Compatible WordPress dernière version, sans réservation ni connexion. Images, textes et logo entièrement modifiables.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: letizis
Tags: custom-logo, custom-menu, featured-images, translation-ready, wellness, rounded, one-column, two-columns
*/

/* =========================================================================
   LÉTIZIS — Feuille de style principale
   Sommaire :
   1.  Variables (palette, rayons, ombres, typo)
   2.  Réglages de base / reset léger
   3.  Typographie
   4.  Boutons & liens d'action
   5.  En-tête (header + navigation « pilule »)
   6.  Sections & mise en page
   7.  Hero (accueil)
   8.  Cartes de soins
   9.  Citations / bandeaux
   10. FAQ (accordéon)
   11. Contact (coordonnées + formulaire)
   12. Pages génériques & contenu éditeur
   13. Newsletter
   14. Pied de page
   15. Menu mobile
   16. Utilitaires & responsive
   ========================================================================= */

/* 1. VARIABLES ------------------------------------------------------------ */
:root{
  /* Palette reprise du site actuel */
  --mauve:        #79587B;   /* couleur signature (logo, titres, boutons) */
  --mauve-dark:   #5d425f;
  --mauve-soft:   #9b7a9d;
  --mauve-wash:   #efe8ef;   /* fond très clair teinté mauve */
  --beige:        #d5cac4;   /* fond de section chaleureux */
  --beige-soft:   #ede6e1;
  --sable:        #f7f2ee;   /* fond de page, blanc cassé chaud */
  --taupe:        #bbb8ac;
  --olive:        #5a5a52;
  --ink:          #292626;   /* texte principal */
  --muted:        #7a7370;   /* texte secondaire */
  --white:        #ffffff;
  --line:         rgba(41,38,38,.10);

  /* Rayons — l'esprit « fenêtres Ubuntu » : généreusement arrondi */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Ombres douces */
  --shadow-sm: 0 2px 10px rgba(41,38,38,.06);
  --shadow-md: 0 10px 30px rgba(41,38,38,.10);
  --shadow-lg: 0 24px 60px rgba(93,66,95,.16);

  /* Typographie */
  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-title: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-brand: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --wrap: 1160px;
  --gap: clamp(1.5rem, 4vw, 3.5rem);
}

/* 2. BASE ----------------------------------------------------------------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--font-body);
  font-size:1.0625rem;
  line-height:1.7;
  color:var(--ink);
  background:var(--sable);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--mauve); text-decoration:none; transition:color .2s ease, opacity .2s ease; }
a:hover{ color:var(--mauve-dark); }
::selection{ background:var(--mauve); color:#fff; }

/* Focus visible accessible */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible{
  outline:3px solid var(--mauve-soft);
  outline-offset:2px;
  border-radius:var(--r-xs);
}

/* 3. TYPOGRAPHIE ---------------------------------------------------------- */
h1,h2,h3,h4{
  font-family:var(--font-title);
  color:var(--ink);
  line-height:1.15;
  font-weight:700;
  margin:0 0 .6em;
  letter-spacing:-.01em;
}
h1{ font-size:clamp(2rem, 5vw, 3.2rem); }
h2{ font-size:clamp(1.6rem, 3.5vw, 2.4rem); }
h3{ font-size:clamp(1.2rem, 2.4vw, 1.55rem); }
p{ margin:0 0 1.1em; }
.brand-script{ font-family:var(--font-brand); font-style:italic; font-weight:600; color:var(--mauve); }
.eyebrow{
  display:inline-block;
  font-size:.78rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--mauve);
  font-weight:700;
  margin-bottom:.9rem;
}
.lead{ font-size:1.2rem; color:var(--muted); }

/* 4. BOUTONS -------------------------------------------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.55em;
  font-family:var(--font-body);
  font-weight:700;
  font-size:1rem;
  line-height:1;
  padding:.95em 1.6em;
  border-radius:var(--r-pill);
  border:2px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-align:center;
}
.btn svg{ width:1.05em; height:1.05em; }
.btn-primary{ background:var(--mauve); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--mauve-dark); color:#fff; transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-ghost{ background:transparent; color:var(--mauve); border-color:var(--mauve); }
.btn-ghost:hover{ background:var(--mauve); color:#fff; transform:translateY(-2px); }
.btn-light{ background:#fff; color:var(--mauve); box-shadow:var(--shadow-sm); }
.btn-light:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); color:var(--mauve-dark); }

.arrow-link{
  display:inline-flex; align-items:center; gap:.5em;
  font-weight:700; color:var(--mauve);
}
.arrow-link svg{ transition:transform .2s ease; }
.arrow-link:hover svg{ transform:translateX(4px); }

/* 5. HEADER --------------------------------------------------------------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(247,242,238,.82);
  backdrop-filter:saturate(140%) blur(12px);
  -webkit-backdrop-filter:saturate(140%) blur(12px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  max-width:100%; margin:0 auto;
  padding:.8rem clamp(1.2rem,4vw,3rem);
  display:flex; align-items:center; justify-content:space-between; gap:1.5rem;
}
.site-branding{ display:flex; align-items:center; gap:.7rem; flex-shrink:0; }
.site-branding img{ max-height:66px; width:auto; }
.brand-text{ font-family:var(--font-brand); font-style:italic; font-size:1.9rem; font-weight:600; color:var(--mauve); line-height:1; }
.brand-tag{ display:block; font-family:var(--font-body); font-style:normal; font-size:.62rem; letter-spacing:.2em; text-transform:uppercase; color:var(--olive); font-weight:700; }

/* Navigation « pilule » arrondie */
.main-nav ul{ list-style:none; display:flex; align-items:center; gap:.2rem; margin:0; padding:.35rem; background:#fff; border-radius:var(--r-pill); box-shadow:var(--shadow-sm); }
.main-nav a{ display:block; padding:.55em 1.05em; border-radius:var(--r-pill); color:var(--ink); font-weight:600; font-size:.98rem; transition:background .2s ease, color .2s ease; }
.main-nav a:hover{ background:var(--mauve-wash); color:var(--mauve); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a{ background:var(--mauve); color:#fff; }
.header-cta{ flex-shrink:0; }

/* 6. SECTIONS ------------------------------------------------------------- */
.wrap{ max-width:var(--wrap); margin:0 auto; padding-left:clamp(1rem,4vw,2rem); padding-right:clamp(1rem,4vw,2rem); }
.section{ padding:clamp(3.5rem,8vw,6rem) 0; }
.section--beige{ background:var(--beige-soft); }
.section--wash{ background:var(--mauve-wash); }
.section-head{ text-align:center; max-width:720px; margin:0 auto clamp(2rem,5vw,3.5rem); }
.section-head.left{ text-align:left; margin-left:0; }

/* 7. HERO ----------------------------------------------------------------- */
.hero{
  position:relative;
  min-height:min(78vh,720px);
  display:flex; align-items:center;
  color:var(--ink);
  overflow:hidden;
}
.hero__bg{ position:absolute; inset:0; z-index:0; background-size:cover; background-position:center; }
.hero__bg::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(247,242,238,.96) 0%, rgba(247,242,238,.78) 38%, rgba(247,242,238,.12) 68%, rgba(247,242,238,0) 100%);
}
.hero__inner{ position:relative; z-index:1; max-width:var(--wrap); margin:0 auto; padding:clamp(2rem,6vw,4rem) clamp(1rem,4vw,2rem); width:100%; }
.hero__card{ max-width:600px; }
.hero h1{ font-weight:700; }
.hero h1 .brand-script{ font-size:1.05em; }
.hero p{ font-size:1.2rem; color:#4b4444; max-width:34ch; }
.hero__actions{ display:flex; flex-wrap:wrap; gap:.9rem; margin-top:1.8rem; }

/* 8. CARTES DE SOINS ------------------------------------------------------ */
.cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:clamp(1.4rem,3vw,2.2rem); }
.card{
  background:#fff; border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--shadow-sm); border:1px solid var(--line);
  display:flex; flex-direction:column;
  transition:transform .22s ease, box-shadow .25s ease;
}
.card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.card__media{ aspect-ratio:4/3; overflow:hidden; background:var(--beige); }
.card__media img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.card:hover .card__media img{ transform:scale(1.05); }
.card__body{ padding:1.5rem 1.6rem 1.7rem; display:flex; flex-direction:column; gap:.6rem; flex:1; }
.card__body h3{ margin:0; }
.card__body p{ margin:0; color:var(--muted); flex:1; }
.card__body .arrow-link{ margin-top:.4rem; }

/* Cartes « soin » alternées (image + texte côte à côte) */
.soin-row{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(1.5rem,4vw,3.5rem); align-items:center; }
.soin-row + .soin-row{ margin-top:clamp(2.5rem,5vw,4rem); }
.soin-row:nth-child(even) .soin-row__media{ order:2; }
.soin-row__media img{ width:100%; border-radius:var(--r-xl); box-shadow:var(--shadow-md); aspect-ratio:1/1; object-fit:cover; }

/* 9. CITATION ------------------------------------------------------------- */
.quote-band{ text-align:center; }
.quote-band blockquote{
  margin:0 auto; max-width:820px;
  font-family:var(--font-brand); font-style:italic;
  font-size:clamp(1.4rem,3vw,2rem); line-height:1.4; color:var(--mauve);
}
.quote-band cite{ display:block; margin-top:1rem; font-family:var(--font-body); font-style:normal; font-weight:700; font-size:.95rem; letter-spacing:.12em; text-transform:uppercase; color:var(--olive); }

/* Bloc « à propos » teaser */
.about-teaser{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(1.5rem,4vw,3.5rem); align-items:center; }
.about-teaser__media img{ border-radius:var(--r-xl); box-shadow:var(--shadow-md); width:100%; aspect-ratio:4/5; object-fit:cover; }

/* 10. FAQ ----------------------------------------------------------------- */
.faq{ max-width:820px; margin:0 auto; display:flex; flex-direction:column; gap:1rem; }
.faq details{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-md);
  box-shadow:var(--shadow-sm); overflow:hidden; transition:box-shadow .2s ease;
}
.faq details[open]{ box-shadow:var(--shadow-md); }
.faq summary{
  list-style:none; cursor:pointer;
  padding:1.15rem 1.5rem; font-weight:700; font-size:1.08rem; color:var(--ink);
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{
  content:"+"; font-size:1.6rem; font-weight:400; color:var(--mauve);
  transition:transform .25s ease; line-height:1; flex-shrink:0;
}
.faq details[open] summary::after{ transform:rotate(45deg); }
.faq__answer{ padding:0 1.5rem 1.35rem; color:var(--muted); }
.faq__answer p{ margin:0; }

/* 11. CONTACT ------------------------------------------------------------- */
.contact-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:clamp(1.5rem,4vw,3rem); align-items:start; }
.contact-info{ background:#fff; border-radius:var(--r-lg); padding:2rem; box-shadow:var(--shadow-sm); border:1px solid var(--line); }
.contact-info ul{ list-style:none; margin:1.2rem 0 0; padding:0; display:flex; flex-direction:column; gap:1.1rem; }
.contact-info li{ display:flex; gap:.9rem; align-items:flex-start; }
.contact-info .ico{ width:2.4rem; height:2.4rem; flex-shrink:0; border-radius:var(--r-sm); background:var(--mauve-wash); color:var(--mauve); display:grid; place-items:center; }
.contact-info .ico svg{ width:1.15rem; height:1.15rem; }
.contact-info .lbl{ font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; color:var(--olive); font-weight:700; }
.contact-info a{ font-weight:600; }

/* Formulaire */
.form-card{ background:#fff; border-radius:var(--r-lg); padding:clamp(1.6rem,4vw,2.4rem); box-shadow:var(--shadow-sm); border:1px solid var(--line); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.field{ margin-bottom:1.1rem; }
.field label{ display:block; font-weight:700; font-size:.9rem; margin-bottom:.4rem; color:var(--ink); }
.field .req{ color:var(--mauve); }
.field input, .field textarea{
  width:100%; font-family:inherit; font-size:1rem; color:var(--ink);
  padding:.85em 1em; border:1.5px solid var(--line); border-radius:var(--r-sm);
  background:var(--sable); transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--mauve-soft); background:#fff; box-shadow:0 0 0 3px var(--mauve-wash); }
.field textarea{ min-height:140px; resize:vertical; }
.form-note{ font-size:.85rem; color:var(--muted); }
.hp-field{ position:absolute; left:-9999px; top:-9999px; }
.form-feedback{ border-radius:var(--r-sm); padding:1rem 1.2rem; margin-bottom:1.2rem; font-weight:600; }
.form-feedback.ok{ background:#e7f4ec; color:#1f7a45; }
.form-feedback.err{ background:#fbeaea; color:#b23b3b; }

/* 12. PAGES GÉNÉRIQUES / CONTENU ÉDITEUR ---------------------------------- */
.page-hero{ background:var(--mauve-wash); padding:clamp(3rem,7vw,5rem) 0 clamp(2.5rem,5vw,3.5rem); text-align:center; }
.page-hero .eyebrow{ margin-bottom:.6rem; }
.page-hero h1{ margin:0; }
.entry-content{ max-width:800px; margin:0 auto; }
.entry-content > *{ margin-bottom:1.15em; }
.entry-content h2{ margin-top:1.6em; }
.entry-content img{ border-radius:var(--r-lg); box-shadow:var(--shadow-sm); margin:1.6em auto; }
.entry-content ul, .entry-content ol{ padding-left:1.3em; }
.entry-content li{ margin-bottom:.5em; }
.entry-content blockquote{
  border-left:4px solid var(--mauve); background:#fff; margin:1.6em 0;
  padding:1.2rem 1.5rem; border-radius:var(--r-md); box-shadow:var(--shadow-sm);
  font-family:var(--font-brand); font-style:italic; font-size:1.25rem; color:var(--mauve);
}
.entry-content a{ text-decoration:underline; text-underline-offset:3px; }

.info-callout{
  background:var(--beige-soft); border-radius:var(--r-lg); padding:1.6rem 1.8rem;
  border:1px solid var(--line); display:flex; gap:1rem; align-items:flex-start;
}
.info-callout .ico{ color:var(--mauve); flex-shrink:0; }

/* 13. NEWSLETTER ---------------------------------------------------------- */
.newsletter{ background:var(--mauve); color:#fff; text-align:center; }
.newsletter h2{ color:#fff; }
.newsletter p{ color:rgba(255,255,255,.86); max-width:560px; margin-inline:auto; }
.newsletter .form-inline{ display:flex; flex-wrap:wrap; gap:.7rem; justify-content:center; max-width:560px; margin:1.6rem auto 0; }
.newsletter input{ flex:1 1 260px; padding:.9em 1.2em; border-radius:var(--r-pill); border:none; font-family:inherit; font-size:1rem; }
.newsletter input:focus{ outline:none; box-shadow:0 0 0 3px rgba(255,255,255,.5); }

/* 14. PIED DE PAGE -------------------------------------------------------- */
.site-footer{ background:var(--ink); color:#e9e4e1; padding:clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:2.5rem; }
.site-footer h4{ color:#fff; font-size:1rem; letter-spacing:.06em; margin-bottom:1rem; }
.site-footer a{ color:#cdc6c2; }
.site-footer a:hover{ color:#fff; }
.footer-brand .brand-text{ color:#fff; }
.footer-brand p{ color:#b3aca8; max-width:34ch; }
.footer-menu ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.6rem; }
.social-row{ display:flex; gap:.7rem; margin-top:1rem; }
.social-row a{ width:2.6rem; height:2.6rem; border-radius:var(--r-sm); background:rgba(255,255,255,.08); display:grid; place-items:center; transition:background .2s ease, transform .2s ease; }
.social-row a:hover{ background:var(--mauve); transform:translateY(-2px); }
.social-row svg{ width:1.2rem; height:1.2rem; }
.footer-bottom{ margin-top:2.5rem; padding-top:1.5rem; border-top:1px solid rgba(255,255,255,.12); display:flex; flex-wrap:wrap; gap:.6rem 1.5rem; justify-content:space-between; font-size:.85rem; color:#a49d99; }

/* 15. MENU MOBILE --------------------------------------------------------- */
.nav-toggle{ display:none; background:#fff; border:none; width:3rem; height:3rem; border-radius:var(--r-sm); box-shadow:var(--shadow-sm); cursor:pointer; align-items:center; justify-content:center; }
.nav-toggle svg{ width:1.5rem; height:1.5rem; color:var(--ink); }

/* 16. UTILITAIRES & RESPONSIVE ------------------------------------------- */
.text-center{ text-align:center; }
.mt-1{ margin-top:1rem; } .mt-2{ margin-top:2rem; }
.screen-reader-text{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.skip-link{ position:absolute; left:-999px; top:0; background:#fff; color:var(--mauve); padding:.7em 1.2em; border-radius:var(--r-sm); z-index:1000; }
.skip-link:focus{ left:1rem; top:1rem; }

@media (max-width:900px){
  .contact-grid, .about-teaser, .soin-row{ grid-template-columns:1fr; }
  .soin-row:nth-child(even) .soin-row__media{ order:0; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1 / -1; }
}
@media (max-width:820px){
  .main-nav, .header-cta{ display:none; }
  .nav-toggle{ display:inline-flex; }
  .main-nav.is-open{
    display:block; position:absolute; top:100%; left:0; right:0;
    background:var(--sable); border-bottom:1px solid var(--line); padding:1rem;
  }
  .main-nav.is-open ul{ flex-direction:column; align-items:stretch; border-radius:var(--r-lg); padding:.6rem; box-shadow:var(--shadow-md); }
  .main-nav.is-open a{ padding:.8em 1em; }
  .form-row{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .footer-grid{ grid-template-columns:1fr; }
  .hero p{ max-width:none; }
}

/* Préférence utilisateur : réduire les animations */
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
