/* Guides locaux — pages détaillées des communes */

.commune-detail-page{
  --detail-prune:#5b214f;
  --detail-violet:#73507f;
  --detail-gold:#c89252;
  --detail-camel:#b97838;
  --detail-ivory:#fffaf6;
  --detail-cream:#f6ede4;
  --detail-ink:#493f46;
  background:var(--detail-ivory);
}

.commune-detail-page>main{
  margin:0!important;
  padding:0!important;
  max-width:none!important;
}

.commune-detail-hero{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  height:21.95vw;
  min-height:330px;
  overflow:hidden;
  padding:22px 4.2%;
  background:#5b214f;
  color:#fff;
}

.commune-detail-hero-image{
  position:absolute;
  z-index:0;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center var(--commune-focus,50%);
  filter:saturate(1.04) contrast(1.04);
}

.commune-detail-hero-shade{
  position:absolute;
  z-index:1;
  inset:0;
  background:
    linear-gradient(90deg,rgba(57,20,48,.90) 0%,rgba(76,28,64,.78) 31%,rgba(67,30,60,.34) 55%,rgba(36,20,31,.06) 82%),
    linear-gradient(0deg,rgba(38,19,32,.12),rgba(38,19,32,.02));
  pointer-events:none;
}

.commune-detail-hero::before,
.commune-detail-hero::after{
  content:"";
  position:absolute;
  z-index:2;
  border:1px solid rgba(231,184,110,.24);
  border-radius:50%;
  pointer-events:none;
}

.commune-detail-hero::before{
  width:370px;
  height:370px;
  left:-210px;
  bottom:-260px;
}

.commune-detail-hero::after{
  width:230px;
  height:230px;
  left:34%;
  top:-190px;
}

.commune-hero-copy{
  position:relative;
  z-index:3;
  width:min(49%,680px);
}

.commune-breadcrumb{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  margin-bottom:10px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.88);
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.08em;
  text-decoration:none;
  text-transform:uppercase;
  backdrop-filter:blur(7px);
}

.commune-hero-eyebrow{
  display:block;
  margin-bottom:5px;
  color:#efc27d;
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.2em;
}

.commune-detail-hero h1{
  margin:0;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(3.2rem,4.7vw,5.25rem);
  font-weight:600;
  line-height:.85;
  letter-spacing:-.035em;
}

.commune-hero-script{
  margin-top:8px;
  color:#efc27d;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(1.55rem,2vw,2.25rem);
  font-style:italic;
  font-weight:500;
  line-height:1;
}

.commune-hero-rule{
  display:block;
  width:64px;
  height:2px;
  margin:12px 0 10px;
  background:linear-gradient(90deg,#efc27d,rgba(239,194,125,.12));
}

.commune-detail-hero p{
  max-width:610px;
  margin:0;
  color:rgba(255,255,255,.88);
  font-size:1rem;
  line-height:1.62;
}

.commune-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:15px;
}

.commune-hero-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 18px;
  border-radius:5px;
  font-size:.82rem;
  font-weight:600;
  text-decoration:none;
  transition:transform .2s ease,background-color .2s ease,border-color .2s ease;
}

.commune-hero-actions .primary{
  background:linear-gradient(135deg,#dda34f,#bd7434);
  color:#fff;
  box-shadow:0 10px 24px rgba(31,14,25,.2);
}

.commune-hero-actions .secondary{
  border:1px solid rgba(255,255,255,.34);
  background:rgba(255,255,255,.07);
  color:#fff;
  backdrop-filter:blur(6px);
}

.commune-hero-actions a:hover{transform:translateY(-2px)}

.commune-detail-body{
  position:relative;
  overflow:hidden;
  padding:0 4.2% 62px;
  background:
    radial-gradient(circle at 97% 17%,rgba(115,80,127,.10),transparent 25rem),
    radial-gradient(circle at 2% 62%,rgba(200,146,82,.10),transparent 23rem),
    linear-gradient(180deg,#fffdf9 0%,#f8f0e8 49%,#fffaf6 100%);
}

.commune-detail-inner{
  width:min(1180px,100%);
  margin:0 auto;
}

.commune-facts{
  position:relative;
  z-index:4;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr);
  overflow:hidden;
  margin:0 0 62px;
  transform:translateY(-27px);
  border:1px solid rgba(200,146,82,.26);
  border-radius:13px;
  background:rgba(255,253,249,.97);
  box-shadow:0 20px 45px rgba(72,35,59,.13);
  backdrop-filter:blur(12px);
}

.commune-fact{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  min-height:148px;
  box-sizing:border-box;
  padding:29px 22px 27px;
  border-right:1px solid rgba(200,146,82,.22);
}

.commune-fact:last-child{border-right:0}

.commune-fact strong{
  display:block;
  overflow-wrap:anywhere;
  color:var(--detail-prune);
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(1.85rem,2.8vw,2.65rem);
  font-weight:600;
  line-height:1;
}

.commune-fact span{
  display:block;
  margin-top:9px;
  color:#766b72;
  font-size:.75rem;
  font-weight:600;
  line-height:1.4;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.commune-fact--text strong{
  font-size:clamp(1.75rem,2.25vw,2.2rem);
  line-height:1.06;
}

.commune-fact--text span{margin-top:11px}

.commune-section-heading{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);
  gap:52px;
  align-items:end;
  margin-bottom:27px;
}

.commune-section-heading .kicker,
.commune-audience .kicker,
.commune-nearby-head .kicker{
  display:block;
  margin-bottom:8px;
  color:var(--detail-camel);
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.17em;
}

.commune-section-heading h2,
.commune-nearby-head h2,
.commune-final-cta h2{
  margin:0;
  color:var(--detail-prune);
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(2.5rem,3.7vw,3.7rem);
  font-weight:600;
  line-height:.94;
  letter-spacing:-.025em;
}

.commune-section-heading>p{
  margin:0;
  padding-left:24px;
  border-left:1px solid rgba(185,121,56,.42);
  color:#5b5258;
  font-size:.95rem;
  line-height:1.75;
}

.commune-story{
  margin-bottom:62px;
}

.commune-story-grid{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);
  gap:22px;
}

.commune-story-copy,
.commune-story-note{
  border:1px solid rgba(200,146,82,.22);
  border-radius:13px;
}

.commune-story-copy{
  padding:30px 32px;
  background:rgba(255,253,249,.94);
  box-shadow:0 12px 30px rgba(74,35,60,.055);
}

.commune-story-copy p{
  margin:0;
  color:#544b51;
  font-size:1rem;
  line-height:1.82;
}

.commune-story-copy p+p{margin-top:13px}

.commune-story-note{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:31px 30px;
  background:linear-gradient(145deg,#5b214f,#73507f);
  color:#fff;
}

.commune-story-note::after{
  content:"“";
  position:absolute;
  z-index:-1;
  right:17px;
  bottom:-51px;
  color:rgba(239,194,125,.14);
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:12rem;
  line-height:1;
}

.commune-story-note span{
  display:block;
  margin-bottom:14px;
  color:#efc27d;
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.16em;
}

.commune-story-note p{
  margin:0;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.72rem;
  font-style:italic;
  font-weight:500;
  line-height:1.18;
}

.commune-amenities-section{margin-bottom:64px}

.commune-amenities{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
}

.commune-amenity{
  position:relative;
  overflow:hidden;
  min-height:225px;
  padding:24px 22px 23px;
  border:1px solid rgba(200,146,82,.24);
  border-radius:12px;
  background:rgba(255,253,249,.95);
  box-shadow:0 11px 28px rgba(74,35,60,.05);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}

.commune-amenity::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:4px;
  background:linear-gradient(90deg,var(--detail-gold),var(--detail-violet));
}

.commune-amenity:hover{
  transform:translateY(-4px);
  border-color:rgba(200,146,82,.48);
  box-shadow:0 18px 38px rgba(74,35,60,.10);
}

.commune-amenity-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:43px;
  height:43px;
  margin-bottom:16px;
  border-radius:11px;
  background:linear-gradient(135deg,#f4dfc9,#ede2f0);
  color:var(--detail-prune);
}

.commune-amenity-icon svg{
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:1.7;
}

.commune-amenity h3{
  margin:0 0 9px;
  color:var(--detail-prune);
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.65rem;
  font-weight:600;
  line-height:1;
}

.commune-amenity p{
  margin:0;
  color:#5c5359;
  font-size:.9rem;
  line-height:1.68;
}

.commune-audiences{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  margin-bottom:62px;
}

.commune-audience{
  position:relative;
  overflow:hidden;
  padding:34px 33px 32px;
  border-radius:13px;
}

.commune-audience.buyer{
  border:1px solid rgba(115,80,127,.24);
  background:linear-gradient(145deg,#fffdf9,#eee4f0);
}

.commune-audience.seller{
  border:1px solid rgba(200,146,82,.28);
  background:linear-gradient(145deg,#f8eee3,#fffdf9);
}

.commune-audience h2{
  margin:0 0 10px;
  color:var(--detail-prune);
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:2.5rem;
  font-weight:600;
  line-height:.98;
}

.commune-audience>p{
  margin:0 0 16px;
  color:#584f55;
  font-size:.92rem;
  line-height:1.7;
}

.commune-audience ul{
  display:grid;
  gap:10px;
  margin:0;
  padding:0;
  list-style:none;
}

.commune-audience li{
  position:relative;
  padding-left:19px;
  color:#4f474c;
  font-size:.88rem;
  line-height:1.58;
}

.commune-audience li::before{
  content:"";
  position:absolute;
  left:0;
  top:.52em;
  width:7px;
  height:7px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--detail-gold),var(--detail-violet));
}

.commune-local-insight{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:24px;
  align-items:center;
  margin-bottom:66px;
  padding:26px 30px;
  border:1px solid rgba(200,146,82,.24);
  border-radius:13px;
  background:#fffdf9;
  box-shadow:0 14px 32px rgba(74,35,60,.07);
}

.commune-local-insight .monogram{
  display:flex;
  align-items:center;
  justify-content:center;
  width:58px;
  height:58px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--detail-prune),var(--detail-violet));
  color:#efc27d;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.45rem;
  font-weight:600;
}

.commune-local-insight span{
  display:block;
  margin-bottom:5px;
  color:var(--detail-camel);
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.15em;
}

.commune-local-insight p{
  margin:0;
  color:#51484e;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.38rem;
  font-style:italic;
  line-height:1.28;
}

.commune-local-insight a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:43px;
  padding:0 17px;
  border-radius:5px;
  background:var(--detail-prune);
  color:#fff;
  font-size:.82rem;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
}

.commune-nearby{margin-bottom:62px}

.commune-nearby-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:25px;
}

.commune-nearby-head p{
  max-width:470px;
  margin:0;
  color:#5b5258;
  font-size:.9rem;
  line-height:1.7;
}

.nearby-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:17px;
}

.nearby-card{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:flex-end;
  min-height:255px;
  overflow:hidden;
  padding:22px;
  border-radius:12px;
  background:#4f2743;
  color:#fff;
  text-decoration:none;
  box-shadow:0 14px 32px rgba(63,30,52,.13);
}

.nearby-card-image{
  position:absolute;
  z-index:0;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(1.03) contrast(1.05);
  transition:transform .65s cubic-bezier(.2,.75,.2,1);
}

.nearby-card::after{
  content:"";
  position:absolute;
  z-index:1;
  inset:0;
  background:linear-gradient(180deg,rgba(45,23,37,.02) 27%,rgba(57,25,48,.91) 100%);
}

.nearby-card>div{
  position:relative;
  z-index:2;
  width:100%;
}

.nearby-card:hover .nearby-card-image{transform:scale(1.045)}

.nearby-card span{
  display:block;
  margin-bottom:5px;
  color:#efc27d;
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.14em;
}

.nearby-card h3{
  margin:0 0 5px;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:2rem;
  font-weight:600;
  line-height:1;
}

.nearby-card p{
  margin:0;
  color:rgba(255,255,255,.83);
  font-size:.82rem;
  line-height:1.5;
}

.nearby-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
  padding:18px 20px;
  border:1px solid rgba(200,146,82,.22);
  border-radius:11px;
  background:rgba(255,253,249,.86);
}

.nearby-pills strong{
  align-self:center;
  margin-right:5px;
  color:var(--detail-prune);
  font-size:.78rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.nearby-pills span{
  padding:7px 11px;
  border-radius:999px;
  background:#f1e5db;
  color:#5a4653;
  font-size:.78rem;
  font-weight:500;
}

.commune-final-cta{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);
  gap:46px;
  align-items:center;
  overflow:hidden;
  padding:42px 44px;
  border-radius:13px;
  background:linear-gradient(128deg,#512045 0%,#6a2c5c 56%,#76507d 100%);
  color:#fff;
  box-shadow:0 22px 50px rgba(74,35,60,.19);
}

.commune-final-cta::before{
  content:"";
  position:absolute;
  z-index:-1;
  width:310px;
  height:310px;
  right:-105px;
  top:-165px;
  border:1px solid rgba(239,194,125,.2);
  border-radius:50%;
}

.commune-final-cta .kicker{
  display:block;
  margin-bottom:8px;
  color:#efc27d;
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.17em;
}

.commune-final-cta h2{color:#fff}

.commune-final-cta p{
  margin:13px 0 0;
  color:rgba(255,255,255,.83);
  font-size:.9rem;
  line-height:1.68;
}

.commune-final-actions{display:grid;gap:10px}

.commune-final-actions a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:47px;
  padding:0 18px;
  border-radius:5px;
  font-size:.82rem;
  font-weight:600;
  text-decoration:none;
}

.commune-final-actions .primary{
  background:linear-gradient(135deg,#dda34f,#bd7434);
  color:#fff;
}

.commune-final-actions .secondary{
  border:1px solid rgba(255,255,255,.3);
  color:#fff;
}

.commune-sources{
  margin-top:18px;
  color:#736970;
  font-size:.75rem;
  line-height:1.65;
}

.commune-sources summary{
  width:max-content;
  max-width:100%;
  cursor:pointer;
  color:#6c5365;
  font-weight:600;
}

.commune-sources p{margin:8px 0 0}
.commune-sources a{color:var(--detail-prune)}

@media(max-width:1050px){
  .commune-amenities{grid-template-columns:repeat(2,minmax(0,1fr))}
  .commune-amenity{min-height:200px}
}

@media(max-width:900px){
  .commune-detail-hero{
    align-items:flex-end;
    height:auto;
    min-height:590px;
    padding:210px 6% 38px;
  }
  .commune-detail-hero-image{object-position:center var(--commune-focus-mobile,var(--commune-focus,50%))}
  .commune-detail-hero-shade{
    background:linear-gradient(180deg,rgba(45,19,38,.06) 8%,rgba(58,23,48,.20) 36%,rgba(64,24,53,.91) 71%,rgba(64,24,53,.98) 100%);
  }
  .commune-hero-copy{width:100%;max-width:680px}
  .commune-detail-hero h1{font-size:clamp(3.45rem,10vw,5rem)}
  .commune-detail-hero p{font-size:1rem}
  .commune-detail-body{padding:0 5% 48px}
  .commune-facts{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:40px}
  .commune-fact:nth-child(2){border-right:0}
  .commune-fact:nth-child(-n+2){border-bottom:1px solid rgba(200,146,82,.22)}
  .commune-section-heading{grid-template-columns:1fr;gap:15px}
  .commune-section-heading>p{padding-left:17px}
  .commune-story-grid{grid-template-columns:1fr}
  .commune-audiences{grid-template-columns:1fr}
  .commune-local-insight{grid-template-columns:auto 1fr}
  .commune-local-insight a{grid-column:1/-1}
  .commune-nearby-head{align-items:flex-start;flex-direction:column;gap:12px}
  .nearby-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nearby-card:last-child{grid-column:1/-1;min-height:230px}
  .commune-final-cta{grid-template-columns:1fr;gap:25px}
  .commune-final-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:620px){
  .commune-detail-hero{min-height:570px;padding:190px 5% 31px}
  .commune-breadcrumb{font-size:.75rem}
  .commune-detail-hero h1{font-size:clamp(3.05rem,15vw,4.35rem)}
  .commune-hero-script{font-size:1.62rem}
  .commune-hero-actions{display:grid;grid-template-columns:1fr}
  .commune-hero-actions a{width:100%;box-sizing:border-box}
  .commune-facts{transform:translateY(-18px)}
  .commune-fact{min-height:132px;padding:23px 16px 21px}
  .commune-fact strong{font-size:1.95rem}
  .commune-fact span{font-size:.75rem}
  .commune-story,.commune-amenities-section,.commune-audiences,.commune-local-insight,.commune-nearby{margin-bottom:46px}
  .commune-section-heading h2,.commune-nearby-head h2,.commune-final-cta h2{font-size:2.55rem}
  .commune-story-copy,.commune-story-note{padding:25px 22px}
  .commune-story-note p{font-size:1.48rem}
  .commune-amenities{grid-template-columns:1fr;gap:12px}
  .commune-amenity{min-height:0;padding:22px 20px}
  .commune-audience{padding:28px 23px 27px}
  .commune-audience h2{font-size:2.25rem}
  .commune-local-insight{grid-template-columns:1fr;padding:25px 22px;text-align:center}
  .commune-local-insight .monogram{margin:0 auto}
  .commune-local-insight a{grid-column:auto}
  .nearby-grid{grid-template-columns:1fr}
  .nearby-card,.nearby-card:last-child{grid-column:auto;min-height:230px}
  .nearby-pills{padding:16px}
  .nearby-pills strong{width:100%;margin-bottom:3px}
  .commune-final-cta{padding:33px 24px}
  .commune-final-actions{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){
  .commune-hero-actions a,
  .commune-amenity,
  .nearby-card-image{transition:none!important}
}
