/* =====================================================================
   Elioska — feuille de style principale
   Design : sobre, épuré, clair, intuitif.
   Palette : crème/blanc · encre teal profond · accent or ambré.
   Mobile-first. Contrastes conformes WCAG AA.
   ===================================================================== */

/* ----------  Variables  ---------- */
:root {
  --c-bg:        #ffffff;
  --c-bg-soft:   #f0ebe4;   /* crème chaud — sections alternées */
  --c-bg-deep:   #609bad;   /* teal profond — footer / bandes sombres */
  --c-ink:       #364d54;   /* titres */
  --c-body:      #4a5553;   /* texte courant */
  --c-link:      #1f5158;   /* liens (AA sur blanc) */
  --c-accent:    #99c1cd;   /* or ambré — boutons, filets, puces */
  --c-accent-dk: #749eab;   /* or foncé — survols */
  --c-teal:      #2d6068;   /* teal secondaire — surtitres */
  --c-line:      #e8e1d5;   /* bordures */
  --c-line-soft: #f0ebe1;

  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1120px;
  --gap:  clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 12px 34px rgba(22, 58, 62, .08);
  --shadow-sm: 0 4px 14px rgba(22, 58, 62, .06);
  --t: .35s cubic-bezier(.45, 0, .55, 1);
}

/* ----------  Reset léger  ---------- */
*, *::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: clamp(1rem, .95rem + .25vw, 1.075rem);
  line-height: 1.7;
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-underline-offset: 3px; transition: color var(--t); }
a:hover { color: var(--c-accent-dk); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--c-ink);
  line-height: 1.18;
  font-weight: 600;
  margin: 0 0 .6em;
  letter-spacing: .2px;
}
h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.4rem); }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
strong { color: var(--c-ink); }

.section h2.title {text-align:center;margin:0 auto;}
.h2-title { text-align: center; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 5vw, 2rem); }
/* ----------  Utilitaires  ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 5vw, 2rem); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 1000;
  background: var(--c-bg-deep); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 8px;
  transition: top var(--t);
}
.skip-link:focus { top: 0; color:#fff; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }

.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em; font-size: 1.0rem;
  color: var(--c-teal); margin-bottom: .9rem;
}
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--c-ink); line-height: 1.6; }
.text-center { text-align: center; }
.measure { max-width: 64ch; }
.measure-center { max-width: 64ch; margin-inline: auto; }

/* ----------  Boutons  ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.7rem; border-radius: 13px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: all var(--t); line-height: 1.2;
}
.btn-primary { background: var(--c-accent); color: #16383c; }
.btn-primary:hover { background: var(--c-bg-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--c-bg-deep); border-color: var(--c-bg-deep); }
.btn-ghost:hover { background: var(--c-bg-deep); color: #fff; }
.btn-light { background: #fff; color: var(--c-bg-deep); }
.btn-light:hover { background: var(--c-accent); color:#16383c; }

/* ----------  En-tête / navigation  ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; line-height: 1.1; margin-right: auto; }
.brand-logo { display: block; width: auto; max-width: none; height: 44px; flex: none; object-fit: contain; background: transparent; margin-bottom: 10px; }
.brand-tag  { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-teal); }
.brand:hover .brand-logo { opacity: .85; }

.site-nav ul { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .55rem .95rem; border-radius: 13px; text-decoration: none;
  color: var(--c-ink); font-weight: 500; transition: all var(--t);
}
.site-nav a:hover { background: var(--c-bg-deep); color:#fff;}
.site-nav a.active { color: #16383c; background: var(--c-accent); }

.menu-toggle { display: none; }

/* ----------  Sections  ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-soft { background: var(--c-bg-soft); }
.section-deep { color: #dfeae9; }
.section-deep h1, .section-deep h3 { color: #fff; }
.section-deep h2 {color: var(--c-ink);}
.section-deep .eyebrow { color: #e8c489; }
.section-head { max-width: 60ch; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.divider { width: 56px; height: 3px; background: var(--c-accent); border-radius: 2px; margin: 0 0 1.4rem; }
.section-head.center .divider { margin-inline: auto; }

/* ----------  Hero  ---------- */
.hero { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 460px at 78% -8%, rgba(192,136,59,.14), transparent 60%),
    linear-gradient(180deg, #fbf8f2 0%, #ffffff 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); align-items: center; }
.hero p.lead { color: var(--c-body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ----------  Grille de cartes (prestations / bienfaits)  ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

.card {
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem); box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { width: 56px; height: 56px; object-fit: contain; margin-bottom: 1rem; }
.card h3 { margin-bottom: .35rem; }
.card .card-sub { color: var(--c-teal); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .9rem; }

/* Listes d'infos pratiques */
.facts { list-style: none; padding: 0; margin: 1.2rem 0 0; border-top: 1px solid var(--c-line); }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--c-line-soft); }
.facts li span:first-child { color: var(--c-teal); font-weight: 600; }
.facts li span:last-child { text-align: right; }

/* Liste « bienfaits » à puces ornées */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.feature-list li { position: relative; padding-left: 2rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px;
  border: 2px solid var(--c-accent); border-radius: 50%;
}
.feature-list strong { display: block; color: var(--c-ink); }

/* ----------  Citation  ---------- */
.section.section-quote {margin:0;padding:20px 0 0 0;}
.quote { text-align: center; max-width: 48ch; margin-inline: auto; }
.quote blockquote {
  font-family: var(--font-head); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  line-height: 1.35; color: #609bad; margin: 0 0 1rem; font-style: italic;
}
.quote .quote-mark { color: #f3fcff; font-size: 2.6rem; line-height: 1; display: block; margin-bottom: .3rem; font-family: var(--font-head); }
.quote cite { color: var(--c-teal); font-style: normal; letter-spacing: .04em; }

/* ----------  Bande CTA  ---------- */
.cta-band { text-align: center; }
.cta-band .container { max-width: 60ch; }
.cta-band p { color: #556d75; }

/* ----------  Mise en page deux colonnes (contact / texte+média)  ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: var(--gap); align-items: start; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* Coordonnées en cartes */
.contact-cards { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.contact-cards li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-bg); }
.contact-cards img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.contact-cards a { text-decoration: none; font-weight: 600; }
.contact-cards .ct-label { display:block; font-size:.78rem; text-transform:uppercase; letter-spacing:.12em; color: var(--c-teal); }

/* =====================================================================
   Formulaire de contact (habillage du module « ContactMe »)
   ===================================================================== */
.contactMe { margin-top: 1.5rem; }
.contactMe .contact-form-section { display: grid; gap: 1.1rem; }
.contactMe .form-row { display: flex; flex-direction: column; gap: .4rem; }
.contactMe .form-row .title { font-weight: 600; color: var(--c-ink); font-size: .92rem; }
.contactMe .field {
  width: 100%; font: inherit; color: var(--c-ink);
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  padding: .8rem 1rem; transition: border-color var(--t), box-shadow var(--t);
}
.contactMe textarea.field { min-height: 150px; resize: vertical; }
.contactMe .field:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(192,136,59,.18); }
.contactMe select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232d6068' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }

/* Champ fichier */
.contactMe .form-row.file { flex-direction: row; align-items: center; gap: .8rem; flex-wrap: wrap; }
.contactMe .form-row.file label { color: var(--c-link); font-weight: 600; cursor: pointer; }

/* Case RGPD — override du markup par défaut de contactme-1.5.css (chargé après)
   qui projette l'input en position:absolute et dessine un faux carré via label:before. */
.contactMe .form-row .checkbox-radio { height: auto; display: flex; align-items: flex-start; gap: .6rem; }
.contactMe .form-row .checkbox-radio input[type="checkbox"] {
  position: static; width: 18px; height: 18px; margin-top: .25rem;
  accent-color: var(--c-accent); flex: none;
}
.contactMe .form-row .checkbox-radio label { position: static; display: inline; padding: 0; margin: 0; }
.contactMe .form-row .checkbox-radio label:before,
.contactMe .form-row .checkbox-radio input[type="checkbox"]:checked + label:after { content: none; display: none; }
.contactMe .txt-rgpd { font-size: .85rem; color: var(--c-body); margin: 0; }
.space-rgpd { display: none; }

/* Message d'état (succès / erreur) injecté par contactme.js */
.contactMe .msg { font-size: .95rem; }
.contactMe .msg:not(:empty) { padding: .8rem 1rem; border-radius: var(--radius-sm); }

/* ----------  Pied de page  ---------- */
.site-footer { background: var(--c-bg-deep); color: #c3d6d4; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.footer-col h2 { font-size: 1.05rem; color: #fff; margin-bottom: .9rem; font-family: var(--font-body); letter-spacing: .04em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-col a { color: #c3d6d4; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-brand img { margin-bottom: 1rem; }
.footer-slogan { font-family: var(--font-head); font-style: italic; color: #e2ebee; max-width: 30ch; }
.footer-contact { line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; font-size: .85rem; }
.footer-bottom p { margin: 0; color: #e2ebee; }

/* ----------  Animation d'apparition  ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .split { grid-template-columns: 1.05fr .95fr; }
  .split.reverse > :first-child { order: 2; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

/* ----------  Menu mobile  ---------- */
@media (max-width: 859px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; background: transparent; border: 1px solid var(--c-line);
    border-radius: 10px; cursor: pointer; position: relative;
  }
  .menu-toggle-bar, .menu-toggle-bar::before, .menu-toggle-bar::after {
    content: ""; display: block; width: 22px; height: 2px; background: var(--c-ink);
    border-radius: 2px; transition: transform var(--t), opacity var(--t);
  }
  .menu-toggle-bar::before { position: absolute; transform: translateY(-7px); }
  .menu-toggle-bar::after  { position: absolute; transform: translateY(7px); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bar { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bar::before { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bar::after  { transform: rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 74px 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.open { max-height: 70vh; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .5rem clamp(1.1rem, 5vw, 2rem) 1.2rem; }
  .site-nav a { padding: .9rem 1rem; border-radius: 10px; }
}

/* ----------  Préférences utilisateur  ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
