/* =========================================================
   BLUUPI — HOME PAGE
   Mobile first + tablette + desktop
========================================================= */

/* =========================================================
   1. VARIABLES
========================================================= */

:root{
  --primary:#0E3E61;
  --blue:#127194;
  --light-blue:#3CA6D6;
  --bg:#f5f9fc;
  --card:#ffffff;
  --text:#102f46;
  --muted:#6d7d8b;
  --line:#e5edf3;
  --shadow:0 18px 40px rgba(14,62,97,.12);
  --soft-shadow:0 10px 24px rgba(14,62,97,.08);
}

/* =========================================================
   2. RESET GLOBAL
========================================================= */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:#eef3f7;
  color:var(--text);
}

a{
  text-decoration:none;
  color:inherit;
}

button,
input,
select{
  font:inherit;
}

button{
  cursor:pointer;
}

img{
  max-width:100%;
  display:block;
}

/* SEO caché visuellement */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* =========================================================
   3. ÉLÉMENTS RESPONSIVE MASQUÉS PAR DÉFAUT
========================================================= */

.desktop-header,
.hero-visual,
.tablet-only-bluupi,
.desktop-bluupi,
.floating-mic,
.bottom-nav{
  display:none;
}

/* =========================================================
   4. STRUCTURE APP — MOBILE FIRST
========================================================= */

.app{
  width:100%;
  max-width:460px;
  min-height:100vh;
  margin:0 auto;
  padding:34px 20px 108px;
  background:var(--bg);
}

/* =========================================================
   5. HERO
========================================================= */

.hero{
  position:relative;
  max-width:none;
  display:block;
}

.hero-content{
  position:relative;
  z-index:2;
  min-width:0;
}

.hero-logo{
  width:190px;
  height:auto;
  display:block;
  margin-bottom:34px;
}

.hero-title-desktop{
  display:block;
  max-width:360px;
  margin:0 0 18px;
  font-family:"Baloo 2", Inter, system-ui, sans-serif;
  font-size:39px;
  line-height:1.08;
  font-weight:900;
  letter-spacing:-.045em;
  color:var(--primary);
}

.hero-subtitle{
  max-width:100%;
  margin:0 0 28px;
  color:#5e6f7f;
  font-size:24px;
  line-height:1.55;
}

.hero-bluupi{
  width:100%;
  height:auto;
}

/* =========================================================
   6. FORMULAIRE DE RECHERCHE
========================================================= */

.hero-form{
  position:relative;
  z-index:3;
}

.main-search{
  height:70px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:0 18px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:26px;
  box-shadow:var(--soft-shadow);
}

.main-search span{
  flex:0 0 auto;
  font-size:24px;
}

.main-search input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font-size:19px;
}

.main-search button{
  width:42px;
  height:42px;
  flex:0 0 auto;
  border:0;
  background:transparent;
  color:var(--primary);
  font-size:28px;
}

/* =========================================================
   7. FILTRES INTELLIGENTS
========================================================= */

.smart-filters{
  margin-top:16px;
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.smart-filters label{
  height:64px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 18px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 6px 18px rgba(14,62,97,.05);
}

.smart-filters span{
  flex:0 0 auto;
  font-size:20px;
}

.smart-filters select,
.smart-filters input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font-size:15px;
}

/* =========================================================
   8. BOUTONS HERO
========================================================= */

.hero-actions{
  margin-top:20px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.btn-primary,
.btn-soft,
.btn-bluupi{
  width:100%;
  min-height:64px;
  padding:0 24px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-size:18px;
  font-weight:900;
}

.btn-primary{
  border:0;
  background:var(--primary);
  color:#fff;
  box-shadow:0 12px 24px rgba(14,62,97,.18);
}

.btn-soft,
.btn-bluupi{
  background:rgba(255,255,255,.75);
  color:var(--primary);
  border:1px solid #d7e3ea;
  box-shadow:0 8px 20px rgba(14,62,97,.06);
}

/* =========================================================
   9. FILTRES RAPIDES
========================================================= */

.filters{
  margin-top:22px;
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding-bottom:6px;
  scrollbar-width:none;
}

.filters::-webkit-scrollbar{
  display:none;
}

.filters a{
  flex:0 0 auto;
  padding:14px 24px;
  border-radius:999px;
  background:#eaf1f6;
  color:var(--primary);
  font-weight:900;
  white-space:nowrap;
}

.filters a.active{
  background:var(--primary);
  color:#fff;
}

/* =========================================================
   10. SECTIONS
========================================================= */

.section{
  margin-top:44px;
}

.section h2{
  margin:0 0 22px;
  color:var(--primary);
  font-size:30px;
  line-height:1.1;
  letter-spacing:-.045em;
}

.section-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:22px;
}

.section-row h2{
  margin:0;
}

.section-row a{
  color:var(--primary);
  font-weight:900;
  white-space:nowrap;
}

/* =========================================================
   11. CATÉGORIES
========================================================= */

.categories{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.cat-card{
  height:118px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--soft-shadow);
}

.cat-card span{
  width:50px;
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#eef7fb;
  font-size:24px;
}

.cat-card strong{
  color:var(--primary);
  font-size:13px;
  font-weight:900;
  text-align:center;
}

/* =========================================================
   12. LISTE ACTIVITÉS
========================================================= */

.activity-list{
  display:flex;
  flex-direction:column;
  gap:28px;
}

.activity-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:32px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

.activity-media{
  height:245px;
  position:relative;
  background:#eef5f8;
}

.activity-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.no-image{
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:var(--muted);
  background:linear-gradient(135deg,#edf7fb,#ffffff);
}

.no-image span{
  font-size:42px;
}

.no-image small{
  font-weight:900;
}

/* Favoris */
.heart{
  position:absolute;
  top:18px;
  right:18px;
  width:48px;
  height:48px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:var(--primary);
  font-size:26px;
  box-shadow:0 8px 20px rgba(14,62,97,.14);
}

.heart.is-favorite{
  color:#e63946;
}

/* Contenu carte */
.activity-content{
  padding:24px;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}

.chips span{
  padding:7px 12px;
  border-radius:999px;
  background:#eef7fb;
  color:var(--primary);
  font-size:12px;
  font-weight:900;
}

.activity-content h3{
  margin:0 0 10px;
  color:var(--primary);
  font-size:26px;
  line-height:1.15;
  letter-spacing:-.04em;
}

.activity-content p{
  margin:0;
  color:#516879;
  font-size:15.5px;
  line-height:1.6;
}

.card-bottom{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.card-bottom small{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
}

.card-bottom strong{
  display:block;
  margin-top:3px;
  color:var(--primary);
  font-size:14px;
}

.card-bottom a{
  min-width:108px;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:var(--primary);
  color:#fff;
  font-weight:900;
}

/* =========================================================
   13. BLOC POURQUOI BLUUPI
========================================================= */

.why-bluupi{
  margin:38px 0;
  padding:32px 24px;
  border-radius:34px;
  color:#fff;
  background:linear-gradient(135deg,#0E3E61,#127194,#0E8BB0);
  overflow:hidden;
}

.why-bluupi h2{
  margin:0 0 8px;
  font-size:clamp(2rem,4vw,3rem);
  line-height:1.05;
  font-weight:900;
}

.why-subtitle{
  margin:0 0 26px;
  font-size:clamp(1rem,2vw,1.25rem);
  opacity:.9;
}

/* Version slider fade */
.why-fade-slider{
  position:relative;
  height:290px;
}

.why-slide{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  opacity:0;
  transition:opacity .9s ease;
  pointer-events:none;
}

.why-slide.is-active{
  opacity:1;
  pointer-events:auto;
}

.why-item{
  display:flex;
  align-items:center;
  gap:18px;
  padding:20px;
  border-radius:24px;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.16);
}

.why-icon{
  width:64px;
  height:64px;
  flex:0 0 64px;
  display:grid;
  place-items:center;
  border-radius:20px;
  background:rgba(255,255,255,.16);
  font-size:1.8rem;
}

.why-item h3{
  margin:0 0 6px;
  font-size:1.45rem;
  line-height:1.15;
  font-weight:900;
}

.why-item p{
  margin:0;
  font-size:1.05rem;
  line-height:1.45;
  opacity:.92;
}

/* Version grille */
.why-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}

.why-line{
  display:flex;
  gap:16px;
  padding:16px;
  border-radius:22px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
  opacity:0;
  transform:translateY(18px);
  animation:whyFadeUp .7s ease forwards;
}

.why-line:nth-child(1),
.why-line:nth-child(2){
  animation-delay:.1s;
}

.why-line:nth-child(3),
.why-line:nth-child(4){
  animation-delay:.45s;
}

.why-line:nth-child(5),
.why-line:nth-child(6){
  animation-delay:.8s;
}

.why-line span{
  width:52px;
  height:52px;
  flex:0 0 52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:rgba(255,255,255,.18);
  font-size:24px;
}

.why-line h3{
  margin:0 0 6px;
  font-size:20px;
}

.why-line p{
  margin:0;
  color:rgba(255,255,255,.84);
  font-size:14.5px;
  line-height:1.5;
}

@keyframes whyFadeUp{
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* =========================================================
   14. BOTTOM NAV MOBILE
========================================================= */

.bottom-nav{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:min(100%,460px);
  height:82px;
  background:rgba(255,255,255,.96);
  border-top:1px solid var(--line);
  backdrop-filter:blur(18px);
  display:grid;
  grid-template-columns:repeat(5,1fr);
  z-index:35;
}

.bottom-nav a{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#8a98a6;
  font-size:12px;
  font-weight:650;
}

.bottom-nav i{
  width:25px;
  height:25px;
  stroke-width:2;
}

.bottom-nav a.active{
  color:var(--blue);
}
.desktop-footer{
  display:none;
}