/* =====================================================================
   Élevage Manoir du Teckel — systeme de design du site public

   Theme sombre. Trois principes, tenus partout :
     1. Le contraste remplace les bordures. Pas de cadres, pas de cartes
        posees sur un fond : une image, puis du texte dessous.
     2. Les surfaces se distinguent par leur clarte, pas par un filet.
     3. L'ambre ne sert qu'a une chose a la fois : un sur-titre, un lien,
        un bouton. Jamais deux accents cote a cote.
   ===================================================================== */

/* ------------------------------------------------------------ Tokens */
:root {
    /* Fonds, du plus sombre au plus clair */
    --night:    #0B0B0C;   /* fond de page */
    --night-2:  #141416;   /* bande alternee */
    --smoke:    #1D1D20;   /* surface : champs, pastilles, encadres */
    --smoke-2:  #26262B;   /* surface survolee */

    /* Accent unique */
    --amber:      #E8B64C;
    --amber-deep: #C9962F;
    --amber-soft: #F2D08A;
    --on-amber:   #17140C;  /* texte pose SUR l'ambre */

    /* Texte */
    --cream:     #F2F0ED;

    /* Semantique */
    --bg:          var(--night);
    --bg-alt:      var(--night-2);
    --bg-deep:     var(--smoke);
    --surface:     var(--smoke);
    --text:        var(--cream);
    --text-soft:   #9B9A98;
    --text-muted:  #76757A;
    --line:        #26282C;
    --line-strong: #3A3A41;

    /* Etats (versions sombres : teinte dense + texte clair) */
    --ok:        #6FCF8E;
    --ok-bg:     #15241A;
    --warn:      var(--amber);
    --warn-bg:   #231C0C;
    --err:       #FF8A7A;
    --err-bg:    #2A1513;
    --info:      #8CC0F0;
    --info-bg:   #121E2A;

    /* Typographie */
    --font-display: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --fs-xs:   0.75rem;
    --fs-sm:   0.8125rem;
    --fs-base: 0.9375rem;
    --fs-md:   1rem;
    --fs-lg:   1.125rem;
    --fs-xl:   1.375rem;
    --fs-2xl:  1.75rem;
    --fs-3xl:  2.5rem;
    --fs-4xl:  3.5rem;
    --fs-5xl:  5rem;

    /* Rythme : plus ample que sur un fond clair, le noir mange l'espace */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;
    --space-9: 7rem;
    --space-10: 9rem;

    --container: 1320px;
    --container-narrow: 740px;

    /* Boutons et pastilles en pilule ; tout le reste a angle vif. */
    --radius-sm: 2px;
    --radius:    3px;
    --radius-lg: 4px;
    --radius-pill: 999px;

    /* Sur du noir une ombre ne se voit pas : on garde une lueur basse. */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow:    0 10px 30px rgba(0, 0, 0, .45);
    --shadow-lg: 0 26px 70px rgba(0, 0, 0, .6);

    --ease: cubic-bezier(.22, .61, .36, 1);
    --header-h: 76px;
}

/* Le selecteur de couleur du navigateur (barres de defilement, champs natifs). */
:root { color-scheme: dark; }

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--fs-md);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

/* Les titres portent tout le poids visuel : tres gros, tres serres,
   interlignage sous 1. C'est la signature de ce theme. */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--text);
    line-height: .98;
    letter-spacing: -0.04em;
    margin: 0 0 var(--space-4);
    text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 7vw, var(--fs-5xl)); }
h2 { font-size: clamp(2rem, 5vw, var(--fs-4xl)); }
h3 { font-size: clamp(1.25rem, 2.2vw, var(--fs-xl)); letter-spacing: -0.025em; line-height: 1.1; }
h4 { font-size: var(--fs-lg); letter-spacing: -0.02em; line-height: 1.2; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--amber); text-decoration-color: rgba(232, 182, 76, .4); text-underline-offset: 3px; }
a:hover { color: var(--amber-soft); text-decoration-color: var(--amber-soft); }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
li { margin-bottom: var(--space-2); }

blockquote {
    margin: var(--space-6) 0;
    padding: 0;
    border: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.375rem, 2.8vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text);
}

hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-7) 0; }

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

::selection { background: var(--amber); color: var(--on-amber); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--amber);
    color: var(--on-amber);
    font-weight: 600;
    padding: var(--space-3) var(--space-5);
    z-index: 200;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

.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;
}

/* ------------------------------------------------------------ Layout */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-5);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: 1480px; }

.section { padding-block: clamp(4.5rem, 10vw, var(--space-9)); }
.section--tight { padding-block: clamp(3rem, 6vw, var(--space-8)); }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); }
/* La seule section a fond clair du site : elle sert de respiration et
   de ponctuation forte, une fois par page au maximum. */
.section--feature { background: var(--amber); color: #3A2E10; }
.section--feature h1, .section--feature h2, .section--feature h3 { color: var(--on-amber); }
.section--feature .eyebrow { color: #7A6220; }
.section--feature .lead { color: #4A3A14; }
.section--feature a { color: var(--on-amber); }
.section--ruled { border-top: 1px solid var(--line); }
.section--feature.section--ruled { border-top: 0; }

.stack > * + * { margin-top: var(--space-4); }
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --------------------------------------------------------- Typographie */
.eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--space-5);
}

.lead {
    font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
    line-height: 1.65;
    color: var(--text-soft);
}

/* Le bloc de tete occupe toute la largeur ; seuls le titre et le chapeau
   sont bornes, chacun a sa propre mesure. */
.section-head { max-width: none; margin-bottom: var(--space-7); }
.section-head h2 { max-width: 18ch; }
.section-head .lead { max-width: 54ch; margin-top: var(--space-5); }
.section-head--center { margin-inline: auto; text-align: center; max-width: 54rem; }
.section-head--center h2, .section-head--center .lead { margin-inline: auto; }

/* Ce theme n'a pas de filets decoratifs : .rule ne reserve qu'un blanc. */
.rule { width: 0; height: 0; border: 0; margin: 0; display: block; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose img { border-radius: var(--radius); margin-block: var(--space-6); }
.prose figure { margin: var(--space-6) 0; }
.prose figcaption { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--space-2); }
.prose table { width: 100%; border-collapse: collapse; margin-block: var(--space-5); font-size: var(--fs-base); }
.prose th, .prose td { border: 1px solid var(--line); padding: var(--space-3); text-align: left; }
.prose th { background: var(--smoke-2); font-weight: 600; }

/* ------------------------------------------------------------ Boutons */
/* Pilules pleines. Pas de majuscules forcees : la casse normale respire
   mieux a cote de titres deja tres lourds. */
.btn {
    --btn-bg: var(--amber);
    --btn-fg: var(--on-amber);
    --btn-bd: var(--amber);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 1rem 1.75rem;
    background: var(--btn-bg);
    color: var(--btn-fg);
    border: 1px solid var(--btn-bd);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 600;
    letter-spacing: .005em;
    text-decoration: none;
    cursor: pointer;
    transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover {
    --btn-bg: var(--amber-soft);
    --btn-bd: var(--amber-soft);
    color: var(--on-amber);
    transform: translateY(-2px);
}
.btn:active { transform: none; }

/* Contour clair : le bouton secondaire par defaut sur fond sombre. */
.btn--outline { --btn-bg: transparent; --btn-fg: var(--cream); --btn-bd: rgba(242, 240, 237, .3); }
.btn--outline:hover { --btn-bg: var(--cream); --btn-fg: var(--night); --btn-bd: var(--cream); }

/* Sur un fond ambre (.section--feature) : la pilule s'inverse en noir. */
.btn--light { --btn-bg: var(--night); --btn-fg: var(--cream); --btn-bd: var(--night); }
.btn--light:hover { --btn-bg: var(--smoke-2); --btn-bd: var(--smoke-2); color: var(--cream); }

.btn--accent { --btn-bg: var(--amber); --btn-bd: var(--amber); --btn-fg: var(--on-amber); }
.btn--accent:hover { --btn-bg: var(--amber-soft); --btn-bd: var(--amber-soft); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--amber); --btn-bd: transparent; padding-inline: 0; border-radius: 0; }
.btn--ghost:hover { --btn-bg: transparent; --btn-fg: var(--amber-soft); text-decoration: underline; transform: none; }

.btn--block { width: 100%; }
.btn--sm { padding: .65rem 1.2rem; font-size: var(--fs-sm); }
.btn--lg { padding: 1.15rem 2.25rem; font-size: var(--fs-md); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-base);
    font-weight: 600;
    text-decoration: none;
    color: var(--amber);
}
.link-arrow::after { content: '→'; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--amber-soft); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ------------------------------------------------------------ En-tete */
/* En-tete posee SUR la page, sans fond ni bordure, jusqu'au premier
   defilement. Elle ne devient une barre pleine qu'une fois decollee. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    border: 0;
    transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck {
    background: rgba(11, 11, 12, .82);
    backdrop-filter: saturate(150%) blur(14px);
    box-shadow: 0 1px 0 rgba(242, 240, 237, .07);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--cream);
}
.brand img { height: 40px; width: auto; }
.brand--logo img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    transition: transform .3s var(--ease);
}
.brand--logo:hover img { transform: scale(1.05); }
.brand--logo .brand-name { font-size: 1.0625rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
/* Un seul mot en ambre dans le nom : c'est la marque de fabrique. */
.brand-name {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--cream);
    white-space: nowrap;
}
.brand-name em { font-style: normal; color: var(--amber); }
.brand-tagline {
    font-size: 0.625rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list li { margin: 0; }
.nav-link {
    position: relative;
    font-size: var(--fs-base);
    font-weight: 500;
    text-decoration: none;
    color: rgba(242, 240, 237, .72);
    padding-block: var(--space-3);
    transition: color .22s var(--ease);
}
.nav-link:hover { color: var(--amber); }
.nav-link.is-active { color: var(--cream); }
/* Un simple point ambre marque la page courante : pas de soulignement. */
.nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 2px;
    width: 4px; height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: var(--amber);
}

/* Le bouton du menu est lui aussi une pilule. */
.nav-toggle {
    display: none;
    width: 46px; height: 46px;
    align-items: center;
    justify-content: center;
    background: rgba(242, 240, 237, .06);
    border: 1px solid rgba(242, 240, 237, .18);
    border-radius: var(--radius-pill);
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    position: relative;
    width: 18px; height: 1.5px;
    background: var(--cream);
    transition: transform .3s var(--ease), background .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px; height: 1.5px;
    background: var(--cream);
    transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------- Bandeau localisation */
.geo-bar {
    background: var(--amber);
    color: var(--on-amber);
    font-size: var(--fs-sm);
    font-weight: 500;
    text-align: center;
    padding: var(--space-3) var(--space-4);
    min-height: 0;
}
.geo-bar[hidden] { display: none; }
.geo-bar strong { color: var(--on-amber); font-weight: 700; }
.geo-bar .geo-note { color: rgba(23, 20, 12, .7); }

/* --------------------------------------------------------------- Hero */
/* Plein ecran, texte cale a gauche et en bas de la zone de lecture :
   la photographie reste visible, le titre ne la coupe pas en deux. */
.hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: min(100vh, 900px);
    margin-top: calc(var(--header-h) * -1);
    padding-top: var(--header-h);
    background: var(--night);
    color: var(--cream);
    overflow: hidden;
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    /* Cadrage haut : le bandeau est bien plus large que haut, et une photo
       carree ou verticale y perd le tiers superieur. A 40 %, les visages
       etaient coupes au niveau de la bouche. */
    object-position: center 22%;
}
/* Voile sombre : le texte doit rester lisible quelle que soit la photo. */
.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(11, 11, 12, .9) 0%, rgba(11, 11, 12, .62) 46%, rgba(11, 11, 12, .3) 100%),
        linear-gradient(to top, rgba(11, 11, 12, .85) 0%, rgba(11, 11, 12, .1) 55%);
}
.hero--placeholder .hero-media {
    background: radial-gradient(120% 95% at 72% 28%, #3A3027 0%, #141210 48%, var(--night) 100%);
}

/* Le cadre decoratif n'existe plus dans ce theme. */
.hero-frame { display: none; }

.hero-inner {
    position: relative;
    z-index: 2;
    padding-block: clamp(5rem, 12vw, 8rem);
    max-width: 70rem;
    text-align: left;
}
.hero h1 { color: var(--cream); margin-bottom: var(--space-5); max-width: 15ch; }
.hero .eyebrow { color: var(--amber); }
.hero-text {
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    color: var(--text-soft);
    max-width: 44ch;
    margin-bottom: var(--space-7);
}
.hero .btn-row { justify-content: flex-start; }
.hero-scroll {
    position: absolute;
    bottom: var(--space-5);
    right: var(--space-6);
    left: auto;
    transform: none;
    z-index: 1;
    font-size: var(--fs-xs);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* En-tete des pages interieures : pas d'encadre, juste de l'espace.
   L'en-tete du site reste dans le flux ici, inutile de la compenser. */
.page-hero {
    background: var(--night);
    border: 0;
    padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
}
.page-hero h1 { margin-bottom: var(--space-4); max-width: 18ch; }
.page-hero .lead { max-width: 56ch; }
.page-hero--image { position: relative; background: var(--night); overflow: hidden; color: var(--cream); }
.page-hero--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero--image::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(11, 11, 12, .92), rgba(11, 11, 12, .45));
}
.page-hero--image .container { position: relative; z-index: 1; }
.page-hero--image h1 { color: var(--cream); }
.page-hero--image .lead { color: var(--text-soft); }

/* -------------------------------------------------------- Fil d'Ariane */
.breadcrumbs {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    padding-block: var(--space-4);
}
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: var(--space-2); }
.breadcrumbs li + li::before { content: '/'; color: var(--line-strong); }
.breadcrumbs a { color: var(--text-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--amber); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); }

/* ------------------------------------------------------------- Cartes */
/* Photographie montee sur un passe-partout : marge blanche, filet, legende. */
/* Pas de carte : une image, puis du texte. Aucun fond, aucune bordure,
   aucune ombre. Le survol agit sur la photographie, pas sur un cadre. */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.card-media {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--smoke);
    overflow: hidden;
    border-radius: var(--radius);
}
.card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}
.card:hover .card-media img { transform: scale(1.05); }
.card-media .badge { position: absolute; top: var(--space-4); left: var(--space-4); }

.card-body {
    padding: var(--space-5) 0 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-2);
}
.card-title { font-size: var(--fs-2xl); margin: 0; }
.card-title a { text-decoration: none; color: inherit; }
.card-title a:hover { color: var(--amber); }
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    font-size: var(--fs-base);
    color: var(--text-muted);
}
.card-meta span { display: inline-flex; align-items: center; gap: var(--space-1); }
.card-text { font-size: var(--fs-base); color: var(--text-soft); margin: var(--space-2) 0 0; }
.card-foot {
    margin-top: auto;
    padding-top: var(--space-4);
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}
.card-price { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); letter-spacing: -0.03em; color: var(--amber); }

/* Emplacement de photographie encore vide : un aplat, pas des hachures. */
.media-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    background: var(--smoke);
    color: var(--text-muted);
    font-size: var(--fs-sm);
    text-align: center;
    padding: var(--space-4);
}

/* ------------------------------------------------------------ Badges */
/* Pastilles sombres : un fond dense, un texte clair, un point de couleur. */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    background: rgba(11, 11, 12, .72);
    backdrop-filter: blur(6px);
    color: var(--cream);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.badge--disponible { color: var(--ok); }
.badge--en_cours_de_reservation { color: var(--amber); }
.badge--reserve { color: var(--info); }
.badge--adopte { color: var(--text-muted); }
.badge--solid { background: var(--amber); color: var(--on-amber); }
.badge--accent { background: var(--amber); color: var(--on-amber); }
.badge--accent::before { background: var(--on-amber); }
.badge--plain { background: transparent; border: 1px solid var(--line-strong); color: var(--text-soft); }
.badge--plain::before { display: none; }

/* --------------------------------------------------------- Alertes */
.alert {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border: 0;
    border-left: 2px solid var(--amber);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--smoke);
    color: var(--text);
    font-size: var(--fs-base);
    margin-bottom: var(--space-5);
}
.alert--success { border-left-color: var(--ok);   background: var(--ok-bg);   color: #D6F0DF; }
.alert--error   { border-left-color: var(--err);  background: var(--err-bg);  color: #FFD9D2; }
.alert--warning { border-left-color: var(--warn); background: var(--warn-bg); color: #F3E2BC; }
.alert--info    { border-left-color: var(--info); background: var(--info-bg); color: #D4E6F7; }
.alert p:last-child { margin-bottom: 0; }
.alert ul { margin-bottom: 0; }

/* -------------------------------------------------------- Formulaires */
.form { display: grid; gap: var(--space-5); }
.form-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field--full { grid-column: 1 / -1; }

.label {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text);
    letter-spacing: .01em;
}
.label .req { color: var(--err); }
.hint { font-size: var(--fs-sm); color: var(--text-muted); }

/* Champs sombres : le fond s'eclaircit au lieu de s'assombrir. */
.input, .textarea, .select {
    width: 100%;
    padding: 0.9rem 1.05rem;
    font-family: inherit;
    font-size: var(--fs-md);
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s, background .2s;
    appearance: none;
}
.input:hover, .textarea:hover, .select:hover { background: var(--smoke-2); }
.textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23E8B64C' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 10px;
    padding-right: 2.4rem;
}
.select option { background: var(--smoke); color: var(--text); }
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(232, 182, 76, .22);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
    border-color: var(--err);
    box-shadow: 0 0 0 3px rgba(255, 138, 122, .18);
}
.field-error { font-size: var(--fs-sm); color: var(--err); font-weight: 500; }

.check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--fs-base);
    line-height: 1.5;
    cursor: pointer;
}
.check input[type="checkbox"], .check input[type="radio"] {
    flex: 0 0 auto;
    width: 1.1rem; height: 1.1rem;
    margin-top: .2rem;
    accent-color: var(--amber);
}
.check-group { display: flex; flex-direction: column; gap: var(--space-3); }
.check-group--inline { flex-direction: row; flex-wrap: wrap; gap: var(--space-5); }

.radio-pills { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.radio-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.65rem 1.2rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text);
    font-size: var(--fs-base);
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.radio-pill:hover { background: var(--smoke-2); }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill:has(input:checked) { background: var(--amber); border-color: var(--amber); color: var(--on-amber); font-weight: 600; }
.radio-pill:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }

.file-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
}
.file-field input[type="file"] { font-size: var(--fs-sm); color: var(--text-soft); }
.file-field input[type="file"]::file-selector-button {
    background: var(--smoke-2); color: var(--text); border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill); padding: .5rem 1rem; margin-right: var(--space-3);
    font: inherit; font-size: var(--fs-sm); cursor: pointer;
}
.file-field.is-dragover { border-color: var(--amber); background: var(--warn-bg); }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-2);
}

fieldset { border: 0; padding: 0; margin: 0 0 var(--space-6); }
legend {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    color: var(--text);
    padding: 0;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
/* Lettre de section du formulaire de demande d'adoption */
.section-letter {
    display: grid;
    place-items: center;
    width: 2rem; height: 2rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--smoke);
    color: var(--amber);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 700;
}

/* ------------------------------------------------- Chiot: fiche detaillee */
.puppy-layout {
    display: grid;
    gap: clamp(2rem, 5vw, var(--space-8));
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
}

.gallery { display: flex; flex-direction: column; gap: var(--space-3); }
.gallery-main {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--smoke-2);
    border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main button {
    position: absolute;
    inset: 0;
    width: 100%;
    background: transparent;
    border: 0;
    cursor: zoom-in;
    padding: 0;
}
.gallery-zoom-hint {
    position: absolute;
    right: var(--space-3); bottom: var(--space-3);
    background: rgba(11, 11, 12, .82);
    color: var(--cream);
    font-size: var(--fs-xs);
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .35rem .7rem;
    border-radius: var(--radius-pill);
    pointer-events: none;
}
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: var(--space-2);
}
.gallery-thumb {
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    padding: 0;
    background: var(--smoke-2);
    cursor: pointer;
    transition: border-color .2s, opacity .2s;
    opacity: .75;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-active { border-color: var(--amber); opacity: 1; box-shadow: 0 0 0 1px var(--amber); }

/* Les badges d'une carte tiennent sur une ligne et gardent leur largeur :
   seuls, ils s'étireraient sur toute la colonne de .card-body. */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

/* Montant de réservation d'une place, mis en avant au-dessus du formulaire. */
.deposit-callout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    text-align: center;
    margin: 0 auto var(--space-6);
    padding: var(--space-5) var(--space-4);
    max-width: 30rem;
    background: var(--smoke-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
}
.deposit-label {
    font-size: var(--fs-xs);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.deposit-amount {
    font-family: var(--font-display);
    font-size: 2.4rem;
    line-height: 1.1;
    color: var(--amber);
}
.deposit-callout .note-small { margin-top: var(--space-2); }

/* ------------------------------------------- Places d'une portée */
.spots {
    margin-top: var(--space-5);
    padding: var(--space-4);
    background: var(--smoke-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.spots--full { opacity: .75; }
.spots-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2);
}
.spots-head strong { color: var(--amber); }
.spots-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: var(--space-3) 0 0;
    padding: 0;
}
.spots-dot {
    width: 100%;
    max-width: 34px;
    height: 8px;
    flex: 1 1 18px;
    border-radius: 99px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
}
.spots-dot.is-taken { background: var(--amber); border-color: var(--amber); }

/* Vignette d'album : pleine largeur de sa colonne, pas la petite pastille
   de la galerie d'un chiot. */
.gallery-thumb--tile {
    width: 100%;
    aspect-ratio: 4 / 3;
    opacity: 1;
    border-radius: var(--radius-sm);
}
.gallery-thumb--tile:hover { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.gallery-thumb--tile:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Vidéos du chiot, sous la galerie */
.puppy-videos { margin-top: var(--space-6); display: grid; gap: var(--space-4); }
.videos-title {
    font-size: var(--fs-lg);
    margin: 0;
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--line);
}
.video-frame { margin: 0; }
.video-frame video {
    width: 100%;
    max-height: 70vh;
    background: #1C1012;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.video-frame figcaption {
    margin-top: var(--space-2);
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.puppy-summary { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
.puppy-title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-3);
}
.puppy-price {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    color: var(--amber);
}
.puppy-price-note { font-size: var(--fs-sm); color: var(--text-muted); }

.spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: var(--space-5) 0;
    border-top: 1px solid var(--line);
}
.spec {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
    padding-right: var(--space-4);
}
.spec:nth-child(odd) { border-right: 1px solid var(--line); padding-right: var(--space-4); }
.spec:nth-child(even) { padding-left: var(--space-4); }
.spec-label {
    display: block;
    font-size: var(--fs-xs);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.spec-value { font-size: var(--fs-base); color: var(--text); font-weight: 500; }
.spec--full { grid-column: 1 / -1; border-right: 0 !important; padding-left: 0 !important; padding-right: 0; }

.info-panel {
    background: var(--smoke-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-5);
}
.info-panel h3 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.info-panel + .info-panel { margin-top: var(--space-4); }

.health-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.health-list li { display: flex; gap: var(--space-3); margin: 0; font-size: var(--fs-base); }
.health-list .health-key {
    flex: 0 0 9rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-soft);
}

/* ------------------------------------------------------------ Parents */
.parent-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.parent-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.parent-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.parent-card-media { background: var(--smoke-2); }
.parent-card-media img { width: 100%; height: 100%; object-fit: cover; min-height: 210px; }
.parent-card-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.parent-role {
    font-size: var(--fs-xs);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--amber);
    font-weight: 600;
}
.parent-card h3 { margin: 0; font-size: var(--fs-xl); }
.parent-facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* ------------------------------------------------------- Mise en avant */
.feature-split {
    display: grid;
    gap: clamp(2rem, 5vw, var(--space-8));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}
.feature-split--reverse > :first-child { order: 2; }
.feature-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--smoke-2);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media--wide { aspect-ratio: 4 / 3; }
/* Le passe-partout n'existe plus : l'image est nue. */
.feature-media--framed { background: var(--smoke); padding: 0; border: 0; box-shadow: none; }
.feature-media--offset::after { display: none; }

.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-6); }
.value-list li { margin: 0; display: flex; gap: var(--space-5); align-items: baseline; }
/* Un chiffre nu, sans pastille ni cercle. */
.value-num {
    flex: 0 0 auto;
    width: auto; height: auto;
    display: block;
    border: 0;
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--amber);
}
.value-body h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.value-body p { font-size: var(--fs-base); color: var(--text-soft); margin: 0; }

/* Pas de plaque : un chiffre ambre tres gros, un titre, un texte. */
.pillar {
    position: relative;
    padding: var(--space-5) 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    height: 100%;
    transition: border-color .3s var(--ease);
}
.pillar:hover { border-top-color: var(--amber); }
.pillar-icon {
    width: auto; height: auto;
    display: block;
    margin-bottom: var(--space-5);
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--amber);
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}
.pillar h3 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.pillar p { font-size: var(--fs-base); color: var(--text-soft); margin: 0; }

/* ------------------------------------------------------------- Avis */
.stars { display: inline-flex; gap: 2px; font-size: 1rem; line-height: 1; color: var(--line-strong); }
.stars .star.is-filled { color: var(--amber); }

.review-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    height: 100%;
}
.review-card blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    line-height: 1.5;
    color: var(--text);
}
.review-meta { margin-top: auto; display: flex; align-items: center; gap: var(--space-4); }
.review-photo {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    flex: 0 0 auto;
}
/* Initiale affichée quand la famille n'a pas de photo de profil */
.review-photo--initial {
    display: grid;
    place-items: center;
    background: var(--smoke);
    color: var(--amber);
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1;
}
/* Photographie du chiot dans son nouveau foyer */
.review-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    cursor: zoom-in;
    transition: transform .4s var(--ease);
}
.review-image:hover { transform: scale(1.01); }
.review-author { font-weight: 600; color: var(--text); }
.review-origin { font-size: var(--fs-sm); color: var(--text-muted); }
.review-source {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    letter-spacing: .04em;
}

.rating-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-6);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.rating-score {
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    line-height: 1;
    color: var(--amber);
}
.rating-bars { flex: 1 1 260px; display: grid; gap: var(--space-2); }
.rating-bar { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); }
.rating-bar-track {
    flex: 1;
    height: 6px;
    border-radius: var(--radius-pill);
    background: var(--smoke);
    overflow: hidden;
}
.rating-bar-fill { height: 100%; background: var(--amber); border-radius: inherit; }

/* -------------------------------------------------------------- Blog */
.post-card .card-media { aspect-ratio: 16 / 10; }
.post-category {
    font-size: var(--fs-xs);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--amber);
    font-weight: 600;
    text-decoration: none;
}
.post-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.post-featured-media { min-height: 340px; background: var(--smoke-2); }
.post-featured-media img { width: 100%; height: 100%; object-fit: cover; }
.post-featured-body { padding: clamp(1.5rem, 4vw, var(--space-7)); display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); }

.article-head { max-width: 50rem; }
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-5);
}
.article-figure { margin: 0 0 var(--space-7); border-radius: var(--radius); overflow: hidden; }
.article-figure img { width: 100%; max-height: 520px; object-fit: cover; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-7); }
.share-row a, .share-row button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: .5rem .9rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--amber);
    font-size: var(--fs-sm);
    text-decoration: none;
    cursor: pointer;
}
.share-row a:hover, .share-row button:hover { background: var(--amber); color: var(--on-amber); border-color: var(--amber); }

.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: var(--space-5) 0 0; }
.tag-list li { margin: 0; }
.tag {
    display: inline-block;
    padding: .25rem .7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    color: var(--text-soft);
    background: var(--smoke-2);
}

/* ----------------------------------------------------------- Filtres */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: var(--space-7);
}
.filter-bar .field { flex: 1 1 170px; gap: var(--space-1); }
.filter-bar .label { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.filter-count { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--space-5); }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.chip {
    display: inline-block;
    padding: .45rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-soft);
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--amber); color: var(--amber); }
.chip.is-active { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }

/* -------------------------------------------------------- Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-8); }
.pagination a, .pagination span {
    min-width: 2.5rem;
    padding: .5rem .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-soft);
    font-size: var(--fs-sm);
    text-decoration: none;
}
.pagination a:hover { border-color: var(--amber); color: var(--amber); }
.pagination .is-current { background: var(--amber); border-color: var(--amber); color: var(--on-amber); font-weight: 600; }
.pagination .is-gap { border-color: transparent; background: transparent; }

/* -------------------------------------------- Deroule de la reservation */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.how-step { display: flex; gap: var(--space-5); margin: 0; align-items: flex-start; }
.how-step-num {
    flex: 0 0 auto;
    width: 2.75rem; height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--amber);
    color: var(--on-amber);
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1;
}
.how-step h2 { font-size: var(--fs-xl); margin: 0 0 var(--space-2); }
.how-step p { margin: 0; color: var(--text-soft); }
@media (max-width: 560px) {
    .how-step { gap: var(--space-4); }
    .how-step-num { width: 2.25rem; height: 2.25rem; font-size: 1rem; }
}

/* ------------------------------------------------------------- Etapes */
.steps {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-7);
    counter-reset: step;
}
.steps li {
    flex: 1 1 140px;
    margin: 0;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    color: var(--text-muted);
    counter-increment: step;
}
.steps li::before {
    content: counter(step);
    display: inline-grid;
    place-items: center;
    width: 1.5rem; height: 1.5rem;
    margin-right: var(--space-2);
    border-radius: 50%;
    background: var(--smoke);
    color: var(--text);
    font-size: var(--fs-xs);
    font-weight: 700;
}
.steps li.is-current {
    border-color: var(--amber);
    background: var(--surface);
    color: var(--amber);
    font-weight: 600;
}
.steps li.is-current::before { background: var(--amber); color: var(--on-amber); }
.steps li.is-done { color: var(--amber); }
.steps li.is-done::before { content: '✓'; background: var(--amber); color: var(--on-amber); }

/* ------------------------------------------------- Encadres recapitulatifs */
.summary-box {
    display: grid;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.summary-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-base);
}
.summary-row:last-child { border-bottom: 0; padding-bottom: 0; }
.summary-row dt { color: var(--text-muted); font-size: var(--fs-sm); }
.summary-row dd { margin: 0; font-weight: 500; text-align: right; }
.summary-total { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--amber); }

.reference-box {
    display: inline-flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-4) var(--space-5);
    background: var(--amber);
    color: var(--on-amber);
    border-radius: var(--radius);
}
.reference-box .reference-label {
    font-size: var(--fs-xs);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--amber-soft);
}
.reference-box .reference-value {
    font-family: var(--font-body);
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: .08em;
}

.bank-table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.bank-table th, .bank-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); text-align: left; }
.bank-table th { width: 12rem; color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600; }
.bank-table td { font-weight: 500; }
.bank-table .iban { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: .06em; }
.copy-btn {
    margin-left: var(--space-3);
    padding: .2rem .55rem;
    font-size: var(--fs-xs);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    color: var(--amber);
}
.copy-btn:hover { background: var(--amber); color: var(--on-amber); }

/* ---------------------------------------------------------- Accordeon */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    width: 100%;
    padding: var(--space-5) 0;
    background: transparent;
    border: 0;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    color: var(--text);
    text-align: left;
    cursor: pointer;
}
.accordion-trigger::after {
    content: '+';
    flex: 0 0 auto;
    font-family: var(--font-body);
    font-size: var(--fs-xl);
    color: var(--amber);
    transition: transform .3s var(--ease);
}
.accordion-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion-panel { padding-bottom: var(--space-5); color: var(--text-soft); max-width: 62ch; }
.accordion-panel[hidden] { display: none; }

/* ---------------------------------------------------------- Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    background: rgba(20, 28, 22, .94);
    padding: var(--space-5);
}
.lightbox[hidden] { display: none; }
.lightbox-img {
    max-width: min(1200px, 94vw);
    max-height: 86vh;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.lightbox-caption {
    color: rgba(255, 255, 255, .8);
    font-size: var(--fs-sm);
    text-align: center;
    margin-top: var(--space-4);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
}
.lightbox-close { top: var(--space-5); right: var(--space-5); }
.lightbox-prev { left: var(--space-5); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-5); top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, .18); }

/* ------------------------------------------------------ Pied de page */
.site-footer {
    position: relative;
    background: var(--bg-alt);
    color: var(--text-soft);
    border: 0;
    padding-block: var(--space-8) var(--space-5);
    font-size: var(--fs-base);
}
.footer-grid {
    display: grid;
    gap: var(--space-7);
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
}
.site-footer h3 {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0;
    margin-bottom: var(--space-5);
    border: 0;
}
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.footer-list li { margin: 0; }
/* Lieu de l'elevage, glisse sous le numero de telephone : present sans
   concurrencer le numero lui-meme, qui reste la ligne cliquable. */
.footer-place { display: inline-block; margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--text-muted); }
.footer-brand .brand-name {
    color: var(--cream);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    letter-spacing: -0.035em;
    line-height: 1.05;
    display: block;
    white-space: normal;
}
.footer-brand p { margin-top: var(--space-4); max-width: 34rem; }
.footer-socials { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.footer-socials a {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    color: var(--text-soft);
    transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.footer-socials a:hover {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--on-amber);
    transform: translateY(-2px);
}
.footer-socials svg { display: block; }

/* Réseaux sociaux listés avec leur nom (page Contact) */
.social-inline {
    list-style: none;
    padding: 0;
    margin: var(--space-2) 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
}
.social-inline li { margin: 0; }
.social-inline a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--amber);
    text-decoration: none;
    font-size: var(--fs-base);
    transition: color .2s var(--ease);
}
.social-inline a:hover { color: var(--amber-soft); text-decoration: underline; }
.social-inline svg { flex: 0 0 auto; }
.footer-bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-5);
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-4);
    font-size: var(--fs-sm);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* ------------------------------------------------------ Bandeau cookies */
/* Ancre en bas a droite plutot qu'au centre : au centre, le bandeau
   recouvrait le bouton principal du hero a la premiere visite. */
.cookie-banner {
    position: fixed;
    left: auto;
    right: var(--space-5);
    bottom: var(--space-5);
    z-index: 250;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    width: min(420px, calc(100vw - var(--space-5) * 2));
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: var(--fs-sm);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 260px; margin: 0; color: var(--text-soft); }

/* ---------------------------------------------------------- Divers */
.empty-state {
    padding: clamp(2.5rem, 6vw, var(--space-8));
    text-align: center;
    background: var(--bg-alt);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}
.empty-state h3 { margin-bottom: var(--space-3); }
.empty-state p { max-width: 42rem; margin-inline: auto; color: var(--text-soft); }

.contact-aside { display: grid; gap: var(--space-5); }
.contact-item { display: flex; gap: var(--space-4); }
.contact-item .label { margin: 0; }
.contact-item a { font-size: var(--fs-md); }

.note-small { font-size: var(--fs-sm); color: var(--text-muted); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mb-0 { margin-bottom: 0; }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

/* Tant que le bandeau cookies est affiche, le hero remonte son contenu :
   sans cela, a la premiere visite, le bandeau recouvre le bouton
   principal sur tous les ecrans en dessous du grand format. */
/* Le bandeau cookies est en position fixe et recouvrirait les boutons du
   hero a la premiere visite. Ajouter une marge ne suffit pas : le hero
   grandirait d'autant et la reserve passerait sous la ligne de flottaison.
   On retranche donc la hauteur du bandeau — mesuree et publiee dans
   --cookie-h par site.js — de la hauteur du hero lui-meme. Sans
   JavaScript la variable vaut 0 et rien ne change. */
@media (max-width: 1240px) {
    .hero { min-height: calc(min(100vh, 900px) - var(--cookie-h, 0px)); }
    body:has(.cookie-banner:not([hidden])) .hero-scroll { display: none; }
}

/* ------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .puppy-layout { grid-template-columns: 1fr; }
    .puppy-summary { position: static; }
}

/* Le nom « Élevage Manoir du Teckel » est long : le menu deroulant prend le
   relais plus tot qu'avec un nom court, avant que la navigation ne se casse
   sur deux lignes. */
@media (max-width: 1180px) {
    .nav-toggle { display: inline-flex; }
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--space-5);
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .nav.is-open { display: flex; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list li { border-bottom: 1px solid var(--line); }
    .nav-link { display: block; padding: var(--space-4) 0; font-size: var(--fs-md); }
    .nav-link::after { display: none; }
    .nav .btn { margin-top: var(--space-5); }
}

@media (max-width: 900px) {
    :root { --header-h: 68px; }

    .nav-toggle { display: inline-flex; }
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--space-5);
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .nav.is-open { display: flex; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list li { border-bottom: 1px solid var(--line); }
    .nav-link { display: block; padding: var(--space-4) 0; font-size: var(--fs-lg); }
    .nav-link::after { display: none; }
    .nav .btn { margin-top: var(--space-5); }

    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .feature-split, .parent-grid, .post-featured, .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
    .feature-split--reverse > :first-child { order: 0; }
    .post-featured-media { min-height: 240px; aspect-ratio: 16/10; }
    .feature-media { aspect-ratio: 4/3; }
    .parent-card { grid-template-columns: 1fr; }
    .parent-card-media img { min-height: 220px; max-height: 320px; }
    .spec-list { grid-template-columns: 1fr; }
    .spec:nth-child(odd) { border-right: 0; padding-right: 0; }
    .spec:nth-child(even) { padding-left: 0; }
    .rating-summary { flex-direction: column; align-items: flex-start; }
    .health-list li { flex-direction: column; gap: var(--space-1); }
    .health-list .health-key { flex: none; }
    .summary-row dd { text-align: left; }
    .bank-table th { width: auto; display: block; padding-bottom: 0; border: 0; }
    .bank-table td { display: block; padding-top: var(--space-1); }
    .bank-table tr { display: block; border-bottom: 1px solid var(--line); padding-block: var(--space-2); }
    .bank-table td, .bank-table th { border-bottom: 0; }
}

@media (max-width: 560px) {
    body { font-size: var(--fs-base); }
    .container { padding-inline: var(--space-4); }
    .btn { width: 100%; }
    .btn-row { flex-direction: column; align-items: stretch; }
    .btn-row .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
    .lightbox-prev { left: var(--space-2); }
    .lightbox-next { right: var(--space-2); }
    .card-body { padding: var(--space-4) 0 0; }
    .review-card, .summary-box, .rating-summary { padding: var(--space-5); }
    .pillar { padding: var(--space-4) 0 0; }

    /* Le nom doit tenir sur une ligne a cote du bouton de menu. */
    .brand-name { font-size: 1.0625rem; }
    .brand-tagline { font-size: 0.5rem; letter-spacing: .16em; }

    /* Les titres restent gros, mais sans deborder de l'ecran. */
    h1 { font-size: clamp(2.25rem, 10.5vw, 3rem); }
    h2 { font-size: clamp(1.875rem, 8.5vw, 2.5rem); }
    .hero { min-height: calc(min(92vh, 720px) - var(--cookie-h, 0px)); }
    .hero-inner { padding-block: clamp(2.5rem, 9vw, 4rem); }
    .strip > * { flex-basis: 78vw; }

    /* En colonne unique, un portrait 3/4 oblige a trop defiler :
       on repasse les vignettes en paysage. */
    .grid .card-media { aspect-ratio: 4 / 3; }

    /* Bandeau compact : sur un telephone, un pave de quatre lignes
       recouvrait les deux boutons du hero. */
    .cookie-banner {
        right: var(--space-3);
        bottom: var(--space-3);
        width: calc(100vw - var(--space-3) * 2);
        padding: var(--space-4);
        gap: var(--space-3);
        font-size: var(--fs-xs);
    }
    .cookie-banner p { flex: 1 1 100%; }
    .cookie-banner .btn { width: auto; padding: .55rem 1.1rem; }
}

/* ---------------------------------------------------------- Mouvement */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .card:hover { transform: none; }
}

/* ------------------------------------------------------- Apparition */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- Impression */
@media print {
    .site-header, .site-footer, .cookie-banner, .geo-bar, .btn, .share-row { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    a { text-decoration: none; color: #000; }
}

/* ------------------------------------- Theme Manoir du Teckel — retouches */

/* Defilement horizontal des chiots (accueil). Le debordement est voulu :
   la bande sort des marges du conteneur et se poursuit hors de l'ecran. */
.strip-wrap { position: relative; }
.strip {
    display: flex;
    gap: var(--space-5);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-5);
    margin-inline: calc(var(--space-5) * -1);
    padding-inline: var(--space-5);
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}
.strip::-webkit-scrollbar { height: 3px; }
.strip::-webkit-scrollbar-track { background: var(--line); }
.strip::-webkit-scrollbar-thumb { background: var(--line-strong); }
.strip > * { flex: 0 0 min(80vw, 360px); scroll-snap-align: start; }
.strip-hint {
    margin-top: var(--space-4);
    font-size: var(--fs-xs);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Bande d'image pleine largeur, sans texte : une respiration. */
.bleed {
    height: clamp(300px, 56vh, 620px);
    background: var(--smoke);
    position: relative;
    overflow: hidden;
}
.bleed img { width: 100%; height: 100%; object-fit: cover; }
.bleed::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 11, 12, .55), rgba(11, 11, 12, .1) 40%, rgba(11, 11, 12, .55));
}
.bleed .media-empty { position: absolute; inset: 0; }

/* Bloc final de l'accueil : titre a gauche, boutons a droite. */
.cta-split {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-7);
    align-items: end;
}
.cta-split .section-head,
.cta-split .lead { max-width: 46ch; }
.cta-split h2 { max-width: 16ch; }
.section--feature .btn--outline { --btn-fg: var(--on-amber); --btn-bd: rgba(23, 20, 12, .35); }
.section--feature .btn--outline:hover { --btn-bg: var(--on-amber); --btn-fg: var(--amber); --btn-bd: var(--on-amber); }
@media (max-width: 760px) { .cta-split { grid-template-columns: 1fr; align-items: start; } }

/* ===================================================== Verre liquide ======
   L'en-tete et le menu deroulant ne masquent plus la photographie : ils la
   laissent passer, floutee et assombrie juste ce qu'il faut pour que le nom
   et les liens restent lisibles, y compris sur un cliche clair.

   Trois ingredients, toujours les memes :
     - un fond tres peu opaque, en degrade (le verre est plus dense en haut) ;
     - un flou de l'arriere-plan, avec un gain de saturation : sans lui, le
       flou delave les couleurs et le resultat parait gris ;
     - un filet clair sur l'arete superieure, qui imite le reflet d'une
       tranche de verre et detache la barre de ce qu'elle recouvre.

   Place en fin de fichier, apres les requetes de media : ce sont ces regles
   qui doivent l'emporter sur le fond opaque defini plus haut. */

.site-header {
    background: linear-gradient(to bottom, rgba(26, 23, 20, .46), rgba(11, 11, 12, .28));
    -webkit-backdrop-filter: saturate(170%) blur(18px);
    backdrop-filter: saturate(170%) blur(18px);
    box-shadow: inset 0 1px 0 rgba(242, 240, 237, .10);
    transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

/* Des que la page defile, le verre s'epaissit : le texte passe alors devant
   n'importe quelle section, claire comme sombre. */
.site-header.is-stuck {
    background: linear-gradient(to bottom, rgba(26, 23, 20, .64), rgba(11, 11, 12, .46));
    -webkit-backdrop-filter: saturate(185%) blur(26px);
    backdrop-filter: saturate(185%) blur(26px);
    box-shadow:
        inset 0 1px 0 rgba(242, 240, 237, .13),
        0 1px 0 rgba(0, 0, 0, .3),
        0 12px 32px rgba(0, 0, 0, .22);
}

/* Le bouton du menu est une petite piece du meme verre. */
.nav-toggle {
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    background: rgba(242, 240, 237, .08);
    border-color: rgba(242, 240, 237, .22);
    box-shadow: inset 0 1px 0 rgba(242, 240, 237, .14);
}
.nav-toggle:hover { background: rgba(242, 240, 237, .14); }

/* Menu deroulant : meme matiere, en plus epais — on lit sept liens par-dessus
   la page, il faut un peu plus de corps que pour une simple barre. */
@media (max-width: 1180px) {
    .nav {
        background: linear-gradient(to bottom, rgba(26, 23, 20, .74), rgba(11, 11, 12, .66));
        -webkit-backdrop-filter: saturate(185%) blur(30px);
        backdrop-filter: saturate(185%) blur(30px);
        border-bottom: 1px solid rgba(242, 240, 237, .14);
        box-shadow:
            inset 0 1px 0 rgba(242, 240, 237, .12),
            0 24px 48px rgba(0, 0, 0, .45);
    }
    .nav-list li { border-bottom-color: rgba(242, 240, 237, .10); }
}

/* Navigateur sans flou d'arriere-plan (Firefox ancien, certains navigateurs
   mobiles) : le verre n'existe pas, on retombe sur un fond franc plutot que
   sur un texte illisible pose sur la photographie. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header { background: rgba(11, 11, 12, .82); }
    .site-header.is-stuck { background: rgba(11, 11, 12, .94); }
    .nav-toggle { background: rgba(242, 240, 237, .1); }
    @media (max-width: 1180px) {
        .nav { background: var(--bg); }
    }
}

/* Un element qui floute son arriere-plan devient « racine » pour tout ce
   qu'il contient : tant que l'en-tete floute, le menu deroulant loge a
   l'interieur n'a plus rien a flouter — la page defilait derriere lui, nette
   et parfaitement lisible, par-dessus les liens.

   On rend donc la barre au repos le temps que le menu est ouvert : elle se
   contente alors d'un fond dense, et c'est le panneau, bien plus grand, qui
   porte le verre. */
@media (max-width: 1180px) {
    .site-header:has(.nav.is-open) {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: linear-gradient(to bottom, rgba(26, 23, 20, .94), rgba(18, 16, 15, .9));
    }
    .nav {
        background: linear-gradient(to bottom, rgba(24, 21, 19, .82), rgba(11, 11, 12, .76));
    }
}
