/* =========================================================
   Studio Flaveur — styles sur-mesure (fidèles au site Wix)
   ========================================================= */

:root {
  --sf-rose: #fce5e6;
  --sf-rose-clair: #fdeef0;
  --sf-peche: #efd9c7;
  --sf-navy: #324158;
  --sf-orange: #d9660c;
}

body { background-color: var(--sf-rose); }

/* ---------- En-tête (calé sur les mesures exactes du Wix) ---------- */
:root { --sf-header-orange: #ff8800; }
.sf-header { background: var(--sf-rose); padding-top: 28px !important; padding-bottom: 0 !important; }
.sf-topbar { padding-block: 0 !important; min-height: 64px; align-items: center; max-width: 985px; margin-inline: auto; }
.sf-social { display: flex; gap: 31px; align-items: center; }
.sf-social img { width: 29px; height: 29px; display: block; }
.sf-tagline {
  color: var(--sf-header-orange);
  font-family: "Sofia Sans", sans-serif;
  font-weight: 400; font-style: normal; font-size: 19px; margin: 0;
}
.sf-logo img,
.sf-logo .custom-logo { width: 199px !important; height: 62px !important; max-height: 62px; object-fit: contain; }

/* Rangée de navigation : répartie de bord à bord (~985px), y≈139→193 */
.sf-nav {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 985px; width: 100%; margin: 51px auto 0; min-height: 54px;
}
.sf-nav a {
  color: var(--sf-navy); font-family: "Sofia Sans", sans-serif;
  font-size: 17px; font-weight: 400; line-height: 1.2; letter-spacing: 0;
  text-decoration: none; white-space: nowrap;
}
.sf-nav a:hover, .sf-nav a.is-active { color: var(--sf-header-orange); }
@media (max-width: 980px) {
  .sf-nav { flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.6rem; min-height: 0; margin-top: 28px; }
  .sf-topbar { flex-wrap: wrap; justify-content: center; gap: 14px; min-height: 0; }
  .sf-tagline { display: none; }
}

/* ---------- Héro ---------- */
.sf-hero {
  background: linear-gradient(180deg, var(--sf-peche) 0%, #f0ddd0 100%);
  padding-top: 0 !important;
}
.sf-hero-spices { width: 100%; max-width: none; margin: 0 0 -110px; display: block; position: relative; z-index: 1; }
.sf-hero .sf-hero-spices img { width: 100%; height: clamp(190px, 20vw, 290px) !important; object-fit: cover; object-position: center 42%; display: block; }
.sf-card {
  background: var(--sf-rose-clair);
  border-radius: 26px;
  padding: 3.5rem clamp(1.5rem, 5vw, 4rem) 3rem;
  box-shadow: 0 18px 40px rgba(50,65,88,.08);
  max-width: 700px;
  margin-inline: auto;
  position: relative; z-index: 2;
}
.sf-quote-lead {
  font-style: italic; color: var(--sf-navy);
  font-size: 1.15rem; text-align: center;
}
.sf-hero-text { text-align: center; color: var(--sf-navy); font-size: 1.2rem; line-height: 1.6; }
.sf-accent { color: var(--sf-orange); font-weight: 700; font-size: 1.35rem; text-align: center; }

/* ---------- Témoignages ---------- */
.sf-testimonials { background: var(--sf-peche); }
.sf-testimonial { font-style: italic; color: var(--sf-navy); text-align: center; max-width: 460px; }
.sf-bigquote { font-family: "Sofia Sans"; font-size: 4rem; color: var(--sf-orange); line-height: .6; }

/* ---------- Section bleue « Réserver un atelier » ---------- */
.sf-navy-section { background: var(--sf-navy); color: #fff; }
.sf-navy-section :where(h1,h2,h3,p) { color: #fff; }
.sf-navy-section .sf-subtitle { color: #d8dee8; }
.sf-workshop {
  background: var(--sf-rose-clair); border-radius: 22px; padding: 2.5rem 1.5rem;
  text-align: center; height: 100%;
}
.sf-workshop img { width: 200px; height: 200px; object-fit: contain; margin-inline: auto; }
.sf-workshop h3 { color: var(--sf-navy) !important; letter-spacing: .04em; margin-top: 1rem; }
.sf-workshop p { color: var(--sf-navy) !important; }
.sf-giftcard {
  background: var(--sf-rose-clair); border-radius: 22px; padding: 2rem;
  text-align: center; margin-top: 2rem;
}
.sf-giftcard p { color: var(--sf-navy) !important; font-size: 1.15rem; }
.sf-giftcard img { max-width: 240px; margin: 1rem auto 0; display: block; }

/* ---------- Qui suis-je ---------- */
.sf-about { background: var(--sf-rose); text-align: center; }
.sf-about .sf-about-text { font-style: italic; color: var(--sf-navy); max-width: 560px; margin-inline: auto; }

/* ---------- Instagram ---------- */
.sf-insta-title { color: var(--sf-orange); text-align: center; font-size: 1.5rem; }
.sf-insta-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.sf-divider { border: none; border-top: 1px solid #e3b8be; max-width: 1180px; margin: 0 auto; }

/* ---------- Pied de page ---------- */
.sf-footer { background: var(--sf-rose); text-align: center; padding-block: 2rem; }
.sf-footer .sf-social { justify-content: center; margin-bottom: 1rem; }
.sf-footer-links a { color: var(--sf-navy); margin-inline: .6rem; font-size: .95rem; }
.sf-footer-copy { color: #8a7e80; font-size: .85rem; margin-top: .6rem; }

/* ---------- Boutons centrés ---------- */
.sf-center-btn { display: flex; justify-content: center; }

/* ---------- Pages internes ---------- */
.wp-block-post-title { text-align: center; color: var(--sf-navy); }
.sf-portrait img { width: 100%; height: auto; box-shadow: 0 14px 34px rgba(50,65,88,.14); }

/* Carte cadeau — pastilles de prix */
.sf-price-pill {
  background: var(--sf-orange); color: #fff !important; font-family: "Sofia Sans", sans-serif;
  font-weight: 700; font-size: 1.3rem; border-radius: 14px; padding: .8rem 0; margin: 0;
}
.sf-giftcard-img img { display: block; margin-inline: auto; }

/* Formulaire de contact (CF7) */
.sf-contact-card .wpcf7 input[type=text],
.sf-contact-card .wpcf7 input[type=email],
.sf-contact-card .wpcf7 textarea {
  width: 100%; border: 1px solid #e3c4c8; border-radius: 12px;
  padding: .8rem 1rem; background: #fff; font-family: inherit; font-size: 1rem;
  margin-bottom: 1rem; color: var(--sf-navy);
}
.sf-contact-card .wpcf7 textarea { min-height: 130px; }
.sf-form-row { display: flex; gap: 1rem; }
.sf-form-row > span { flex: 1; }
.sf-contact-card .wpcf7 input[type=submit] {
  background: var(--sf-navy); color: #fff; border: none; border-radius: 26px;
  padding: .8rem 2.4rem; font-family: "Sofia Sans", sans-serif; font-weight: 600;
  cursor: pointer; display: block; margin: .5rem auto 0; transition: background .2s;
}
.sf-contact-card .wpcf7 input[type=submit]:hover { background: var(--sf-orange); }

/* Ateliers — listing */
.sf-atelier-card { background: var(--sf-rose-clair); border-radius: 22px; padding: 2rem; text-align: center; height: 100%; }
.sf-atelier-card img { width: 190px; height: 190px; object-fit: contain; margin-inline: auto; }
.sf-meta { color: var(--sf-orange); font-weight: 600; font-family: "Sofia Sans", sans-serif; }

/* FAQ */
.sf-faq details {
  background: var(--sf-rose-clair); border-radius: 12px; padding: 1rem 1.4rem;
  margin-bottom: .8rem; cursor: pointer;
}
.sf-faq summary {
  font-family: "Sofia Sans", sans-serif; font-weight: 600; color: var(--sf-navy);
  font-size: 1.08rem; list-style: none;
}
.sf-faq summary::-webkit-details-marker { display: none; }
.sf-faq summary::after { content: " +"; color: var(--sf-orange); float: right; font-size: 1.3rem; }
.sf-faq details[open] summary::after { content: " –"; }
.sf-faq details[open] summary { margin-bottom: .7rem; }

/* Pages légales — lisibilité */
.sf-legal { max-width: 820px; margin-inline: auto; text-align: left; }
.sf-legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.sf-legal h3 { font-size: 1.12rem; margin-top: 1.4rem; }

/* ============ Page À propos (calée au plus près du Wix) ============ */
/* Typo : tout en Sofia Sans 18px / poids 400 / interligne ~1.45, comme Wix (police unique) */
.sf-apropos-body, .sf-apropos-navy, .sf-apropos-box,
.sf-apropos-body p, .sf-apropos-navy p, .sf-apropos-navy li,
.sf-apropos-box p, .sf-big {
  font-family: "Sofia Sans", system-ui, sans-serif;
}
.sf-apropos-body p,
.sf-apropos-navy p, .sf-apropos-navy li,
.sf-apropos-box p {
  font-size: 18px; line-height: 1.45;
}
/* Poids fidèles à Wix : corps = Medium (500), section marine = Regular (400) */
.sf-apropos-body p { font-weight: 500; text-align: left; margin: 0 0 1.1rem; }
.sf-apropos-navy p, .sf-apropos-navy li { font-weight: 400; line-height: 1.4; }
.sf-apropos-body .has-text-align-justify { text-align: justify; }
.sf-orange, .sf-orange * { color: #ff8800 !important; }
.sf-bold { font-weight: 700 !important; }      /* SENTIR, GOÛTER, et OSER (sofia_pro_bold) */
.sf-big { font-weight: 500; line-height: 1.3; } /* lignes 25px (sofia_pro_medium) */
.sf-conviction {
  text-transform: uppercase; letter-spacing: .02em; color: var(--sf-navy) !important;
  font-size: 18px !important; font-weight: 500 !important; text-align: left; margin: 2.2rem 0 .6rem;
  font-family: "Sofia Sans", sans-serif; line-height: 1.1;
}
/* Pastille fleur orange : rotation lente (animation Wix) */
@keyframes sf-spin { to { transform: rotate(360deg); } }
.sf-cubeba-badge .sf-blob { animation: sf-spin 16s linear infinite; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: reduce) { .sf-cubeba-badge .sf-blob { animation: none; } }
/* Bouton orange avec chevron */
.sf-btn-orange .wp-block-button__link { display: inline-flex; align-items: center; }
.sf-btn-orange .wp-block-button__link::after {
  content: ""; width: 7px; height: 7px; margin-left: 11px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg);
}
/* Section marine + icône Cubeba qui chevauche le bord supérieur */
.sf-apropos-navy { position: relative; overflow: visible; text-align: center; }
.sf-apropos-navy p, .sf-apropos-navy li { color: var(--sf-rose) !important; }
.sf-apropos-navy p { text-align: center; }
.sf-cubeba-badge { position: relative; width: 92px; height: 92px; margin: -5.6rem auto 1.1rem; z-index: 2; }
.sf-cubeba-badge .sf-blob { width: 92px; height: 92px; display: block; }
.sf-cubeba-badge .sf-cubeba-pepper { position: absolute; top: 52%; left: 50%; transform: translate(-50%,-50%); width: 54px; height: 54px; object-fit: contain; }
.sf-navy-list { list-style: none; padding-left: 0; max-width: 620px; margin-inline: auto; text-align: center; }
.sf-navy-list li { color: var(--sf-rose) !important; margin: .3rem 0; }
/* Encadré "Tous niveaux / Particuliers" */
.sf-apropos-box { border-style: solid !important; border-color: rgba(50,65,88,.35) !important; }
.sf-box-title {
  text-transform: uppercase; letter-spacing: .02em; color: var(--sf-navy) !important;
  font-size: 18px !important; font-weight: 400 !important; line-height: 1.3;
  font-family: "Sofia Sans", sans-serif;
}
.sf-apropos-box p { line-height: 1.2; }
/* Bouton orange "Voir les ateliers" */
.sf-btn-orange .wp-block-button__link { background-color: #ff8800 !important; color: #fff !important; }
.sf-btn-orange .wp-block-button__link:hover { background-color: var(--sf-navy) !important; color: #fff !important; }
