/* Dream Care — feuille unique. Palette et typo du brief BCW-20260909-DRC-07.
   Corps >= 17 px sur mobile. Rien ne deborde, un seul endroit par information. */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/outfit-latin.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: 'Outfit';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/outfit-latin-ext.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;
}

:root {
  --brun:   #5C3A21;
  --creme:  #F6EFE6;
  --sable:  #C89B5A;
  --sauge:  #8A9A7B;
  --rose:   #D9A08F;
  --encre:  #2B2118;

  --fond:       #FDFBF7;
  --carte:      #FFFFFF;
  --panneau:    #F6EFE6;
  --trait:      #E7DDCE;
  --doux:       #6F5F4E;

  --rayon:   14px;
  --rayon-l: 20px;
  --ombre:   0 1px 2px rgba(43, 33, 24, .05), 0 8px 24px rgba(43, 33, 24, .06);
  --large:   1180px;
  --pas:     clamp(1rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Outfit', ui-sans-serif, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--fond);
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brun); text-underline-offset: 3px; }
a:hover { color: var(--sable); }

:focus-visible { outline: 3px solid var(--sable); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; color: var(--brun); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; color: var(--encre); }
p  { margin: 0 0 1em; }

.enveloppe { width: 100%; max-width: var(--large); margin-inline: auto; padding-inline: var(--pas); }
.section   { padding-block: clamp(2.5rem, 7vw, 5rem); }
.section--panneau { background: var(--panneau); }
.section--clair   { background: var(--carte); }

.surtitre {
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--sable); margin: 0 0 .6rem;
}
.doux    { color: var(--doux); }
.mesure  { max-width: 62ch; }

/* ---------- bandeaux d'etat ---------- */
.bandeau {
  padding: .7rem var(--pas); font-size: .92rem; font-weight: 600; text-align: center;
  background: var(--sable); color: #fff;
}
.bandeau--alerte { background: var(--rose); color: #4a2418; }
.bandeau a { color: inherit; }

/* ---------- en-tete ---------- */
.entete { border-bottom: 1px solid var(--trait); background: var(--fond); }
.entete__rang {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center;
  justify-content: space-between; padding-block: 1.1rem;
}
.marque { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.marque__logo { width: 30px; height: 30px; flex: none; }
.marque__mot {
  font-size: 1.32rem; font-weight: 600; letter-spacing: .12em; color: var(--brun);
}
.nav { display: flex; flex-wrap: wrap; gap: .35rem 1.35rem; }
.nav a { text-decoration: none; font-weight: 500; color: var(--brun); padding-block: .2rem; }
.nav a[aria-current="page"] { font-weight: 700; border-bottom: 2px solid var(--sable); }

/* ---------- boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--brun); color: #fff; transition: background .15s, color .15s;
}
.bouton:hover { background: #4a2d19; color: #fff; }
.bouton--ligne { background: transparent; color: var(--brun); border-color: var(--sable); }
.bouton--ligne:hover { background: var(--sable); color: #fff; }
.bouton--sable { background: var(--sable); }
.bouton--sable:hover { background: #b7893f; }
.bouton[disabled], .bouton[aria-disabled="true"] {
  background: var(--trait); color: var(--doux); cursor: not-allowed; border-color: transparent;
}
.boutons { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- accueil ---------- */
.heros { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 860px) { .heros { grid-template-columns: 1fr 1fr; } }
.heros__visuel { border-radius: var(--rayon-l); overflow: hidden; box-shadow: var(--ombre); }
.heros__visuel img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.duo { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo__visuel { border-radius: var(--rayon-l); overflow: hidden; box-shadow: var(--ombre); }
.duo__visuel img { width: 100%; object-fit: cover; }
@media (min-width: 860px) { .duo--inverse .duo__visuel { order: 2; } }

/* ---------- cartes produit ---------- */
.grille-produits { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.carte {
  display: flex; flex-direction: column; background: var(--carte);
  border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre); text-decoration: none; color: inherit;
}
a.carte:hover { border-color: var(--sable); }
.carte__image { background: var(--panneau); overflow: hidden; }
/* Le ratio est porte par l'image elle-meme : sur le conteneur, la hauteur naturelle
   de l'image le prend de vitesse et les vignettes se desalignent. */
.carte__image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
/* Sans packshot fournisseur : emplacement reserve, jamais le visuel de famille
   (il est deja affiche a cote, et le repeter donnait deux fois la meme photo). */
.carte__image--reserve {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; gap: .5rem;
  align-items: center; justify-content: center; color: var(--doux);
  background: var(--panneau); border-bottom: 1px dashed var(--trait);
  font-size: .88rem; text-align: center; padding: 1rem;
}
.carte__image--reserve svg { width: 30px; height: 30px; opacity: .5; }
.carte__corps { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; gap: .3rem; }
.carte__nom { font-weight: 600; font-size: 1.02rem; color: var(--encre); margin: 0; }
.carte__sous { font-size: .92rem; color: var(--doux); margin: 0; }
.carte__pied { margin-top: auto; padding-top: .9rem; display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.prix { font-weight: 700; color: var(--sable); font-size: 1.05rem; }
.prix--grand { font-size: 1.6rem; }

.pastille {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; background: #E4EADD; color: #43502F;
}
.pastille--demo { background: #F6E6CE; color: #6E4A12; }

/* ---------- boutique par famille ---------- */
.famille { margin-block: clamp(2rem, 5vw, 3.2rem); }
.famille__titre { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; margin-bottom: 1rem; }
.famille__nom { font-size: 1.3rem; font-weight: 700; color: var(--sable); margin: 0; }
.famille__note { color: var(--doux); font-size: .95rem; }
.famille__rang { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .famille__rang { grid-template-columns: minmax(210px, .8fr) 2fr; } }
.famille__visuel { display: flex; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.famille__visuel img { width: 100%; min-height: 220px; object-fit: cover; }

/* ---------- fiche produit ---------- */
.fiche { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 900px) { .fiche { grid-template-columns: 1fr 1fr; align-items: start; } }
.reserve {
  display: grid; place-content: center; gap: .5rem; text-align: center;
  aspect-ratio: 1; border: 2px dashed var(--trait); border-radius: var(--rayon-l);
  background: var(--carte); color: var(--doux); padding: 2rem;
}
.reserve svg { width: 46px; height: 46px; margin-inline: auto; opacity: .55; }
.replie { border-top: 1px solid var(--trait); }
.replie summary {
  cursor: pointer; padding: 1rem 0; font-weight: 700; color: var(--brun); list-style: none;
  display: flex; align-items: center; gap: .5rem;
}
.replie summary::-webkit-details-marker { display: none; }
.replie summary::before { content: "\25B8"; transition: transform .15s; }
.replie[open] summary::before { transform: rotate(90deg); }
.replie__corps { padding-bottom: 1rem; color: var(--doux); }
.inci { font-size: .93rem; line-height: 1.7; overflow-wrap: anywhere; }

/* ---------- journal ---------- */
.grille-articles { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.article__date { color: var(--sable); font-weight: 600; font-size: .9rem; }
.auteur { display: flex; align-items: center; gap: .6rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--trait); }
.auteur img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.corps-article { max-width: 68ch; }
.corps-article h2 { margin-top: 2rem; }

/* ---------- formulaires ---------- */
.champ { display: block; margin-bottom: 1.1rem; }
.champ__nom { display: block; font-weight: 600; margin-bottom: .35rem; }
input[type=text], input[type=email], input[type=number], input[type=url], textarea, select {
  width: 100%; padding: .8rem .95rem; font: inherit; color: var(--encre);
  background: var(--carte); border: 1px solid var(--trait); border-radius: 10px;
}
textarea { min-height: 8rem; resize: vertical; }
select { background: var(--panneau); }
.case { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: 1.1rem; }
.case input { margin-top: .3rem; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--brun); }
.case label { font-size: .96rem; }
.aide { font-size: .9rem; color: var(--doux); margin-top: -.6rem; margin-bottom: 1rem; }

/* ---------- robot conseil ---------- */
.robot { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon-l); box-shadow: var(--ombre); padding: 1.25rem; }
.robot__tete { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.robot__tete svg { width: 32px; height: 32px; }
.robot__etat { font-size: .85rem; color: #5E6F4E; font-weight: 600; }
.robot__fil { display: flex; flex-direction: column; gap: .7rem; max-height: 22rem; overflow-y: auto; padding-inline-end: .25rem; }
.bulle { padding: .8rem 1rem; border-radius: 14px; max-width: 85%; font-size: .97rem; }
.bulle--robot { background: var(--panneau); align-self: flex-start; }
.bulle--vous  { background: var(--brun); color: #fff; align-self: flex-end; }
.robot__saisie { display: flex; gap: .6rem; margin-top: 1rem; }
.robot__saisie input { border-radius: 999px; background: var(--panneau); }

/* ---------- pied ---------- */
.pied { background: var(--brun); color: #F4EBDF; margin-top: clamp(2.5rem, 6vw, 4rem); }
.pied__rang { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding-block: 1.9rem; }
.pied__promesse { display: flex; align-items: center; gap: .8rem; font-style: italic; }
.pied__promesse svg { width: 28px; height: 28px; flex: none; }
.pied__liens { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.pied a { color: #F4EBDF; }
.pied a:hover { color: var(--sable); }

/* ---------- divers ---------- */
.fil-ariane { font-size: .93rem; color: var(--doux); margin-block: 1.2rem 1.4rem; }
.fil-ariane a { text-decoration: none; }
.vide { padding: 3rem 1rem; text-align: center; color: var(--doux); background: var(--carte); border: 1px dashed var(--trait); border-radius: var(--rayon-l); }
.a-completer { background: #F6E6CE; color: #6E4A12; font-weight: 700; padding: .1rem .45rem; border-radius: 5px; font-size: .92em; }
.saut-contenu { position: absolute; left: -9999px; }
.saut-contenu:focus { position: static; display: inline-block; margin: .5rem; }

/* ---------- LOT-DC-06 §1 : la porte cliente ---------- */
.lien-magique {
  word-break: break-all; background: var(--carte); border: 1px solid var(--trait);
  border-radius: var(--rayon); padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .93rem; line-height: 1.5;
}
.panneau {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 1.1rem 1.2rem;
}
/* La même barre de progression que le cockpit, pour l'espace client. */
.barre { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .3rem; }
.barre__pas { height: 6px; border-radius: 999px; background: var(--trait); }
.barre__pas--fait { background: var(--sauge); }

/* ---------- LOT-DC-06 §3.1 : écriture de droite à gauche (arabe) ---------- */
/* La mise en page est déjà en flex/grid et suit donc le sens du texte toute seule.
   Ne restent que les quelques endroits où un côté est nommé explicitement. */
[dir="rtl"] .fil-ariane a,
[dir="rtl"] .carte { text-align: right; }
[dir="rtl"] ul,
[dir="rtl"] ol { padding-inline-start: 1.4rem; padding-inline-end: 0; }
[dir="rtl"] .bandeau { text-align: center; }
[dir="rtl"] blockquote { border-inline-start: 3px solid var(--sable); border-inline-end: 0; }
