:root{
  --card:rgba(255,255,255,.92);
  --line:rgba(41,34,29,.10);
  --text:#231f20;
  --muted:#6f655f;
  --primary:#0b2941;
  --primary-2:#102f49;
  --accent:#bf4b3c;
  --accent-2:#a63b30;
  --shadow-sm:0 10px 28px rgba(25,21,18,.08);
  --shadow-md:0 22px 60px rgba(25,21,18,.16);
  --max:1240px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  overflow-x:hidden;
  margin:0;
  font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#f7f3ee 0%, #efe8df 100%);
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(calc(100% - 30px), var(--max));margin:0 auto}
.topbar{
  position:sticky;top:0;z-index:99;
  background:rgba(255,250,245,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(51,41,34,.08);
  box-shadow:0 8px 28px rgba(29,24,21,.05);
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:88px}
.brand{display:flex;align-items:center;gap:18px;min-width:0}
.brand img{height:68px;width:auto;filter:none}
.brand-copy{display:flex;flex-direction:column}
.brand-copy strong{font-size:1.08rem;letter-spacing:.01em;color:#1f1b1c}
.brand-copy span{font-size:.82rem;color:var(--muted)}
.nav-links{display:flex;align-items:center;gap:24px;flex-wrap:wrap;justify-content:flex-end}
.nav-links a{font-weight:700;color:#2f2c2d;font-size:.95rem;position:relative;padding:4px 0}
.nav-links a:hover{color:var(--accent)}
.nav-links a[href="#animaux"]::after{
  content:"";position:absolute;left:0;right:0;bottom:-8px;height:3px;border-radius:4px;
  background:var(--accent);opacity:.95;
}
.lang{display:inline-flex;gap:4px;padding:4px;border-radius:12px;background:#f1e8df;border:1px solid rgba(51,41,34,.10)}
.lang button{border:none;background:transparent;border-radius:10px;padding:9px 13px;font:inherit;font-weight:800;color:#5f5752;cursor:pointer}
.lang button.active{background:var(--accent);color:#fff;box-shadow:none}
.adopt-actions{display:flex;justify-content:flex-end;gap:8px;margin:0 0 18px}
.adopt-filter-btn{border:none;background:#f1e8df;border-radius:10px;padding:9px 13px;font:inherit;font-weight:800;color:#5f5752;cursor:pointer;border:1px solid rgba(51,41,34,.10)}
.adopt-filter-btn.active{background:var(--accent);color:#fff;box-shadow:none;border-color:transparent}
.hero{padding:0 0 34px}
.hero-shell{display:grid;grid-template-columns:1fr;gap:0;align-items:stretch}
.hero-copy{
  overflow:hidden;
  box-shadow:none;
  border-radius:0;
  position:relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.0)),
    url("Designer.webp") center center / cover no-repeat;
  border:1px solid rgba(51,41,34,.06);
  border-radius:0 0 26px 26px;
  min-height:560px;
}
.hero-copy:before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(circle at 42% 46%, rgba(255,249,242,.72), transparent 20%),
    radial-gradient(circle at 50% 48%, rgba(29,24,21,.24), transparent 12%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.0));
  pointer-events:none;
}
.hero-inner{position:relative;padding:78px 44px 150px;z-index:2}
h1{margin:0;font-family:Georgia,'Times New Roman',serif;font-size:clamp(3rem,6vw,5rem);line-height:.94;letter-spacing:-.03em;max-width:620px;color:#171314}
h1::before{content:var(--hero-prefix, "Ensemble, offrons-leur");display:block;font-size:clamp(1.5rem,2.4vw,2.3rem);line-height:1.1;color:var(--accent);font-weight:500;font-family:'Brush Script MT','Segoe Script','Snell Roundhand',cursive;margin-bottom:14px;letter-spacing:0}
.hero-sub{margin:22px 0 0;max-width:430px;color:#3f3735;font-size:1.08rem;line-height:1.58}
.hero-text{max-width:620px;min-height:320px}
.hero-sub em{color:var(--accent)}
.hero-stats{display:flex;gap:2.6rem;margin:28px 0 0}
.intro-text{padding:38px 0 6px}
.intro-text p{max-width:820px;margin:0 auto;text-align:center;color:var(--muted);font-size:1.02rem;line-height:1.75}
.intro-text strong{color:var(--primary)}
.stat-item{text-align:left}
.stat-num{font-family:Georgia,'Times New Roman',serif;font-size:2.3rem;font-weight:700;color:var(--accent);display:block;line-height:1}
.stat-label{display:block;margin-top:6px;font-size:.82rem;color:#4a423e;font-weight:600;letter-spacing:.01em}
.search-shell{
  margin-top:34px;padding:0;border-radius:24px;background:linear-gradient(135deg,#07243a,#0d304b 64%, #123955);
  border:1px solid rgba(255,255,255,.10);box-shadow:0 18px 46px rgba(7,36,58,.26);
  position:absolute;left:44px;right:44px;bottom:12px;z-index:3;
}
.search-shell::before{content:"TROUVEZ VOTRE COMPAGNON";display:block;color:#fff;font-family:Georgia,'Times New Roman',serif;font-size:1.05rem;letter-spacing:.01em;padding:14px 20px 0}
.search-shell::after{content:"Truvate u vostru cumpagnu";display:block;color:#de7f6d;font-style:italic;font-weight:700;padding:0 20px 8px}
.search-grid{display:grid;grid-template-columns:1.12fr .68fr .68fr .72fr .82fr .98fr;gap:8px;padding:0 20px 16px}
.field,.select{height:44px;border-radius:8px;border:1px solid rgba(21,34,48,.08);background:#fff;padding:0 12px;font:inherit;font-size:.92rem;color:var(--text);outline:none}
.field:focus,.select:focus{border-color:rgba(22,58,97,.34);box-shadow:0 0 0 4px rgba(255,255,255,.14)}
section{padding:30px 0 70px}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px}
.eyebrow{font-size:1rem;letter-spacing:.09em;text-transform:uppercase;font-weight:800;color:var(--accent)}
.section-head h2{margin:10px 0 0;font-size:clamp(2rem,3.7vw,3rem);font-family:Georgia,'Times New Roman',serif;line-height:1.02}
.section-head p{margin:10px 0 0;color:var(--muted);max-width:700px;line-height:1.7}
.animals{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:var(--card);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.84);border-radius:24px;padding:15px;box-shadow:var(--shadow-sm)}
.animal-card{display:flex;flex-direction:column;height:100%;transition:transform .18s ease, box-shadow .18s ease}
.animal-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.animal-media{height:250px;border-radius:18px;overflow:hidden;position:relative;background:#dde4ec}
.animal-media img{width:100%;height:100%;object-fit:cover}
.card-badge{position:absolute;left:12px;top:12px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.9);font-size:.78rem;font-weight:800;box-shadow:var(--shadow-sm)}
.card-badge.urgent{top:52px;background:rgba(255,238,237,.96);color:var(--accent)}
.animal-name{font-size:1.25rem;font-weight:900;margin:14px 0 4px}
.animal-asso{color:var(--primary);font-weight:700;font-size:.9rem;margin-bottom:11px}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.tag{padding:7px 10px;border-radius:999px;background:rgba(21,34,48,.05);font-size:.76rem;font-weight:700;color:var(--muted)}
.animal-desc{color:var(--muted);font-size:.93rem;line-height:1.68;min-height:78px}
.animal-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding-top:14px}
.loc{font-size:.84rem;color:var(--muted)}
.mini-btn{height:40px;line-height:40px;padding:0 14px;border-radius:999px;border:none;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;font:inherit;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.assoc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.assoc-head{display:flex;gap:14px;align-items:flex-start}
.asso-icon{display:flex;align-items:flex-start;gap:6px;flex:0 0 auto}.asso-icon.stacked{flex-direction:column}.asso-icon-badge{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:999px;background:rgba(21,34,48,.05);font-size:.76rem;font-weight:700;color:var(--muted);line-height:1;white-space:nowrap}.assoc-name-wrap{min-width:0}
.assoc{display:flex;flex-direction:column;height:100%}
.assoc h3{margin:0 0 5px;font-size:1.05rem}
.small{font-size:.84rem;color:var(--muted)}
.assoc p{color:var(--muted);line-height:1.7;font-size:.93rem}
.assoc p:last-of-type{margin-bottom:0}
.assoc-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto;padding-top:12px}
.linkpill{padding:9px 11px;border-radius:14px;background:rgba(21,34,48,.05);font-size:.84rem;font-weight:700;color:var(--primary)}
.linkpill.disabled{color:var(--muted);opacity:.78;pointer-events:none}
.band{background:linear-gradient(135deg,#0f1723,#13283f 55%, #10253d);color:#fff;border-radius:28px;box-shadow:var(--shadow-md);overflow:hidden;position:relative}
.band:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 10% 18%, rgba(255,255,255,.08), transparent 18%),radial-gradient(circle at 84% 80%, rgba(255,255,255,.08), transparent 20%)}
.steps{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:32px}
.step{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.09);border-radius:24px;padding:22px}
.step-no{font-size:3rem;font-weight:900;color:rgba(255,255,255,.16);line-height:1}
.step h3{margin:10px 0 8px;font-size:1.03rem}
.step p{margin:0;color:rgba(255,255,255,.76);line-height:1.7;font-size:.92rem}
.modal-backdrop{position:fixed;inset:0;display:none;place-items:center;background:rgba(9,16,28,.56);backdrop-filter:blur(8px);z-index:140;padding:20px}
.modal-backdrop.open{display:grid}
.modal{overscroll-behavior:contain;overflow-x:auto;overflow-y:auto}
.modal{width:1000px;min-width:1000px;height:720px;min-height:720px;max-width:none;max-height:none;overflow:auto;background:#fff;border-radius:30px;box-shadow:0 30px 80px rgba(0,0,0,.24);padding:22px}
.close{position:sticky;top:0;margin-left:auto;width:42px;height:42px;border-radius:50%;border:none;background:rgba(21,34,48,.06);font-size:1rem;cursor:pointer}
.modal-grid{display:grid;grid-template-columns:520px 1fr;gap:18px;min-width:920px}
.modal-media{border-radius:24px;overflow:hidden;min-height:420px;height:100%;background:#e6ecf3}
.modal-carousel{position:relative;height:100%;min-height:420px;background:#e6ecf3;border-radius:24px;overflow:hidden}
.modal-track{display:flex;height:100%;transition:transform .38s cubic-bezier(.22,.61,.36,1)}
.modal-slide{min-width:100%;height:100%;position:relative;background:#e6ecf3}
.modal-slide::after{content:'';position:absolute;inset:auto 0 0 0;height:26%;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.16));pointer-events:none}
.modal-slide img,.modal-slide video{width:100%;height:100%;object-fit:cover;display:block;background:#000}
.site-footer{background:#f1ece5;border-top:1px solid rgba(51,41,34,.08);margin-top:20px}
.assoc-banner{background:linear-gradient(90deg,#0b2941,#102f49);color:#fff}
.assoc-banner .container{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 10px;padding:10px 20px;text-align:center;font-size:.86rem}
.assoc-banner strong{font-weight:800}
.assoc-banner a{color:#fff;font-weight:800;text-decoration:underline;text-underline-offset:2px}
.assoc-banner a:hover{color:var(--accent)}
.footer-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:22px 0}
.footer-links{display:flex;gap:28px;flex-wrap:wrap}
.footer-links a{font-size:.88rem;font-weight:700;color:var(--primary)}
.footer-links a:hover{color:var(--accent)}
.footer-copy{font-size:.84rem;color:var(--muted);font-weight:600}
.compat-icon{vertical-align:-3px;margin:0 1px}
.modal-slide iframe{width:100%;height:100%;display:block;border:0;background:#000}
.yt-slide{cursor:pointer}
.yt-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;border:2px solid rgba(255,255,255,.85);font-size:22px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2;transition:background .2s,transform .2s}
.yt-play:hover{background:rgba(191,75,60,.85);transform:translate(-50%,-50%) scale(1.08)}
.carousel-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border:1px solid rgba(255,255,255,.32);border-radius:50%;cursor:pointer;z-index:3;background:rgba(255,255,255,.12);color:#fff;font-size:1.45rem;font-weight:700;box-shadow:0 10px 30px rgba(0,0,0,.14);display:flex;align-items:center;justify-content:center;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);opacity:0;transition:opacity .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease}
.modal-carousel:hover .carousel-nav{opacity:1}
.carousel-nav:hover{background:rgba(255,255,255,.24);box-shadow:0 14px 32px rgba(0,0,0,.20)}
.carousel-nav:focus-visible{opacity:1;outline:none;box-shadow:0 0 0 3px rgba(255,255,255,.32),0 14px 32px rgba(0,0,0,.20)}
.carousel-nav.prev{left:16px}
.carousel-nav.next{right:16px}
.carousel-dots{position:absolute;left:0;right:0;bottom:18px;display:flex;justify-content:center;align-items:center;gap:9px;z-index:3}
.carousel-dot{width:7px;height:7px;border-radius:999px;border:none;padding:0;background:rgba(255,255,255,.38);cursor:pointer;box-shadow:none;transition:all .22s ease}
.carousel-dot:hover{background:rgba(255,255,255,.7)}
.carousel-dot.active{width:24px;height:7px;border-radius:999px;background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.18)}
@media (hover:none){.carousel-nav{opacity:1;background:rgba(255,255,255,.18)}}
@media (max-width:1100px){
  .search-grid{grid-template-columns:1fr}
  .animals,.assoc-grid,.steps{grid-template-columns:repeat(2,1fr)}
  .hero-copy{min-height:680px;background-position:63% center}
}
@media (max-width:900px){
  .nav{min-height:auto}
  .nav-links{gap:14px}
  .search-shell{left:24px;right:24px}
  .adopt-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .adopt-filter-btn{min-height:42px}
  .animal-media{height:230px}
}
@media (max-width:760px){
  .container{width:min(calc(100% - 20px), var(--max))}
  .nav{padding:12px 0 14px;align-items:flex-start;min-height:auto;flex-direction:column;gap:12px}
  .nav-links{width:100%;justify-content:flex-start;gap:12px 16px}
  .nav-links a{font-size:.92rem}
  .lang{margin-left:auto}
  .brand img{height:56px}
  .brand-copy{display:none}
  .hero{padding:0 0 24px}
  .hero-copy{min-height:auto;background-position:68% center;border-radius:0 0 22px 22px}
  .hero-inner{padding:34px 16px 18px;max-width:none}
  .hero-text{min-height:auto;max-width:100%}
  h1{max-width:100%;font-size:clamp(2.55rem,12vw,4rem);line-height:.95}
  h1::before{font-size:clamp(1.3rem,6vw,1.9rem);margin-bottom:10px}
  .hero-sub{margin-top:16px;max-width:100%;font-size:1rem;line-height:1.5}
  .hero-stats{gap:1.6rem;margin-top:20px}
  .stat-num{font-size:1.8rem}
  .search-shell{position:relative;left:auto;right:auto;bottom:auto;margin-top:22px;border-radius:22px}
  .search-shell::before{padding:14px 16px 0;font-size:.98rem}
  .search-shell::after{padding:0 16px 10px}
  .search-grid{grid-template-columns:1fr;padding:0 16px 16px;gap:10px}
  .field,.select{height:46px;font-size:16px}
  .animals,.assoc-grid,.steps{grid-template-columns:1fr}
  .section-head{flex-direction:column;align-items:flex-start;margin-bottom:18px}
  .adopt-actions{width:100%;justify-content:stretch;gap:10px;margin-top:2px}
  .adopt-filter-btn{flex:1;min-height:44px}
  .card{padding:13px;border-radius:20px}
  .animal-media{height:220px}
  .animal-desc{min-height:auto}
  .animal-bottom{align-items:flex-start;flex-direction:column;margin-top:auto;padding-top:14px}
  .mini-btn{width:100%}
  .assoc-links{gap:8px}
  .asso-icon{gap:6px;align-items:flex-start}
  .asso-icon.stacked{flex-direction:column}
  .asso-icon-badge{padding:7px 10px;border-radius:999px;font-size:.76rem}
  .linkpill{width:100%;justify-content:center;text-align:center}
  .steps{padding:18px}
  .step{padding:18px}
  .modal-backdrop{padding:10px}
  .modal{padding:18px;border-radius:24px;max-height:calc(100vh - 20px);width:100%;min-width:0;height:auto;min-height:0;max-width:100%}
  .modal-grid{grid-template-columns:1fr;min-width:0;gap:14px}
  .modal-media{min-height:260px;height:260px}
  .modal-carousel{min-height:260px;height:260px}
}
  

/* ===== Mode mise en page fixe (desktop uniquement) + ascenseur horizontal ===== */
/* Ce bloc ne s'applique plus qu'à partir de 1101px de large : en dessous, */
/* ce sont les règles responsive @media ci-dessus qui prennent le relais. */
@media (min-width: 1101px){
html{
  overflow-x:auto !important;
}
body{
  overflow-x:auto !important;
  min-width:1280px;
}
.container{
  width:min(calc(100% - 30px), var(--max)) !important;
  min-width:1210px;
  margin:0 auto;
}
.topbar{
  min-width:1280px;
}
.nav{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px !important;
  min-height:88px !important;
  padding:0 !important;
}
.brand{
  display:flex !important;
  align-items:center !important;
  gap:18px !important;
  min-width:0 !important;
}
.brand img{
  height:68px !important;
}
.brand-copy{
  display:flex !important;
  flex-direction:column !important;
}
.nav-links{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:24px !important;
  flex-wrap:nowrap !important;
  width:auto !important;
}
.nav-links a{
  font-size:.95rem !important;
}
.lang{
  margin-left:0 !important;
}
.hero{
  padding:0 0 34px !important;
}
.hero-copy{
  min-height:560px !important;
  background-position:center center !important;
  border-radius:0 0 26px 26px !important;
}
.hero-inner{
  padding:78px 44px 150px !important;
  max-width:none !important;
}
.hero-text{
  max-width:620px !important;
  min-height:320px !important;
}
h1{
  max-width:620px !important;
  font-size:clamp(3rem,6vw,5rem) !important;
  line-height:.94 !important;
}
h1::before{
  font-size:clamp(1.5rem,2.4vw,2.3rem) !important;
  margin-bottom:14px !important;
}
.hero-sub{
  margin-top:22px !important;
  max-width:430px !important;
  font-size:1.08rem !important;
  line-height:1.58 !important;
}
.search-shell{
  position:absolute !important;
  left:44px !important;
  right:44px !important;
  bottom:12px !important;
  margin-top:34px !important;
  border-radius:24px !important;
}
.search-shell::before{
  padding:14px 20px 0 !important;
  font-size:1.05rem !important;
}
.search-shell::after{
  padding:0 20px 8px !important;
}
.search-grid{
  display:grid !important;
  grid-template-columns:1.12fr .68fr .68fr .72fr .82fr .98fr !important;
  gap:8px !important;
  padding:0 20px 16px !important;
}
.field,.select{
  height:44px !important;
  font-size:.92rem !important;
}
.section-head{
  display:flex !important;
  flex-direction:row !important;
  align-items:flex-end !important;
  justify-content:space-between !important;
  gap:16px !important;
  margin-bottom:22px !important;
}
.adopt-actions{
  width:auto !important;
  justify-content:flex-end !important;
  flex-wrap:nowrap !important;
  gap:8px !important;
  margin:0 0 18px !important;
}
.adopt-filter-btn{
  flex:0 0 auto !important;
  min-height:unset !important;
}
.animals,.assoc-grid{
  grid-template-columns:repeat(3,1fr) !important;
}
.steps{
  grid-template-columns:repeat(4,1fr) !important;
  padding:32px !important;
}
.card{
  padding:15px !important;
  border-radius:24px !important;
}
.animal-media{
  height:250px !important;
}
.animal-desc{
  min-height:78px !important;
}
.animal-bottom{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:space-between !important;
}
.mini-btn{
  width:auto !important;
}
.assoc-links{
  gap:10px !important;
}
.linkpill{
  width:auto !important;
  text-align:left !important;
}
.modal-backdrop{
  padding:20px !important;
}
.modal{
  padding:22px !important;
  border-radius:30px !important;
  max-height:calc(100vh - 40px) !important;
}
.modal-grid{
  grid-template-columns:1fr 1fr !important;
}
.modal-media{
  min-height:320px !important;
}
}


