/* ==========================================================================
   CandleTime — styles de base
   Polices auto-hébergées, couleurs de texte, liens, titres, conteneur, focus.
   Chargé après tokens.css. Aucune valeur en dur : uniquement les variables --ls-*.
   ========================================================================== */

/* --- Polices (OFL, fichiers dans assets/fonts/) ------------------------- */

@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cormorant-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cormorant-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Page --------------------------------------------------------------- */

html {
  font-family: var(--ls-font-texte);
}

body {
  font-family: var(--ls-font-texte);
  font-size: var(--ls-fs-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ls-encre);
  background-color: var(--ls-lin);
}

/* Flatsome pose un fond blanc sur ces deux conteneurs. */
#wrapper,
#main {
  background-color: var(--ls-lin);
}

p {
  color: var(--ls-texte);
  line-height: 1.7;
}

strong,
b {
  font-weight: 600;
}

/* --- Conteneur : 1320 px, gouttière de 20 px ---------------------------- */

/* Le préfixe « html » passe devant le CSS en ligne de Flatsome, qui retire
   30 px à la largeur réglée dans le Customizer (1320 → 1290). */
html .container,
html .container-width {
  max-width: var(--ls-container);
  padding-left: var(--ls-gouttiere);
  padding-right: var(--ls-gouttiere);
}

html .row {
  max-width: var(--ls-container);
}

/* --- Titres ------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.heading-font {
  font-family: var(--ls-font-texte);
  font-weight: 600;
  color: var(--ls-encre);
}

/* Cormorant : titres de page et de section uniquement, jamais sous 22 px. */
h1, h2,
.h1, .h2 {
  font-family: var(--ls-font-titre);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: normal;
  text-transform: none;
}

h1, .h1 { font-size: var(--ls-fs-h1-rayon); line-height: 1.02; }
h2, .h2 { font-size: var(--ls-fs-h2-bloc); }

/* --- Liens -------------------------------------------------------------- */

a {
  color: var(--ls-encre);
  text-decoration: none;
}

a:hover {
  color: var(--ls-bronze);
}

/* --- Boutons ------------------------------------------------------------ */

.button,
button,
input[type='submit'],
input[type='button'] {
  font-family: var(--ls-font-texte);
  font-weight: 600;
  letter-spacing: var(--ls-ls-bouton);
}

.button.primary:not(.is-outline):not(.is-link):not(.is-underline):hover,
.button.alt:hover,
.single_add_to_cart_button:hover {
  background-color: var(--ls-bronze-fonce);
  box-shadow: none;
}

/* --- Champs ------------------------------------------------------------- */

input, select, textarea {
  font-family: var(--ls-font-texte);
}

/* --- Texte réservé aux lecteurs d'écran --------------------------------- */

.ls-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Composants communs à plusieurs gabarits : fil d'Ariane (rayons, fiches, pages),
   accordéons (rayons, fiches, Idées cadeaux) === */

/* --- Fil d'Ariane ------------------------------------------------------- */

.ls-ariane {
  padding-top: 22px;
  font-size: var(--ls-fs-petit);
  line-height: normal;
  color: var(--ls-pierre);
}

/* Texte courant : retour à la ligne naturel, séparateurs sur la ligne de base des liens. */
.ls-ariane p {
  display: block;
  margin: 0;
  line-height: 1.6;
  color: var(--ls-pierre);
}

.ls-ariane .separator {
  margin: 0 4px;
}

.ls-ariane a {
  color: var(--ls-pierre);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ls-ariane a:hover {
  color: var(--ls-bronze);
}

/* --- Accordéons (FAQ) --------------------------------------------------- */

.ls-accordeon {
  padding: 16px 0;
  border-bottom: 1px solid var(--ls-trait);
}

.ls-accordeon summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

/* Question en H3 dans le summary : même apparence que le texte du summary. */
.ls-accordeon summary h3.ls-accordeon__question {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
}

.ls-accordeon summary > span {
  flex: none;
}

.ls-accordeon summary::-webkit-details-marker {
  display: none;
}

.ls-accordeon[open] summary span {
  transform: rotate(45deg);
}

.ls-accordeon p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ls-texte);
}

/* === Règles partagées par plusieurs gabarits (accueil, Idées cadeaux, fiche, panier) === */

/* --- Sections dans le conteneur ----------------------------------------- */

.ls-section {
  max-width: var(--ls-container);
  margin: 0 auto;
  padding-left: var(--ls-gouttiere);
  padding-right: var(--ls-gouttiere);
}

.ls-section__entete--centre {
  margin-bottom: 40px;
  text-align: center;
}

.ls-section__entete--ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
}

h2.ls-section__titre,
p.ls-section__titre {
  margin: 0;
  font-size: var(--ls-fs-h2-section);
  line-height: 1.05;
}

/* Accroches qui ont l'apparence d'un H2 sans en être un (bandeau, encart cadeaux). */
p.ls-section__titre,
p.ls-bandeau__titre {
  font-family: var(--ls-font-titre);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ls-encre);
}

/* --- Progression vers la livraison offerte (panier, message d'ajout) ---- */

.ls-seuil {
  margin: 0 0 16px;
  text-align: left;
}

.woocommerce-message .ls-seuil {
  margin: 10px 0 0;
}

p.ls-seuil__texte {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ls-encre);
}

.ls-seuil__barre {
  height: 6px;
  overflow: hidden;
  background-color: var(--ls-trait);
  border-radius: 3px;
}

.ls-seuil__barre span {
  display: block;
  height: 100%;
  background-color: var(--ls-bronze);
  border-radius: 3px;
}

/* --- Écrans tactiles : cibles d'au moins 44 px (DESIGN.md §12) --------- */

@media (pointer: coarse) {
  .ls-ariane {
    padding-top: 10px;
  }

  /* Cible tactile de 44 px sans changer la mise en ligne : le remplissage vertical d'un
     élément en ligne agrandit la zone cliquable, pas la hauteur de ligne. */
  .ls-ariane p {
    padding: 12px 0;
  }

  .ls-ariane a {
    padding: 12px 0;
  }

  .ls-footer__colonne a,
  .ls-footer__legal a {
    display: flex;
    align-items: center;
    min-height: var(--ls-cible);
    padding-top: 0;
    padding-bottom: 0;
  }

  .ls-footer ul.ls-footer__liens {
    gap: 0;
  }

  .ls-nav__liste > li > a,
  .ls-lien-action,
  .ls-accordeon summary,
  .ls-rayon-vide a {
    display: flex;
    align-items: center;
    min-height: var(--ls-cible);
  }

  .ls-accordeon summary {
    justify-content: space-between;
  }
}

/* --- Mouvement réduit --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* --- Encadré des pages en attente de contenu ---------------------------- */

.ls-a-fournir {
  max-width: 780px;
  padding: 20px 24px;
  background-color: var(--ls-blanc);
  border: 1px dashed var(--ls-champ);
  border-radius: var(--ls-radius);
}

.ls-a-fournir p {
  margin: 0;
  color: var(--ls-pierre);
}

/* Liens dans un paragraphe : soulignés, pour ne pas reposer sur la seule couleur (audit « link-in-text-block »). */
#main p a:not([class]) {
  text-decoration: underline;
  text-underline-offset: 2px;
}
