/* ====================================================================
   CLINIQUE VÉTÉRINAIRE DU VERCORS — feuille de style commune
   Aucune police n'est chargée depuis un serveur extérieur : le site
   n'envoie donc l'adresse IP d'aucun visiteur à un tiers, et
   l'affichage est immédiat.
   ==================================================================== */

:root{
  --bleu:#123a6b;
  --bleuClair:#2b5fa8;
  --ciel:#eef3fa;
  --encre:#1a2433;
  --urgence:#c0392b;

  --blanc:#ffffff;
  --gris:#5b6879;
  --grisClair:#646e7c;
  --ligne:rgba(18,58,107,.14);
  --ombre:0 10px 34px rgba(18,58,107,.09);
  --ombreForte:0 18px 50px rgba(18,58,107,.16);

  --serif:Georgia,"Times New Roman",Times,serif;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --largeur:1180px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{font-family:var(--sans);background:var(--blanc);color:var(--encre);
     line-height:1.62;font-size:15.5px;overflow-x:hidden}
img{max-width:100%;display:block}
a{color:var(--bleuClair);text-decoration:none}
a:hover{text-decoration:underline}

.container{width:min(var(--largeur),calc(100% - 40px));margin:0 auto}

h1,h2,h3,h4{font-family:var(--serif);line-height:1.15;letter-spacing:-.01em;font-weight:700}
h1{font-size:clamp(30px,4.2vw,44px);margin-bottom:14px}
h2{font-size:clamp(23px,2.6vw,31px);margin-bottom:12px}
h3{font-size:19px;margin-bottom:8px}
/* Un titre de niveau 2 qui doit rester discret : la hiérarchie reste
   correcte pour les lecteurs d'écran, l'apparence est celle d'un h3. */
h2.titrePetit{font-size:19px;margin-bottom:8px}
/* Les intitulés du pied de page ne sont pas des titres de contenu. */
.piedTitre{color:#fff;font-family:var(--sans);font-size:13px;letter-spacing:.11em;
           text-transform:uppercase;margin-bottom:14px;font-weight:700}
h4{font-size:16px;margin-bottom:6px}
p{margin-bottom:12px}
p:last-child{margin-bottom:0}

.eyebrow{font-size:11.5px;letter-spacing:.19em;text-transform:uppercase;
         color:var(--bleuClair);font-weight:700;margin-bottom:12px}
.lead{font-size:16.5px;color:var(--gris);max-width:70ch}
.muted{color:var(--gris)}

/* ---------- Bandeau supérieur ---------- */
.topbar{background:var(--bleu);color:rgba(255,255,255,.92);font-size:12.8px}
.topbar .container{display:flex;justify-content:space-between;align-items:center;
                   gap:16px;padding:9px 0;flex-wrap:wrap}
.topbar a{color:#fff;text-decoration:underline;font-weight:700}
.statut{display:inline-flex;align-items:center;gap:7px}
.pastille{width:8px;height:8px;border-radius:50%;background:#7fd18b;flex:none}
.pastille.ferme{background:#e8a2a2}

/* ---------- Message temporaire ---------- */
.annonce{background:#fdf3e3;border-bottom:1px solid #e8d5ae;color:#7a5a1e;
         font-size:14px;padding:11px 0;display:none}
.annonce.actif{display:block}
.annonce.urgence{background:#fdeaea;border-bottom-color:#f0c4c4;color:#8e2f2f}

/* ---------- En-tête ---------- */
header{background:var(--blanc);border-bottom:1px solid var(--ligne);
       position:sticky;top:0;z-index:40}
.navwrap{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0}
.marque{display:flex;align-items:center;gap:11px;color:var(--encre)}
.marque:hover{text-decoration:none}
.marque img{height:44px;width:auto}
.marqueTexte{font-family:var(--serif);font-weight:700;font-size:16px;line-height:1.15}
.marqueTexte small{display:block;font-family:var(--sans);font-size:10.5px;
                   font-weight:600;letter-spacing:.1em;text-transform:uppercase;
                   color:var(--bleuClair);margin-top:3px}
nav{display:flex;align-items:center;gap:3px}
nav a{color:var(--encre);font-size:14px;font-weight:500;padding:8px 11px;
      border-radius:8px;white-space:nowrap}
nav a:hover{background:var(--ciel);text-decoration:none}
nav a.actif{background:var(--ciel);color:var(--bleu);font-weight:700}
nav a.urgent{color:var(--urgence);font-weight:700}
.hamb{display:none;background:var(--blanc);border:1px solid var(--ligne);
      border-radius:9px;padding:9px 12px;font-size:17px;cursor:pointer;color:var(--bleu)}

/* ---------- Boutons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
     border:0;border-radius:9px;padding:12px 19px;font-family:inherit;font-size:14px;
     font-weight:700;cursor:pointer;background:var(--bleu);color:#fff;white-space:nowrap;
     transition:background .18s,transform .18s;text-decoration:none}
.btn:hover{background:var(--bleuClair);text-decoration:none;color:#fff}
.btn.ghost{background:transparent;color:var(--bleu);border:1px solid var(--ligne)}
.btn.ghost:hover{background:var(--ciel);color:var(--bleu)}
.btn.urgence{background:var(--urgence)}
.btn.urgence:hover{background:#a83226}
.btn.small{padding:9px 14px;font-size:13px}

/* ---------- Sections ---------- */
section{padding:56px 0}
section.ciel{background:var(--ciel)}
.entete{max-width:74ch;margin-bottom:32px}

/* ---------- Mise en page à deux colonnes ---------- */
.duo{display:grid;grid-template-columns:1fr 1fr;gap:38px;align-items:center}
/* La photo d'accueil occupe plus de place que la colonne de texte et
   monte sur toute la hauteur du bloc : c'est la première chose que
   voit le visiteur. */
.duo.hero{grid-template-columns:1fr 1.18fr;gap:44px;align-items:stretch}
.duo.hero > div:first-child{align-self:center}
.duo.hero .photo{aspect-ratio:auto;height:100%;min-height:440px}
.duo.etroit{grid-template-columns:.85fr 1fr}
.duo.haut{align-items:start}
.presta{margin-bottom:34px}
.presta .visuel{order:1}
.presta .texte{order:2}
.presta.inverse .visuel{order:2}
.presta.inverse .texte{order:1}

/* ---------- Carte de prestation (accueil) ---------- */
/* La carte entière est un lien : la cible est large, et il n'y a
   qu'un seul lien à annoncer pour un lecteur d'écran. */
.carteP{display:grid;grid-template-columns:40% 1fr;align-items:stretch;gap:0;
        background:var(--blanc);border:1px solid var(--ligne);border-radius:12px;
        overflow:hidden;box-shadow:var(--ombre);text-decoration:none;color:inherit;
        transition:box-shadow .18s, transform .18s}
.carteP:hover,.carteP:focus-visible{box-shadow:var(--ombreForte);transform:translateY(-2px)}
.carteP .photo{border:0;border-radius:0;aspect-ratio:auto;height:100%;min-height:170px}
.carteP .corps{padding:20px 22px;display:flex;flex-direction:column;
               align-items:flex-start;gap:12px;justify-content:space-between}
.carteP .nomPresta{font-family:var(--serif);font-size:18px;font-weight:700;
                   color:var(--bleu);line-height:1.2}
.carteP .resume{font-size:13.5px;color:var(--gris);line-height:1.5;margin:0}
.carteP .fausseAction{display:inline-block;background:var(--bleu);color:#fff;
                      font-size:13px;font-weight:700;padding:9px 16px;border-radius:8px}
.carteP:hover .fausseAction{background:var(--bleuClair)}

/* Prestation atteinte par un lien : on la signale, sinon le visiteur
   ne sait pas où il vient d'arriver. L'en-tête étant collant, il faut
   aussi réserver la place qu'il occupe. */
.presta{scroll-margin-top:92px}
.presta:target .texte h2,.presta.ancreVisee .texte h2{color:var(--bleuClair)}
.presta:target,.presta.ancreVisee{animation:signalePresta 2.2s ease-out}
@keyframes signalePresta{
  0%,18%{background:rgba(43,95,168,.09)}
  100%{background:transparent}
}
@media(prefers-reduced-motion:reduce){
  .presta:target,.presta.ancreVisee{animation:none;background:rgba(43,95,168,.06)}
  .carteP{transition:none}
  .carteP:hover,.carteP:focus-visible{transform:none}
}

/* ---------- Cartes ---------- */
.grille{display:grid;gap:18px}
.g2{grid-template-columns:repeat(2,1fr)}
.g3{grid-template-columns:repeat(3,1fr)}
.g4{grid-template-columns:repeat(4,1fr)}
.carte{background:var(--blanc);border:1px solid var(--ligne);border-radius:12px;
       padding:22px;box-shadow:var(--ombre)}
.carte.plate{box-shadow:none}
.carte h3{color:var(--bleu)}

/* Emplacement réservé pour une photo à venir */
.photo{aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:var(--ciel);
       display:grid;place-items:center;border:1px solid var(--ligne)}
.photo img{width:100%;height:100%;object-fit:cover}
.photo .attente{font-size:11px;letter-spacing:.14em;text-transform:uppercase;
                color:var(--grisClair);font-weight:700;text-align:center;padding:12px;
                background:repeating-linear-gradient(45deg,transparent,transparent 9px,
                           rgba(18,58,107,.045) 9px,rgba(18,58,107,.045) 18px);
                width:100%;height:100%;display:grid;place-items:center}

/* ---------- Plan d'accès ---------- */
.photo iframe{width:100%;height:100%;border:0;display:block}
.plan{background:var(--ciel)}
/* Le plan interactif remplit son cadre 4/3. Leaflet ajoute sa classe
   leaflet-container SUR cet élément, pas dans un enfant. */
.planZone{width:100%;height:100%;font:inherit;background:var(--ciel)}
/* Le repère est un SVG : pas de fond ni de bordure autour. */
.repereClinique{background:none;border:0}
/* L'étiquette reprend la typographie du site plutôt que celle de la
   bibliothèque. */
.popupClinique .leaflet-popup-content{margin:12px 15px;font-size:13.5px;line-height:1.5;
                                      color:var(--encre)}
.popupClinique .leaflet-popup-content strong{font-family:var(--serif);font-size:15px;
                                             display:block;margin-bottom:2px}
.popupClinique .leaflet-popup-content-wrapper{border-radius:10px;box-shadow:var(--ombreForte)}
.planZone .leaflet-control-attribution{font-size:10.5px}
.planZone .leaflet-control-zoom a{color:var(--bleu);font-weight:700}
.demandePlan{width:100%;height:100%;display:grid;place-content:center;gap:12px;
             padding:24px;text-align:center;background:var(--ciel)}
.demandePlan p{font-size:13.5px;color:var(--gris);line-height:1.5;margin:0}
.demandePlan .btn{justify-self:center}
.demandePlan .aide{font-size:12px}

/* ---------- Blocs contact / téléphone ---------- */
.ligneContact{display:flex;justify-content:space-between;align-items:center;gap:14px;
              padding:15px 18px;border:1px solid var(--ligne);border-radius:10px;
              background:var(--blanc);margin-bottom:10px;flex-wrap:wrap}
.ligneContact:last-child{margin-bottom:0}
.ligneContact .nom{font-weight:700;color:var(--encre);line-height:1.35}
.ligneContact>div:first-child{min-width:0;flex:1}
.ligneContact .detail{font-size:13px;color:var(--gris)}
.ligneContact .tel{font-weight:700;color:var(--bleu);font-size:15.5px;white-space:nowrap}

/* ---------- Encadrés ---------- */
.encadre{border:1px solid var(--ligne);border-radius:12px;padding:22px;background:var(--blanc)}
.encadre.alerte{background:#fdeaea;border-color:#f0c4c4}
.encadre.alerte h3{color:var(--urgence)}
.encadre.info{background:var(--ciel);border-color:rgba(18,58,107,.12)}
.encadre ul{margin:10px 0 0 19px}
.encadre li{margin-bottom:6px;color:var(--gris)}

/* ---------- Tableau horaires ---------- */
.horaires{width:100%;border-collapse:collapse}
.horaires td{padding:11px 13px;border-bottom:1px solid var(--ligne);font-size:14.5px}
.horaires tr:last-child td{border-bottom:0}
.horaires .jour{color:var(--gris)}
.horaires tr.aujourdhui td{background:var(--ciel);font-weight:700;color:var(--bleu)}
.horaires .creneaux{text-align:right}
.horaires .ferme{color:var(--grisClair)}

/* ---------- Pied de page ---------- */
footer{background:var(--bleu);color:rgba(255,255,255,.82);padding:44px 0 26px;margin-top:10px}
footer h4{color:#fff;font-family:var(--sans);font-size:13px;letter-spacing:.11em;
          text-transform:uppercase;margin-bottom:14px}
footer a{color:rgba(255,255,255,.88);text-decoration:none}
footer a:hover{text-decoration:underline;color:#fff}
.piedGrille{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:34px}
.piedGrille p{margin-bottom:5px;font-size:14px}
.piedBas{margin-top:30px;padding-top:18px;border-top:1px solid rgba(255,255,255,.18);
         display:flex;gap:18px;flex-wrap:wrap;font-size:12.5px;color:rgba(255,255,255,.62)}

/* ---------- Formulaire ---------- */
form .champ{margin-bottom:15px}
label{display:block;font-size:12px;font-weight:700;letter-spacing:.07em;
      text-transform:uppercase;color:var(--bleuClair);margin-bottom:6px}
input,select,textarea{width:100%;border:1px solid var(--ligne);border-radius:9px;
                      padding:12px;font-family:inherit;font-size:16px;color:var(--encre);
                      background:var(--blanc);outline:none;transition:border-color .18s}
input:focus,select:focus,textarea:focus{border-color:var(--bleuClair)}
textarea{min-height:150px;resize:vertical}
.formGrille{display:grid;grid-template-columns:1fr 1fr;gap:15px}

/* ---------- Divers ---------- */
.pastilles{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.pastilleTexte{background:var(--ciel);border:1px solid var(--ligne);border-radius:999px;
               padding:6px 13px;font-size:13px;color:var(--bleu);font-weight:600}
.retourHaut{position:fixed;right:16px;bottom:16px;width:44px;height:44px;border:0;
            border-radius:50%;background:var(--bleu);color:#fff;font-size:19px;cursor:pointer;
            box-shadow:var(--ombreForte);opacity:0;pointer-events:none;transition:opacity .2s;z-index:30}
.retourHaut.visible{opacity:1;pointer-events:auto}
.bandeauCookies{position:fixed;left:16px;right:16px;bottom:16px;max-width:560px;margin:0 auto;
                background:var(--encre);color:#fff;border-radius:12px;padding:18px 20px;
                box-shadow:var(--ombreForte);z-index:60;display:none;font-size:13.5px}
.bandeauCookies a{color:#fff;text-decoration:underline}
.bandeauCookies .actions{display:flex;gap:10px;margin-top:13px}
.bandeauCookies .btn{flex:1}

/* ---------- Nos compagnons : la photo suit le nom choisi ---------- */
.compagnonsNoms{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.compagnonsNoms button{border:1px solid var(--ligne);background:var(--blanc);color:var(--bleu);
                       border-radius:999px;padding:9px 16px;font-family:inherit;font-size:14px;
                       font-weight:700;cursor:pointer;transition:background .18s,color .18s}
.compagnonsNoms button:hover{background:var(--ciel)}
.compagnonsNoms button[aria-pressed="true"]{background:var(--bleu);color:#fff;border-color:var(--bleu)}
.compagnonFiche{margin-top:18px}
.compagnonFiche .photo{max-width:340px}
.compagnonFiche .nom{font-family:var(--serif);font-size:20px;font-weight:700;margin-top:14px}
.compagnonFiche .espece{color:var(--bleuClair);font-weight:600;font-size:13.5px;margin-top:2px}
.compagnonFiche .texte{color:var(--gris);font-size:14.5px;margin-top:8px}

/* ---------- Bouton d'appel permanent (mobile) ---------- */
.boutonAppel{display:none;position:fixed;left:14px;bottom:14px;z-index:35;
             align-items:center;gap:8px;background:var(--bleu);color:#fff;
             border-radius:999px;padding:13px 19px;font-weight:700;font-size:14.5px;
             box-shadow:var(--ombreForte);text-decoration:none}
.boutonAppel:hover{background:var(--bleuClair);color:#fff;text-decoration:none}
.boutonAppel svg{flex:none}

/* ---------- Icônes des réseaux dans le pied ---------- */
.piedReseaux{display:flex;gap:10px;margin-top:14px}
.piedReseaux a{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;
               background:rgba(255,255,255,.11);color:#fff;transition:background .18s}
.piedReseaux a:hover{background:rgba(255,255,255,.22)}

/* ---------- Réseaux sur la page Contact ---------- */
.reseauLigne{display:flex;align-items:center;gap:13px;padding:14px 16px;border:1px solid var(--ligne);
             border-radius:10px;background:var(--blanc);margin-bottom:10px;color:var(--encre);
             text-decoration:none;transition:background .18s}
.reseauLigne:hover{background:var(--ciel);text-decoration:none;color:var(--encre)}
.reseauLigne .rond{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;
                   background:var(--ciel);color:var(--bleu);flex:none}
.reseauLigne .nom{font-weight:700}
.reseauLigne .detail{font-size:13px;color:var(--gris)}

/* ---------- Téléphone mis en avant ---------- */
.telVedette{display:flex;align-items:center;justify-content:space-between;gap:18px;
            flex-wrap:wrap;background:var(--bleu);color:#fff;border-radius:12px;padding:26px 28px}
.telVedette .intitule{font-size:12px;letter-spacing:.18em;text-transform:uppercase;
                      color:rgba(255,255,255,.72);font-weight:700;margin-bottom:6px}
.telVedette .numero{font-family:var(--serif);font-size:clamp(27px,3.4vw,38px);color:#fff;
                    text-decoration:none;line-height:1.1;display:block}
.telVedette .numero:hover{text-decoration:underline;color:#fff}
.telVedette .btn{background:#fff;color:var(--bleu)}
.telVedette .btn:hover{background:var(--ciel);color:var(--bleu)}

/* ---------- Responsive ---------- */
@media(max-width:1050px){
  nav{position:fixed;top:63px;left:12px;right:12px;flex-direction:column;
      align-items:stretch;gap:0;background:var(--blanc);border:1px solid var(--ligne);
      border-radius:12px;padding:8px;box-shadow:var(--ombreForte);display:none;
      max-height:calc(100vh - 100px);overflow-y:auto}
  nav.ouvert{display:flex}
  nav a{padding:13px 12px;border-bottom:1px solid var(--ligne);border-radius:0}
  nav a:last-child{border-bottom:0}
  .hamb{display:block}
  .telHaut{display:none}
  .boutonAppel{display:inline-flex}
  /* le bouton d'appel occupe le coin bas-gauche, on decale l'autre */
  .retourHaut{bottom:14px}
  .g4{grid-template-columns:repeat(2,1fr)}
  .piedGrille{grid-template-columns:1fr 1fr}
}
@media(max-width:900px){
  .duo,.duo.hero,.duo.etroit{grid-template-columns:1fr;gap:26px}
  /* Sur un écran étroit la photo reprend un format normal : en pleine
     hauteur elle repousserait tout le texte sous la ligne de flottaison. */
  .duo.hero .photo{aspect-ratio:4/3;height:auto;min-height:0}
  .carteP{grid-template-columns:34% 1fr}
  .presta .visuel,.presta .texte,
  .presta.inverse .visuel,.presta.inverse .texte{order:unset}
}
@media(max-width:760px){
  .container{width:calc(100% - 28px)}
  section{padding:40px 0}
  .g2,.g3,.g4,.formGrille{grid-template-columns:1fr}
  .piedGrille{grid-template-columns:1fr;gap:26px}
  .topbar .container{justify-content:center;text-align:center;font-size:12px;gap:8px}
  .carte{padding:18px}
  .marque img{height:38px}
  .marqueTexte{font-size:14.5px}
  .ligneContact{flex-direction:column;align-items:flex-start;gap:6px}
  .horaires .creneaux{text-align:left}
}
@media(max-width:400px){
  /* Sur les très petits écrans, un libellé long doit pouvoir revenir
     à la ligne plutôt que de déborder. Le bouton téléphone de
     l'en-tête, lui, est déjà masqué à cette largeur. */
  .btn{white-space:normal;text-align:center;line-height:1.35}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
}
