/* =========================================================================
   Café Moustache — V2 : grains de café en 3 plans, rose #D9077A en aplat
   (aucun dégradé), logo SVG détouré du client, fumée 3D, rubans, pattes,
   chats adoptés, associations partenaires, collaboration crochet.
   Chargé après style.css.
   ========================================================================= */

/* --- Police des titres : Badoga (fournie par le client, Reference/Font) --- */
@font-face { font-family: "Badoga"; src: url(../fonts/badoga.otf) format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
:root { --titres: "Badoga", "Instrument Serif", Georgia, serif; }
.hero__titre, .titre, .texte-scrub, .phrase, .logo__mot {
  font-family: var(--titres); font-weight: 400; letter-spacing: 0;
}
/* Badoga n'a pas d'italique : la mise en avant passe par la couleur seule */
:is(.hero__titre, .titre, .texte-scrub, .phrase, .logo__mot) em { font-style: normal; }
.hero__titre, .titre { line-height: 1.06; }
/* les mots montent dans un masque : on lui laisse de la marge pour les accents, jambages et ligatures */
.mot-masque { padding: .14em .08em .2em; margin: -.14em -.08em -.2em; }

/* --- Grains : fond et milieu derrière le contenu, avant-plan au-dessus --- */
.grains { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.grains__plan { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.grains__plan--fond { filter: blur(2.2px); opacity: .6; }
.grains__plan--milieu { opacity: .95; }
.grains__plan--avant { position: fixed; z-index: 85; filter: blur(3px); opacity: .9; }
/* le contenu passe au-dessus des grains de fond, les fonds de section en dessous */
:where(main > section > *, main > .rubans, .pied > *) { position: relative; z-index: 2; }
/* aucune section ne déborde en largeur (fumée 3D, fleur qui tourne du duo…) */
main > section { overflow-x: clip; }

/* --- Couleur : rose #D9077A en aplat ------------------------------------ */
.titre em, .hero__titre em, .texte-scrub em, .phrase em, .logo__mot em { color: var(--rose); }
.titre--clair em, .texte-scrub--clair em { color: var(--moutarde); }
.bouton:not(.bouton--contour):not(.bouton--creme):not(.bouton--contour-clair) {
  background: var(--rose); border-color: var(--rose); color: #fff;
  box-shadow: 0 12px 26px -12px rgba(217, 7, 122, .7);
}
.bouton:not(.bouton--contour):not(.bouton--creme):not(.bouton--contour-clair):hover { background: var(--rose-fonce); border-color: var(--rose-fonce); }
.bouton--contour:hover { background: var(--rose); border-color: var(--rose); color: #fff; }
.bouton--creme:hover { background: var(--rose); border-color: var(--rose); color: #fff; }
.burger { background: var(--rose); }
.nav a::after { background: var(--rose); height: 2px; }
.liste-num span { transition: background .35s, color .35s, border-color .35s, transform .35s; }
.liste-num li:hover span { background: var(--rose); border-color: var(--rose); color: #fff; transform: rotate(-12deg) scale(1.1); }
.charte__col--oui { background: var(--rose); box-shadow: 0 24px 50px rgba(217, 7, 122, .25); }
.charte__col--non p { text-decoration-color: rgba(217, 7, 122, .6); }
.menu--vedette { background: var(--rose); border-color: var(--rose); box-shadow: 0 30px 60px rgba(217, 7, 122, .28); }
.menu__badge { color: var(--rose); border-color: var(--rose); }
.menu li b { color: var(--rose); }
.menu--vedette li b { color: #fff; }
.menu { transition: border-color .35s, box-shadow .35s; }
.menu:not(.menu--vedette):hover { border-color: var(--rose); box-shadow: 0 24px 50px -20px rgba(217, 7, 122, .4); }
.point { background: #fff; }
.point::after { background: var(--rose); }
.coeur--1, .coeur--f, .coeur--d, .coeur--2 { color: var(--rose); }
.coeur--a, .coeur--c { color: var(--rose-clair); }
.duo__fond { background: var(--rose); opacity: .55; }
.avis { background: var(--rose-clair); }
.avis__carte { border-color: var(--rose); }
.avis__mention { color: var(--rose-fonce); }
.initiale { background: var(--rose); color: #fff; }
.reseau--insta { background: var(--rose-clair); border-color: var(--rose-clair); }
.reseau span { color: var(--rose); }
.carte-flottante, .carte-avatar, .encart, .encart__fermer { border-color: var(--rose); }
.carte-flottante h2, .carte-avatar em, .encart__fermer, .surtitre--gauche, .filet span { color: var(--rose); }
.filet::before, .filet::after { background: var(--rose); }
.tiret { color: var(--rose); }
.tiret--clair { color: var(--moutarde); }
.question[open] summary .rond { background: var(--rose); border-color: var(--rose); }
.etiquette { transition: background .3s, color .3s, border-color .3s; }
.etape:hover .etiquette { background: var(--rose); border-color: var(--rose); color: #fff; }
.etape img { transition: rotate .6s cubic-bezier(.3, 1.4, .5, 1), scale .6s; }
.etape:hover img { rotate: 6deg; scale: 1.04; }
.trait { background: var(--rose); }
.adoption__etape .trait { background: var(--brun); }
.adoption__etape p em { color: var(--rose); }

/* motif de pattes roses (repris de l'identité du café) sur les sections sombres */
.pied { position: relative; }
.duo::before, .infos::before, .pied::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='%23D9077A'%3E%3Cg transform='translate(24 30) rotate(-18) scale(1.7)'%3E%3Cellipse cx='12' cy='16' rx='5' ry='4.2'/%3E%3Cellipse cx='5.2' cy='10.4' rx='2' ry='2.6'/%3E%3Cellipse cx='9.4' cy='6.4' rx='2' ry='2.7'/%3E%3Cellipse cx='14.6' cy='6.4' rx='2' ry='2.7'/%3E%3Cellipse cx='18.8' cy='10.4' rx='2' ry='2.6'/%3E%3C/g%3E%3Cg transform='translate(120 104) rotate(22) scale(1.9)'%3E%3Cellipse cx='12' cy='16' rx='5' ry='4.2'/%3E%3Cellipse cx='5.2' cy='10.4' rx='2' ry='2.6'/%3E%3Cellipse cx='9.4' cy='6.4' rx='2' ry='2.7'/%3E%3Cellipse cx='14.6' cy='6.4' rx='2' ry='2.7'/%3E%3Cellipse cx='18.8' cy='10.4' rx='2' ry='2.6'/%3E%3C/g%3E%3Ccircle cx='150' cy='44' r='5'/%3E%3Ccircle cx='60' cy='150' r='4'/%3E%3Ccircle cx='96' cy='70' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* --- Logo SVG détouré du client (masque : recolorable) ------------------- */
.logo-svg {
  display: block; flex: none; background: var(--brun); aspect-ratio: 518.23 / 501.67;
  -webkit-mask: url(../media/logo/logo-detoure.svg) center / contain no-repeat;
  mask: url(../media/logo/logo-detoure.svg) center / contain no-repeat;
}
.logo__svg { width: 46px; transition: transform .9s cubic-bezier(.3, 1.3, .5, 1), background .3s; }
.logo:hover .logo__svg { transform: rotate(-14deg) scale(1.08); background: var(--rose); }
.logo--pied .logo__svg { width: 54px; }
.hero__badge {
  position: absolute; z-index: 3; width: clamp(130px, 12vw, 180px); aspect-ratio: 1; border-radius: 50%;
  left: calc(50% + min(34vw, 360px) - 130px); top: -2%;
  background: var(--creme); border: 2px solid var(--rose); box-shadow: 0 18px 40px rgba(64, 32, 25, .22);
  display: grid; place-items: center;
}
.hero__badge-texte { position: absolute; inset: 4%; width: 92%; height: 92%; overflow: visible; }
.hero__badge-texte text { font: 600 15px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; fill: var(--rose); }
.hero__badge-logo { width: 52%; background: var(--brun); }
.encart__logo { width: 64px; margin: 2px auto 10px; background: var(--brun); }
.encart__fermer { display: grid; place-items: center; padding: 0; line-height: 1; font: 400 18px/1 var(--sans); }
.encart__fermer:hover { background: var(--rose); color: #fff; }
.hero__grain { position: absolute; z-index: 2; color: #5E371F; animation: flotte 7s ease-in-out infinite; }
.hero__grain svg { width: 100%; height: 100%; }
.hero__grain--1 { width: 44px; height: 44px; left: 29%; top: 14%; }
.hero__grain--2 { width: 30px; height: 30px; right: 31%; top: 66%; animation-delay: -3s; }

/* --- Bienvenue : la fumée 3D remplace la forme sombre, texte en noir ----- */
.chats__nuage { background: none; aspect-ratio: auto; min-height: clamp(520px, 62vw, 820px); }
.chats__fumee { position: absolute; inset: 50% auto auto 50%; width: min(118%, 1180px); translate: -50% -50%; pointer-events: none; z-index: 0; }
.chats__fumee model-embed { pointer-events: none; }
.chats__contenu { position: relative; z-index: 1; color: var(--noir); }
.chats__contenu .titre { color: var(--noir); }
.chats__contenu p:not(.titre) { color: var(--noir); font-weight: 500; }

/* --- Rubans croisés ----------------------------------------------------- */
/* deux bandes parallèles, légèrement inclinées, qui ne se recouvrent jamais : tout le texte reste lisible */
/* deux rubans qui se croisent en X au centre ; ils sont assez inclinés pour ne se recouvrir qu'au milieu,
   et comme ils défilent, chaque mot repasse dans une zone dégagée */
.rubans { position: relative; z-index: 3; height: clamp(200px, 19vw, 280px); overflow: hidden; }
.ruban { position: absolute; left: -10%; width: 120%; top: 50%; margin-top: calc(clamp(54px, 4.6vw, 72px) / -2); display: flex; align-items: center; height: clamp(54px, 4.6vw, 72px); overflow: hidden; box-shadow: 0 14px 30px -16px rgba(64, 32, 25, .35); }
.ruban--rose { rotate: -5deg; z-index: 2; }
.ruban--moutarde { rotate: 4.5deg; }
.rubans--inverse { height: clamp(140px, 12vw, 180px); }
.rubans--inverse .ruban { rotate: -2.5deg; }
.ruban--rose { background: var(--rose); color: #fff; }
.ruban--moutarde { background: var(--moutarde); color: var(--brun); }
.ruban--brun { background: var(--brun); color: var(--creme); }
.ruban__piste { display: flex; align-items: center; gap: 28px; width: max-content; padding-right: 28px; white-space: nowrap; font: italic 400 clamp(24px, 2.6vw, 38px)/1.3 var(--serif); will-change: transform; }
.ruban__piste span { display: block; padding-bottom: .06em; }
.ruban__piste svg { width: .72em; height: .72em; flex: none; }
.ruban--rose .ruban__piste svg { color: var(--moutarde); --creme: var(--rose); }
.ruban--moutarde .ruban__piste svg { color: var(--rose); --creme: var(--moutarde); }
.ruban--brun .ruban__piste svg { color: var(--moutarde); --creme: var(--brun); }

/* --- Traces de pattes (Avant de venir) ---------------------------------- */
.pattes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.patte { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; color: var(--rose); opacity: .85; }
.patte svg { width: 100%; height: 100%; }
.patte:nth-child(odd) { color: var(--roux); }

/* --- Chats adoptés : coverflow -------------------------------------------- */
.adoptes { padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.coverflow { position: relative; width: 100%; min-height: clamp(420px, 42vw, 620px); }
.coverflow__repli { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px max(var(--gouttiere), calc((100% - var(--large)) / 2)) 24px; }
.coverflow__repli::-webkit-scrollbar { display: none; }
.coverflow__repli li { flex: none; width: clamp(220px, 24vw, 320px); scroll-snap-align: center; }
.coverflow__repli img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; border: 3px solid #fff; box-shadow: 0 18px 40px -18px rgba(64, 32, 25, .45); }
.coverflow.est-monte .coverflow__repli { display: none; }

/* --- Associations partenaires ------------------------------------------- */
.associations { background: var(--creme-2); }
.associations__pattes { width: min(460px, 80%); margin: -10px auto 34px; border-radius: 26px; }
.associations__grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.asso { padding: 34px 30px; border-radius: var(--rayon); background: var(--creme); border: 1.5px solid var(--trait); text-align: center; transition: border-color .35s, translate .35s, box-shadow .35s; }
.asso:hover { border-color: var(--rose); translate: 0 -6px; box-shadow: 0 24px 50px -24px rgba(217, 7, 122, .45); }
.asso img { width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 50%; object-fit: cover; }
.asso h3 { font: 400 clamp(26px, 2.4vw, 32px)/1.1 var(--serif); margin-bottom: 14px; }
.asso h3 em { color: var(--rose); }
.asso p { font-size: 15px; color: var(--texte-doux); }

/* --- Collaboration crochet ---------------------------------------------- */
.crochet__grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.crochet__photos { position: relative; min-height: clamp(420px, 44vw, 620px); }
.crochet__photo { position: absolute; border-radius: var(--rayon); object-fit: cover; border: 4px solid #fff; box-shadow: 0 30px 60px -24px rgba(64, 32, 25, .45); }
.crochet__photo--1 { left: 0; top: 0; width: 64%; aspect-ratio: 4 / 5; rotate: -4deg; }
.crochet__photo--2 { right: 0; bottom: 0; width: 56%; aspect-ratio: 641 / 665; rotate: 5deg; }
.crochet__intro { margin: 22px 0 26px; color: var(--texte-doux); max-width: 520px; }
.tarifs { border-top: 1.5px solid var(--trait); }
.tarifs li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1.5px solid var(--trait); font: 400 clamp(22px, 2vw, 28px)/1.15 var(--serif); }
.tarifs small { font: 400 13px/1 var(--sans); color: var(--texte-doux); margin-left: 6px; }
.tarifs b { font: 600 18px/1 var(--sans); color: #fff; background: var(--rose); padding: 8px 14px; border-radius: 99px; white-space: nowrap; }
.crochet__note { margin: 20px 0 14px; font-size: 14px; color: var(--texte-doux); }
.crochet__contacts { display: flex; flex-wrap: wrap; gap: 10px; }
.crochet__contacts .bouton { font-size: 14px; }

/* --- Parcours du refuge au foyer (6 étapes, route qui serpente) ---------- */
.parcours { position: relative; width: min(100% - 2 * var(--gouttiere), 1120px); margin: 0 auto; }
.parcours__route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.parcours__fond { fill: none; stroke: var(--beige); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 2 22; }
.parcours__trace { fill: none; stroke: var(--rose); stroke-width: 5; stroke-linecap: round; }
.parcours__etapes { position: relative; display: grid; gap: clamp(28px, 4vw, 56px); }
.parcours__etape { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; }
.parcours__noeud {
  grid-column: 2; justify-self: center; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--creme); border: 2px solid var(--brun); color: var(--brun); font: 600 15px/1 var(--sans);
  position: relative; z-index: 2; transition: background .4s, color .4s, border-color .4s, scale .4s cubic-bezier(.3, 1.6, .5, 1);
}
.parcours__noeud svg { width: 26px; height: 26px; }
.parcours__etape.est-atteinte .parcours__noeud { background: var(--rose); border-color: var(--rose); color: #fff; scale: 1.12; }
.parcours__carte {
  grid-row: 1; padding: 26px 28px; border-radius: var(--rayon); background: var(--creme); border: 1.5px solid var(--trait);
  display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center;
  box-shadow: 0 20px 40px -26px rgba(64, 32, 25, .4); transition: border-color .4s, box-shadow .4s;
}
.parcours__etape:nth-child(odd) .parcours__carte { grid-column: 1; }
.parcours__etape:nth-child(even) .parcours__carte { grid-column: 3; }
.parcours__etape.est-atteinte .parcours__carte { border-color: var(--rose); box-shadow: 0 24px 50px -24px rgba(217, 7, 122, .4); }
.parcours__carte > :first-child { grid-row: span 2; }
.parcours__carte h3 { font: 400 clamp(24px, 2.2vw, 30px)/1.1 var(--titres); }
.parcours__carte h3 em { font-style: normal; color: var(--rose); }
.parcours__carte p { font-size: 15px; color: var(--texte-doux); }
.parcours__visuel-trait { width: 96px; background: var(--brun) !important; }
.parcours__photo { width: 110px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 10px 24px -10px rgba(64, 32, 25, .45); }
.parcours__logos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 104px; }
.parcours__logos img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.parcours__logos img:first-child { grid-column: span 2; width: 60%; justify-self: center; }
.parcours__carte--foyer { background: var(--rose); border-color: var(--rose); }
.parcours__carte--foyer h3 em, .parcours__carte--foyer p { color: #fff; }
.parcours__voyageur {
  position: absolute; left: 0; top: 0; z-index: 3; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  display: grid; place-items: center; background: var(--creme); border: 2px solid var(--rose); box-shadow: 0 10px 24px -8px rgba(217, 7, 122, .55);
  opacity: 0; pointer-events: none;
}
.parcours__voyageur .logo-svg { width: 34px; background: var(--brun); }
.parcours.est-trace .parcours__voyageur { opacity: 1; }
.adoption .pied-section--court { margin-top: clamp(60px, 7vw, 100px); }

/* --- Réseaux : la fourrure (Originkit Plush Tile) est le FOND de la carte -- */
.reseau--fourrure { position: relative; overflow: hidden; isolation: isolate; min-height: 340px; justify-content: flex-end; border: 0; color: #fff; }
.reseau--insta { background: var(--rose); }
.reseau--facebook { background: var(--brun); }
.reseau__fourrure { position: absolute; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; }
.reseau__fourrure canvas { display: block; }
.reseau__contenu { position: relative; display: flex; flex-direction: column; gap: 6px; flex: 1; pointer-events: none; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.reseau--fourrure .reseau__icone { width: 40px; height: 40px; color: #fff; margin-bottom: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3)); }
.reseau--fourrure strong { margin-top: 70px; color: #fff; }
.reseau--fourrure span { color: var(--moutarde) !important; font-weight: 600; }
.reseau--fourrure p { color: rgba(255, 255, 255, .92) !important; }
.reseau--fourrure em { color: #fff !important; text-decoration: underline; text-underline-offset: 4px; }
.reseau--facebook .reseau__icone, .reseau--facebook strong { color: var(--creme); }
/* survol : la fourrure se couche sous le pointeur, la carte reste de la même couleur */
.reseau--insta:hover { background: var(--rose); }
.reseau--facebook:hover { background: var(--brun); }
.reseau:not(.reseau--fourrure):hover { background: var(--creme); color: inherit; border-color: var(--rose); }
.reseau:not(.reseau--fourrure):hover p { color: var(--texte-doux); }
.reseau:not(.reseau--fourrure):hover span, .reseau:not(.reseau--fourrure):hover em { color: var(--rose); }

@media (max-width: 860px) {
  .hero__badge { width: 104px; left: auto; right: 4vw; top: -3%; }
  .hero__badge-texte text { font-size: 17px; }
  .hero__grain--1 { left: 4%; top: 30%; }
  .grains__plan--avant { opacity: .7; }
  .associations__grille, .crochet__grille { grid-template-columns: 1fr; }
  .crochet__photos { min-height: 112vw; }
  .chats__nuage { min-height: 120vw; aspect-ratio: auto; }
  .chats__fumee { width: 190%; }
  /* parcours : la route passe à gauche, les cartes à droite */
  .parcours__etape { grid-template-columns: 64px 1fr; gap: 14px; }
  .parcours__noeud { grid-column: 1; width: 52px; height: 52px; }
  .parcours__etape:nth-child(odd) .parcours__carte, .parcours__etape:nth-child(even) .parcours__carte { grid-column: 2; }
  .parcours__carte { grid-template-columns: 1fr; padding: 20px; }
  .parcours__carte > :first-child { grid-row: auto; }
  .parcours__photo { width: 88px; }
  .parcours__visuel-trait { width: 76px; }
  .parcours__voyageur { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .parcours__voyageur .logo-svg { width: 26px; }
}
@media (max-width: 560px) {
  .encart__logo { display: none; }
  .ruban { height: 46px; margin-top: -23px; }
  .ruban--rose { rotate: -9deg; }
  .ruban--moutarde { rotate: 8deg; }
  .rubans { height: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  .grains, .grains__plan--avant { display: none; }
}
