
:root{
  --sod-blue:#003f6b;
  --sod-teal:#2fb7c4;
  --sod-teal-dark:#1598a5;
  --sod-light:#d8f0f2;
  --sod-very-light:#effafa;
  --text:#17415d;
  --muted:#5c7180;
  --white:#fff;
  --shadow:0 18px 40px rgba(0,63,107,.10);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:"Jost","Segoe UI",Arial,sans-serif;
  color:var(--text);
  background:#fff;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}

/* HEADER */
.site-hero{
  background:var(--sod-light);
  border-radius:0 0 48px 48px;
  padding:34px 24px 70px;
}
.navbar{
  width:min(1180px,92%);
  margin:auto;
  background:#fff;
  border-radius:90px;
  padding:18px 34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:34px;
  box-shadow:var(--shadow);
}
.logo{width:142px}
.menu{
  flex:1;
  display:flex;
  justify-content:center;
  gap:46px;
  font-size:18px;
  font-weight:500;
  color:var(--sod-blue);
}
.menu a:hover{color:var(--sod-teal)}
.hero-content{
  width:min(1100px,92%);
  margin:92px auto 20px;
  text-align:center;
}
.hero-content h1{
  margin:0 0 18px;
  font-size:clamp(42px,5vw,72px);
  line-height:1;
  color:var(--sod-blue);
  letter-spacing:.02em;
}
.hero-content p{
  margin:0 auto;
  max-width:780px;
  color:var(--sod-blue);
  font-size:18px;
}

/* BOUTONS DISCRETS */
.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:50px;
  padding:10px 18px;
  background:linear-gradient(90deg,var(--sod-teal-dark),var(--sod-teal));
  color:#fff;
  font-weight:700;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.02em;
  text-decoration:none;
  width:auto;
  min-width:auto;
  white-space:nowrap;
  box-shadow:0 6px 12px rgba(47,183,196,.16);
  cursor:pointer;
  transition:.25s ease;
}
.btn-primary:hover{filter:brightness(.96);transform:translateY(-1px)}

.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--sod-teal);
  color:var(--sod-blue);
  border-radius:50px;
  padding:9px 17px;
  font-weight:700;
  font-size:11px;
  background:#fff;
  text-align:center;
  text-decoration:none;
  width:auto;
  min-width:auto;
  white-space:nowrap;
}
.btn-secondary:hover{background:var(--sod-very-light)}

/* CATALOGUE */
.catalogue{
  width:min(1160px,92%);
  margin:40px auto 0;
}
.search-zone{
  max-width:680px;
  margin:0 auto 44px;
  text-align:center;
}
.search-box{
  width:100%;
  height:48px;
  border:1px solid #d9e3e7;
  border-radius:50px;
  background:#fff;
  display:flex;
  align-items:center;
  gap:14px;
  padding:0 20px;
  box-shadow:0 8px 20px rgba(0,0,0,.04);
}
.search-box span{font-size:20px;color:#7e8a94}
.search-box input{
  width:100%;
  border:0;
  outline:0;
  font-size:15px;
  color:var(--text);
  font-family:inherit;
}
.filter-buttons{
  margin-top:14px;
  display:flex;
  justify-content:center;
  gap:16px;
}
.filter-btn{
  min-width:120px;
  border:0;
  border-radius:50px;
  padding:10px 18px;
  color:#fff;
  font-weight:700;
  cursor:pointer;
  background:linear-gradient(90deg,var(--sod-teal-dark),var(--sod-teal));
  box-shadow:0 6px 12px rgba(47,183,196,.16);
  text-transform:uppercase;
  font-size:11px;
  opacity:.78;
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease, background .2s ease;
}
.filter-btn:hover{opacity:1;transform:translateY(-1px)}
.filter-btn.active{
  background:linear-gradient(90deg,var(--sod-blue),#005b8f);
  opacity:1;
  box-shadow:0 0 0 4px rgba(0,63,107,.11),0 8px 16px rgba(0,63,107,.13);
}

/* CARTES EXACTEMENT TYPE IMAGE */
.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
  align-items:stretch;
}
.card{
  background:#fff;
  border:1px solid #e8f0f2;
  border-radius:22px;
  padding:26px 28px 24px;
  box-shadow:0 12px 28px rgba(0,0,0,.10);
  min-height:500px;
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden;
}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:flex-start;
  border:1px solid var(--sod-teal);
  color:var(--sod-blue);
  border-radius:50px;
  padding:7px 16px;
  font-size:13px;
  line-height:1;
  background:#fff;
}
.icon-round{
  width:106px;
  height:106px;
  margin:-4px auto 26px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,var(--sod-teal),var(--sod-teal-dark));
  color:#fff;
  font-size:42px;
  font-weight:900;
  box-shadow:0 16px 34px rgba(47,183,196,.24);
}
.card h2{
  color:var(--sod-blue);
  margin:0 0 12px;
  font-size:26px;
  line-height:1.22;
  font-weight:900;
}
.rating{
  color:#ff9d00;
  font-weight:800;
  font-size:19px;
  margin-bottom:18px;
}
.tags{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:20px;
}
.tag{
  background:#f0f6f7;
  color:var(--sod-blue);
  border-radius:50px;
  padding:11px 19px;
  font-size:15px;
}
.card p{
  color:#344e63;
  line-height:1.55;
  margin:0 0 28px;
  font-size:19px;
  flex:1;
}
.card-actions{
  display:flex;
  gap:14px;
  align-items:center;
  margin-top:auto;
}

/* LOGOS + FOOTER */
.logo-band{
  width:min(900px,92%);
  margin:48px auto 50px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:100px;
}
.logo-band img{max-height:70px;width:auto;object-fit:contain}
.footer{
  background:var(--sod-teal);
  padding:70px 24px 55px;
  text-align:center;
  color:var(--sod-blue);
}
.footer-logo{
  width:370px;
  margin:0 auto 28px;
}
.footer p{font-size:18px;margin:0}

/* PAGES DETAIL */
.detail-main{
  width:min(1100px,92%);
  margin:60px auto;
}
.detail-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:28px;
  align-items:start;
}
.panel{
  background:#fff;
  border:1px solid #e6f1f3;
  border-radius:24px;
  padding:32px;
  box-shadow:var(--shadow);
  margin-bottom:24px;
}
.panel h2{
  margin:0 0 18px;
  color:var(--sod-blue);
  font-size:30px;
}
.panel h3{color:var(--sod-blue);margin:22px 0 10px}
.panel p,.panel li{line-height:1.7;color:#526c7b}
.info-list{display:grid;gap:12px}
.info-item{
  background:#f1fbfc;
  border-radius:18px;
  padding:15px 18px;
}
.form input,.form textarea,.form select{
  width:100%;
  border:1px solid #dbe8ec;
  border-radius:16px;
  padding:14px 16px;
  margin-bottom:12px;
  font-family:inherit;
  font-size:15px;
}
.form textarea{min-height:120px;resize:vertical}
.back-link{
  display:inline-block;
  margin-bottom:22px;
  color:var(--sod-blue);
  font-weight:800;
}

@media (max-width:900px){
  .navbar{border-radius:30px;flex-direction:column;padding:22px}
  .menu{flex-wrap:wrap;gap:18px}
  .cards,.detail-grid{grid-template-columns:1fr}
  .logo-band{gap:35px;flex-wrap:wrap}
  .card{min-height:auto}
  .card-actions{flex-wrap:wrap}
}


/* Alignement uniforme des cartes catalogue */
.card h2{
  min-height:64px;
  display:flex;
  align-items:flex-start;
}

.rating{
  min-height:28px;
}

.tags{
  min-height:54px;
  align-items:flex-start;
}

.card p{
  min-height:132px;
}

.card-actions{
  min-height:44px;
  align-items:center;
}



/* Ajustements demandés */
.rating{
  display:none;
}

.rating.success-rate{
  display:block !important;
  color:#ff9d00;
  font-weight:800;
  font-size:18px;
  margin-bottom:18px;
}

.card-actions .btn-primary,
.card-actions .btn-secondary,
.filter-btn{
  padding:10px 18px;
  font-size:11px;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
}


.quote-main{
  width:min(900px,92%);
  margin:90px auto 70px;
}
.quote-intro{
  margin-bottom:56px;
  color:var(--sod-blue);
}
.quote-intro h2{
  font-size:18px;
  margin:0 0 18px;
  color:var(--sod-blue);
}
.quote-intro p{
  line-height:1.7;
  font-weight:600;
}
.quote-form{
  display:grid;
  gap:24px;
}
.quote-options{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  color:var(--sod-blue);
  font-weight:500;
}
.quote-options label{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.quote-form input,
.quote-form textarea{
  width:100%;
  border:1px solid #bfcbd1;
  border-radius:8px;
  min-height:58px;
  padding:0 18px;
  color:var(--sod-blue);
  font-family:inherit;
  font-size:15px;
}
.quote-form textarea{
  min-height:150px;
  padding-top:18px;
  resize:vertical;
}
.quote-form .btn-primary{
  justify-self:start;
}


/* Centrage automatique lorsqu'une seule carte est présente */
.cards{
  justify-content:center;
}

.cards:has(.card:only-child){
  grid-template-columns:minmax(320px,420px);
  justify-content:center;
}
