:root{
  --brand:#ff6a00;
  --brand-700:#e65d00;
  --blue:#2563eb;
  --navy:#172554;
  --ink:#111827;
  --text:#263244;
  --muted:#6b7280;
  --line:#e8edf4;
  --soft:#f7f8fb;
  --white:#fff;
  --success:#16a34a;
  --danger:#dc2626;
  --shadow:0 14px 36px rgba(17,24,39,.08);
}

body{
  background:#fff;
  color:var(--text);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
a{text-decoration:none!important;color:inherit}

.container{
  width:min(1180px,100%);
  margin:0 auto;
  padding:0 12px 44px;
}

.magasin-header{
  position:relative;
  height:clamp(190px,28vw,310px);
  overflow:hidden;
  border-radius:0 0 8px 8px;
  background:linear-gradient(135deg,var(--navy),var(--brand));
  box-shadow:var(--shadow);
}
.couverture_div,.couverture{
  width:100%;
  height:100%;
}
.couverture{
  display:block;
  object-fit:cover;
}

.profile-section{
  position:relative;
  z-index:2;
  margin:-52px auto 0;
  width:min(1040px,calc(100% - 20px));
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:var(--shadow);
  padding:64px 18px 18px;
}
.profile-container{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.profile-picture-wrapper{
  position:absolute;
  top:-54px;
  left:50%;
  transform:translateX(-50%);
  width:108px;
  height:108px;
  border-radius:50%;
  border:4px solid #fff;
  background:#fff;
  overflow:hidden;
  box-shadow:0 12px 28px rgba(17,24,39,.18);
}
.profile-picture{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.magasin-name{
  margin:0 0 8px;
  color:var(--ink);
  font-size:clamp(1.55rem,3vw,2.25rem);
  font-weight:900;
  letter-spacing:0;
}
.magasin-description{
  max-width:760px;
  margin:0 auto 16px;
  color:#3f4a5c;
  line-height:1.65;
  font-size:.98rem;
}

.store-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  width:min(520px,100%);
  margin:4px auto 16px;
}
.store-stat{
  padding:11px 8px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--soft);
}
.store-stat strong{
  display:block;
  color:var(--ink);
  font-size:1.15rem;
  line-height:1;
}
.store-stat span{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:700;
  text-transform:uppercase;
}

.profile-info{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}
.profile-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}
.btn-edit-profile,.btn-leave-review,.section-action,.primair,.btn-submit-review,.btn-share{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  border-radius:8px;
  padding:9px 13px;
  font-weight:800;
  cursor:pointer;
}
.btn-edit-profile,.section-action,.primair,.btn-submit-review{
  background:var(--brand);
  color:#fff!important;
  box-shadow:0 10px 22px rgba(255,106,0,.22);
}
.btn-leave-review,.btn-share{
  background:#eef3ff;
  color:#1d4ed8;
}

.rating-section{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:10px;
}
.rating-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
}
.stars{display:flex;gap:1px}
.star{color:#d1d5db;font-size:1rem}
.star.filled{color:#f59e0b}
.rating-value{
  color:#374151;
  font-size:.9rem;
  font-weight:800;
}

.review-form-container{
  width:min(620px,100%);
  margin:18px auto 0;
  text-align:left;
  border-top:1px solid var(--line);
  padding-top:16px;
}
.review-form-container h3{
  color:var(--ink);
  font-size:1rem;
}
.review-form-container textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px 12px;
  resize:vertical;
}
.star-rating{
  display:flex;
  flex-direction:row-reverse;
  justify-content:flex-end;
  gap:4px;
}
.star-rating input{display:none}
.star-rating label{
  color:#d1d5db;
  font-size:1.35rem;
  cursor:pointer;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label{color:#f59e0b}

.toggle-info-btn{
  display:flex;
  align-items:center;
  gap:8px;
  margin:16px auto;
  min-height:40px;
  padding:9px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  font-weight:800;
  box-shadow:0 8px 18px rgba(17,24,39,.06);
  cursor:pointer;
}

.contact-info-section{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .35s ease, opacity .2s ease;
}
.contact-info-section.expanded{
  max-height:900px;
  opacity:1;
  margin-bottom:20px;
}
.contact-info-container{
  width:min(1040px,calc(100% - 20px));
  margin:0 auto;
  border:1px solid var(--line);
  border-radius:8px;
  padding:16px;
  background:#fff;
  box-shadow:0 10px 26px rgba(17,24,39,.06);
}
.contact-info-container h3{
  margin:0 0 12px;
  color:var(--ink);
  font-size:1.05rem;
  font-weight:900;
}
.contact-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.contact-item{
  min-height:64px;
  display:flex;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--soft);
}
.contact-link{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
}
.contact-icon{
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fff;
  color:var(--brand);
  box-shadow:0 6px 14px rgba(17,24,39,.08);
}
.contact-details{min-width:0}
.contact-label{
  display:block;
  color:var(--muted);
  font-size:.72rem;
  font-weight:800;
  text-transform:uppercase;
}
.contact-value{
  display:block;
  color:var(--ink);
  font-weight:800;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.social-share{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
}

.section-heading{
  width:min(1040px,calc(100% - 20px));
  margin:26px auto 12px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}
.section-kicker{
  display:block;
  color:var(--brand);
  font-size:.74rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.section-heading h2{
  margin:0;
  color:var(--ink);
  font-size:clamp(1.35rem,3vw,1.9rem);
  font-weight:900;
}

.articles-list{
  width:min(1040px,calc(100% - 20px));
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.article-card{
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:0 10px 24px rgba(17,24,39,.06);
  transition:transform .12s ease, box-shadow .12s ease;
}
@media (hover:hover){
  .article-card:hover{
    transform:translateY(-2px);
    box-shadow:0 16px 32px rgba(17,24,39,.1);
  }
}
.article-media-link{display:block}
.images-slider{
  position:relative;
  aspect-ratio:1/1;
  overflow:hidden;
  background:#f3f4f6;
}
.slides-container{
  display:flex;
  height:100%;
  transition:transform .55s ease;
}
.slide{
  min-width:100%;
  height:100%;
}
.slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.article-badge{
  position:absolute;
  top:8px;
  left:8px;
  z-index:2;
  padding:5px 8px;
  border-radius:999px;
  color:#fff;
  font-size:.72rem;
  font-weight:900;
}
.article-badge.out{background:var(--danger)}
.article-badge.muted{background:#6b7280}
.article-details{
  padding:10px;
}
.nom_article{
  margin:0 0 10px;
  color:var(--ink);
  font-size:.98rem;
  line-height:1.25;
  font-weight:850;
  min-height:2.4em;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.article-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.price{
  min-width:0;
  color:var(--brand);
  font-size:.92rem;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.acheter-btn{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--brand);
  color:#fff!important;
  box-shadow:0 8px 18px rgba(255,106,0,.25);
}
.owner-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.owner-btn{
  padding:6px 8px;
  border-radius:7px;
  background:#eef3ff;
  color:#1d4ed8!important;
  font-size:.75rem;
  font-weight:900;
}
.owner-btn.danger{
  background:#fef2f2;
  color:var(--danger)!important;
}
.no-articles{
  grid-column:1 / -1;
  padding:28px;
  text-align:center;
  color:var(--muted);
  border:1px dashed var(--line);
  border-radius:8px;
  background:var(--soft);
}

.message-interceptor{
  position:fixed;
  top:16px;
  right:16px;
  z-index:1000;
  width:min(360px,calc(100vw - 24px));
}
.alert{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
  padding:12px 14px;
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow);
  border-left:4px solid #d1d5db;
}
.alert-success{border-left-color:var(--success)}
.alert-error{border-left-color:var(--danger)}
.alert-content{display:flex;align-items:center;gap:9px}
.close-alert{
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:1.2rem;
  cursor:pointer;
}

@media (max-width:1024px){
  .articles-list{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:720px){
  .container{padding-left:0;padding-right:0}
  .magasin-header{border-radius:0}
  .profile-section{width:calc(100% - 18px)}
  .contact-grid{grid-template-columns:1fr}
  .section-heading{align-items:center}
  .articles-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}
@media (max-width:420px){
  .store-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .store-stat{padding:9px 4px}
  .owner-actions{width:100%;justify-content:flex-start}
}
