/* =====================================================================
   SamaVeto — feuille de style globale
   Direction validée : fond papier chaud, vert profond dominant,
   touche d'ocre, titres en serif (Fraunces), texte en Hanken Grotesk.
   Mobile-first : les styles de base visent le mobile, les media queries
   adaptent ensuite aux écrans plus larges.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Hanken+Grotesk:wght@400;500;600&display=swap');

:root {
    --vert: #00624F;
    --vert-clair: #007860;
    --vert-tint: #E7F0EC;
    --ocre: #C2772E;
    --ocre-tint: #F6E9DA;
    --ocre-btn: #E89B43;
    --ocre-btn-texte: #3A2208;
    --papier: #FBF8F2;
    --carte: #FFFFFF;
    --encre: #1C1A17;
    --muted: #6F685E;
    --faible: #9A9389;
    --bord: #ECE6DB;

    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --rayon: 14px;
    --rayon-sm: 10px;
    --largeur: 1040px;
}

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

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

body {
    margin: 0;
    background: var(--papier);
    color: var(--encre);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0; }

a { color: var(--vert); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

.container {
    width: 100%;
    max-width: var(--largeur);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- En-tête ---------- */
.site-header {
    border-bottom: 1px solid var(--bord);
    background: var(--papier);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.logo-lockup { display: inline-flex; align-items: center; gap: 9px; }
.logo-lockup .mark { height: 34px; width: auto; display: block; }
.logo-lockup .wordmark { height: 21px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 18px; font-size: 14.5px; }
.site-nav a { color: var(--encre); font-weight: 500; }
.site-nav a:hover { color: var(--vert); text-decoration: none; }
/* Pastille « bientôt » pour un item de nav à venir (composant réutilisable).
   Conservée volontairement même sans markup actif : les prochains modules
   (comptes, carnet…) la réutiliseront via <span class="bientot">…</span>. */
.site-nav .bientot { color: var(--faible); font-weight: 400; cursor: default; display: none; align-items: center; gap: 5px; }
.site-nav .bientot::after { content: "bientôt"; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; background: var(--bord); color: var(--muted); padding: 2px 6px; border-radius: 20px; }

/* ---------- Pied de page ---------- */
.site-footer {
    border-top: 1px solid var(--bord);
    margin-top: 56px;
    color: var(--muted);
    font-size: 13.5px;
}
.site-footer .container { padding-top: 24px; padding-bottom: 32px; }
.site-footer .footer-brand { font-family: var(--serif); color: var(--vert); font-size: 16px; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--sans); font-size: 15px; font-weight: 500;
    padding: 11px 18px; border-radius: var(--rayon-sm);
    border: 1px solid transparent; cursor: pointer; text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primaire { background: var(--vert); color: #fff; }
.btn-primaire:hover { background: #00503F; color: #fff; }
.btn-ocre { background: var(--ocre-btn); color: var(--ocre-btn-texte); }
.btn-ocre:hover { background: #DE8C2E; }
.btn-ligne { background: transparent; color: var(--vert); border-color: var(--vert); }
.btn-ligne:hover { background: var(--vert-tint); }

/* ---------- Accroche / hero ---------- */
.eyebrow {
    display: inline-block; font-size: 11.5px; letter-spacing: .07em;
    text-transform: uppercase; color: var(--ocre); font-weight: 600;
    margin-bottom: 12px;
}
.hero { padding: 40px 0 8px; }
.hero h1 { font-size: 32px; max-width: 16ch; margin-bottom: 14px; }
.hero p.lede { font-size: 17px; color: var(--muted); max-width: 52ch; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cartes d'accès (accueil) ---------- */
.acces-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 36px 0 8px; }
.acces-carte {
    display: flex; align-items: center; gap: 14px;
    background: var(--carte); border: 1px solid var(--bord);
    border-radius: var(--rayon); padding: 16px;
    color: var(--encre);
}
a.acces-carte:hover { border-color: var(--vert); text-decoration: none; }
.acces-carte .ico {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.acces-carte .ico.vert { background: var(--vert-tint); color: var(--vert); }
.acces-carte .ico.ocre { background: var(--ocre-tint); color: var(--ocre); }
.acces-carte .txt b { display: block; font-size: 15.5px; font-weight: 600; }
.acces-carte .txt span { display: block; font-size: 13px; color: var(--muted); }
.acces-carte.inactif { opacity: .72; }
.tag-bientot { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; background: var(--bord); color: var(--muted); padding: 3px 8px; border-radius: 20px; margin-left: auto; flex: 0 0 auto; }

/* ---------- Panneau carnet ---------- */
.panneau-carnet {
    background: var(--vert); color: #fff; border-radius: 18px;
    padding: 24px; margin: 40px 0 8px;
    display: flex; align-items: center; gap: 18px;
}
.panneau-carnet h2 { color: #fff; font-size: 21px; margin-bottom: 6px; }
.panneau-carnet p { color: #BFE0D4; font-size: 14px; margin: 0 0 16px; }
.panneau-carnet .qr { font-size: 60px; color: #2C7C68; flex: 0 0 auto; }

/* ---------- Fil d'ariane ---------- */
.fil { font-size: 13px; color: var(--muted); padding: 24px 0 0; }
.fil a { color: var(--muted); }
.fil a:hover { color: var(--vert); }

/* ---------- Liste des races ---------- */
.section-intro { padding: 32px 0 4px; }
.section-intro h1 { font-size: 28px; margin-bottom: 10px; }
.section-intro p { color: var(--muted); max-width: 56ch; margin: 0; }

.races-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 28px 0; }
.race-carte {
    background: var(--carte); border: 1px solid var(--bord);
    border-radius: var(--rayon); overflow: hidden; color: var(--encre);
    display: flex; flex-direction: column;
}
a.race-carte:hover { border-color: var(--vert); text-decoration: none; }
.race-carte .vignette {
    aspect-ratio: 16 / 9; background: var(--vert-tint);
    display: flex; align-items: center; justify-content: center;
    color: var(--vert); font-size: 34px;
}
.race-carte .corps { padding: 14px 16px; }
.race-carte h3 { font-size: 18px; margin-bottom: 4px; }
.race-carte .espece { font-size: 12.5px; color: var(--ocre); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.race-carte .meta { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Fiche race ---------- */
.fiche-tete { padding: 8px 0 4px; }
.fiche-tete .espece { font-size: 12.5px; color: var(--ocre); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.fiche-tete h1 { font-size: 32px; margin: 6px 0 0; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0; }
.stat { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon-sm); padding: 12px 14px; }
.stat .label { font-size: 12px; color: var(--muted); display: block; }
.stat .valeur { font-size: 16px; font-weight: 600; margin-top: 2px; display: block; }

.bloc { margin: 30px 0; }
.bloc h2 { font-size: 20px; margin-bottom: 12px; }
.bloc p { margin: 0 0 12px; }

.liste-sante { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.liste-sante li { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon-sm); padding: 12px 14px; }
.liste-sante li b { display: block; font-weight: 600; margin-bottom: 2px; }
.liste-sante li span { font-size: 14px; color: var(--muted); }

/* Avertissement contenu santé à valider */
.avert-sante {
    display: flex; align-items: flex-start; gap: 9px;
    background: var(--ocre-tint); border: 1px solid #EAD3B4;
    border-radius: var(--rayon-sm); padding: 10px 13px;
    font-size: 13px; color: #6B4A1C; margin-bottom: 14px;
}
.avert-sante i { font-size: 17px; flex: 0 0 auto; margin-top: 1px; }

.vide { color: var(--muted); font-style: italic; }

/* ---------- Écrans plus larges ---------- */
@media (min-width: 720px) {
    .hero { padding: 64px 0 16px; }
    .site-nav .bientot { display: inline-flex; }
    .hero h1 { font-size: 44px; }
    .acces-grid { grid-template-columns: repeat(3, 1fr); }
    .acces-carte { flex-direction: column; align-items: flex-start; min-height: 150px; }
    .tag-bientot { margin-left: 0; }
    .races-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .fiche-tete h1 { font-size: 40px; }
}

/* =====================================================================
   Annuaire vétérinaire (cliniques + vétérinaires)
   Composants propres au module — réutilisent les variables existantes.
   ===================================================================== */

/* ---------- Barre de recherche ---------- */
.annu-recherche {
    display: flex; flex-direction: column; gap: 14px;
    background: var(--carte); border: 1px solid var(--bord);
    border-radius: var(--rayon); padding: 16px;
    margin: 24px 0 8px;
}
.annu-recherche .champ { display: flex; flex-direction: column; gap: 5px; }
.annu-recherche .champ label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.annu-recherche select {
    font-family: var(--sans); font-size: 15px; color: var(--encre);
    background: var(--papier); border: 1px solid var(--bord);
    border-radius: var(--rayon-sm); padding: 10px 12px; width: 100%;
}
.annu-recherche select:focus { outline: 2px solid var(--vert-tint); border-color: var(--vert); }
.annu-recherche .champ-case {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 14.5px; color: var(--encre); cursor: pointer; user-select: none;
}
.annu-recherche .champ-case input { width: 18px; height: 18px; accent-color: var(--vert); }

/* ---------- Grille de résultats ---------- */
.annu-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 16px 0 0; }
.annu-carte {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--carte); border: 1px solid var(--bord);
    border-radius: var(--rayon); padding: 16px; color: var(--encre);
}
a.annu-carte:hover { border-color: var(--vert); text-decoration: none; }
.annu-carte .vignette {
    flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--vert-tint); color: var(--vert);
}
.annu-carte .vignette.ocre { background: var(--ocre-tint); color: var(--ocre); }
.annu-carte .corps { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.annu-carte h3 { font-size: 17px; margin: 0; }
.annu-carte .espece { font-size: 12px; color: var(--ocre); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.annu-carte .meta { font-size: 13px; color: var(--muted); }

/* ---------- Lieu (ville/adresse avec épingle) ---------- */
.lieu { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.lieu svg { flex: 0 0 auto; color: var(--vert); }

/* ---------- Badge « se déplace à domicile » ---------- */
.badge-domicile {
    display: inline-flex; align-items: center; gap: 6px; width: fit-content;
    font-size: 12.5px; font-weight: 500; color: var(--vert);
    background: var(--vert-tint); border-radius: 20px; padding: 4px 10px;
    margin: 4px 0 0;
}

/* ---------- Boutons de contact (fiches) ---------- */
.annu-contact { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }

/* ---------- Puces d'espèces soignées ---------- */
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce {
    font-size: 13px; color: var(--vert); background: var(--vert-tint);
    border-radius: 20px; padding: 5px 12px;
}

/* ---------- Écrans plus larges ---------- */
@media (min-width: 720px) {
    .annu-recherche { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
    .annu-recherche .champ { flex: 1 1 200px; }
    .annu-recherche .champ-case { padding-bottom: 10px; }
    .annu-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   Blog / Conseils
   Composants propres au module — réutilisent les variables existantes.
   ===================================================================== */

/* ---------- Filtres par catégorie (chips) ---------- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.cat-chips a {
    font-size: 13.5px; color: var(--muted); font-weight: 500;
    background: var(--carte); border: 1px solid var(--bord);
    border-radius: 20px; padding: 6px 14px;
}
.cat-chips a:hover { border-color: var(--vert); color: var(--vert); text-decoration: none; }
.cat-chips a.actif { background: var(--vert); border-color: var(--vert); color: #fff; }

/* ---------- Liste des articles ---------- */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 24px 0; }
.article-carte {
    background: var(--carte); border: 1px solid var(--bord);
    border-radius: var(--rayon); overflow: hidden; color: var(--encre);
    display: flex; flex-direction: column;
}
a.article-carte:hover { border-color: var(--vert); text-decoration: none; }
.article-carte .vignette {
    aspect-ratio: 16 / 9; background: var(--vert-tint); overflow: hidden;
    display: flex; align-items: center; justify-content: center; color: var(--vert);
}
.article-carte .vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-carte .corps { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.article-carte .espece { font-size: 12px; color: var(--ocre); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.article-carte h3 { font-size: 18px; line-height: 1.25; }
.article-carte .extrait {
    font-size: 14px; color: var(--muted); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.article-carte .meta { font-size: 12.5px; color: var(--faible); margin-top: 2px; }

/* ---------- Article ---------- */
.article { max-width: 720px; }
.article-tete { padding: 10px 0 6px; }
.article-tete .espece { font-size: 12.5px; color: var(--ocre); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; display: inline-block; }
.article-tete a.espece:hover { text-decoration: none; opacity: .8; }
.article-tete h1 { font-size: 30px; margin: 8px 0 0; }
.article-meta { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.article-image { margin: 22px 0; }
.article-image img { width: 100%; border-radius: var(--rayon); display: block; }
.article-chapo { font-size: 18px; color: var(--encre); font-weight: 500; line-height: 1.5; margin: 20px 0; }

/* Corps rédigé (HTML de confiance) */
.article-corps { font-size: 16.5px; line-height: 1.7; }
.article-corps > :first-child { margin-top: 0; }
.article-corps p { margin: 0 0 16px; }
.article-corps h2 { font-size: 22px; margin: 30px 0 12px; }
.article-corps h3 { font-size: 19px; margin: 24px 0 10px; }
.article-corps ul, .article-corps ol { margin: 0 0 16px; padding-left: 22px; }
.article-corps li { margin: 4px 0; }
.article-corps a { color: var(--vert); text-decoration: underline; }
.article-corps img { border-radius: var(--rayon-sm); margin: 12px 0; }
.article-corps blockquote {
    margin: 18px 0; padding: 10px 16px;
    border-left: 3px solid var(--vert); background: var(--vert-tint);
    border-radius: 0 var(--rayon-sm) var(--rayon-sm) 0; color: var(--encre);
}

/* ---------- Écrans plus larges ---------- */
@media (min-width: 720px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
    .article-tete h1 { font-size: 38px; }
}
