/* Proposition locale — modernisation éditoriale de l'accueil */
.home-page{
  --home-navy:#102f58;
  --home-blue:#1f5f9e;
  --home-green:#2f8065;
  --home-cream:#f7f4ed;
  --home-mist:#f1f6f8;
  --home-radius:22px;
}

.home-page .site-header{
  border-bottom-color:rgba(23,63,115,.08);
  box-shadow:0 8px 30px rgba(17,43,77,.055);
}

.home-page .header-inner{min-height:72px}
.home-page .brand-mark img{height:48px}

.home-page .hero{
  min-height:520px;
  padding-block:54px;
  background:
    linear-gradient(90deg,rgba(7,25,48,.86) 0%,rgba(7,25,48,.69) 48%,rgba(7,25,48,.5) 100%),
    url("assets/img/mairie-roppe-hero.webp") center 44%/cover no-repeat;
}

.home-page .hero-inner{
  grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);
  gap:clamp(34px,6vw,76px);
}

.home-page .hero h1{
  font-size:clamp(3rem,5.8vw,4.8rem);
  max-width:760px;
}

.home-page .hero .lead{max-width:620px}

.home-page .hero-card{
  border-radius:18px!important;
  padding:18px 20px 18px 28px!important;
  color:#fff!important;
  border:0!important;
  border-left:1px solid rgba(255,255,255,.38)!important;
  background:linear-gradient(100deg,rgba(8,30,53,.46) 0%,rgba(8,30,53,.25) 68%,rgba(8,30,53,.06) 100%)!important;
  box-shadow:none!important;
  backdrop-filter:blur(5px)!important;
  -webkit-backdrop-filter:blur(5px)!important;
  text-shadow:0 2px 16px rgba(0,0,0,.38)!important;
}

.home-page .hero-card .hero-card-heading,
.home-page .hero-card .hero-card-heading span,
.home-page .hero-card p,
.home-page .hero-card strong{color:#fff!important}
.home-page .hero-card .muted{color:rgba(255,255,255,.78)!important}
.home-page .hero-card a{color:#fff!important;text-decoration-color:rgba(255,255,255,.55)!important}
.home-page .hero-card .note{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.07);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}
.home-page .hero-card .mairie-hours-today span{color:rgba(255,255,255,.72)!important}
.home-page .hero-card .mairie-hours-today strong{color:#fff!important}
.home-page .hero-card .mairie-hours-details{border-top-color:rgba(255,255,255,.15)}
.home-page .hero-card .mairie-hours-details summary{color:#fff!important}
.home-page .hero-card>.btn{
  color:#fff!important;
  border-color:rgba(255,255,255,.24)!important;
  background:rgba(255,255,255,.08)!important;
}
.home-page .hero-card>.btn:hover{background:rgba(255,255,255,.16)!important}

.home-page .section{padding-block:68px}
.home-page .section-head{margin-bottom:28px}
.home-page .section-head h2{
  font-size:clamp(2rem,3.4vw,2.8rem);
  line-height:1.05;
}

.home-page .section-link{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:.65rem .9rem;
  border:1px solid rgba(23,63,115,.14);
  border-radius:999px;
  background:#fff;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}

.home-page .section-link:hover{
  background:#edf4fb;
  border-color:rgba(23,63,115,.28);
  transform:translateY(-1px);
}

/* Services : des raccourcis plus légers, moins de « boîtes ». */
.home-page .essentials-section{
  position:relative;
  overflow:hidden;
  background:linear-gradient(125deg,#edf4f7 0%,#f7fafb 55%,#fff 100%);
  border:0;
}

.home-page .essentials-section::before{
  content:"";
  position:absolute;
  left:-140px;
  bottom:-220px;
  width:420px;
  height:420px;
  border-radius:50%;
  background:rgba(47,128,101,.07);
}

.home-page .essentials-section>.container{
  position:relative;
  display:grid;
  grid-template-columns:minmax(230px,.62fr) minmax(0,1.38fr);
  gap:clamp(42px,7vw,90px);
  align-items:start;
}

.home-page .essentials-section .section-head{
  position:sticky;
  top:104px;
  margin:0;
  padding-top:8px;
}

.home-page .essentials-section .section-head-row{display:block}
.home-page .essentials-section .section-head h2{max-width:360px}
.home-page .essentials-section .section-head .muted{max-width:330px;line-height:1.7}

.home-page .essentials-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 28px;
}

.home-page .essential-card{
  min-height:104px;
  padding:18px 4px;
  border:0;
  border-bottom:1px solid #e1e8ef;
  border-radius:0;
  box-shadow:none;
  background:transparent;
}

.home-page .essential-card:hover,
.home-page .essential-card:focus-visible{
  transform:translateX(4px);
  border-color:#a8bfd5;
  box-shadow:none;
}

.home-page .essential-icon{
  width:44px;
  height:44px;
  border-radius:13px;
  background:#eef4f7;
}

/* Actualités : trois cartes équilibrées et immédiatement comparables. */
.home-page #actus{
  position:relative;
  overflow:hidden;
  border-top:1px solid rgba(23,63,115,.06);
  background:
    radial-gradient(circle at 92% 8%,rgba(38,104,160,.12) 0,rgba(38,104,160,0) 31%),
    linear-gradient(145deg,#f4f8fc 0%,#eef4f8 48%,#f9fbfc 100%);
}

.home-page #actus::before{
  content:"";
  position:absolute;
  left:-110px;
  top:90px;
  width:220px;
  height:220px;
  border:1px solid rgba(31,95,158,.1);
  border-radius:50%;
  box-shadow:0 0 0 45px rgba(31,95,158,.025),0 0 0 90px rgba(31,95,158,.018);
  pointer-events:none;
}

.home-page #actus>.container{position:relative;z-index:1}

.home-page #newsGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.home-page #newsGrid .news-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  border:0;
  border-radius:var(--home-radius);
  box-shadow:0 16px 45px rgba(22,46,75,.085);
}

.home-page #newsGrid .news-media-full{height:220px}
.home-page #newsGrid .news-content{display:flex;flex:1;flex-direction:column;padding:20px}
.home-page #newsGrid .news-content h3{font-size:1.16rem;line-height:1.28}
.home-page #newsGrid .news-content .small{font-size:.88rem;line-height:1.48}
.home-page #newsGrid .news-content .link{margin-top:auto;padding-top:12px}

/* Agenda : un bandeau compact, distinct du fil d'actualités. */
.home-page #agenda{
  position:relative;
  overflow:hidden;
  background:var(--home-navy);
  color:#fff;
}

.home-page #agenda::after{
  content:"AGENDA";
  position:absolute;
  right:-24px;
  bottom:-24px;
  color:rgba(255,255,255,.055);
  font-size:clamp(6rem,17vw,13rem);
  font-weight:900;
  letter-spacing:-.08em;
  line-height:.8;
  pointer-events:none;
}

.home-page #agenda .container{position:relative;z-index:1}
.home-page #agenda h2,
.home-page #agenda .section-eyebrow{color:#fff}
.home-page #agenda .muted{color:rgba(255,255,255,.72)}
.home-page #agenda .section-link{color:#fff;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.25)}
.home-page #agenda .agenda-card{border:0;box-shadow:none}
.home-page #agenda .agenda-content{color:var(--v3-ink)}
.home-page #agenda .agenda-content h3{color:var(--v3-ink)}
.home-page #agenda .agenda-content p{color:var(--v3-muted)}
.home-page #agenda .agenda-content .link{color:var(--v3-blue)}

/* Présentation de la commune : moins haute, plus magazine. */
.home-page .village-story{padding-block:72px;background:var(--home-cream)}
.home-page .village-story-inner{
  grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);
  border:0;
  border-radius:28px;
  box-shadow:0 20px 55px rgba(38,45,48,.09);
}
.home-page .village-story-photo{min-height:390px}
.home-page .village-story-copy{padding:38px 42px}
.home-page .village-story-copy h2{font-size:clamp(2rem,3.3vw,2.8rem)}

/* Documents : liens sobres sur un fond légèrement teinté. */
.home-page #demarches{
  position:relative;
  overflow:hidden;
  border:0;
  background:linear-gradient(135deg,#e7f1ed 0%,#f4f8f5 100%);
}

.home-page #demarches::after{
  content:"DOCUMENTS";
  position:absolute;
  right:-18px;
  bottom:-30px;
  color:rgba(47,128,101,.055);
  font-size:clamp(5rem,13vw,11rem);
  font-weight:900;
  letter-spacing:-.08em;
  line-height:.8;
  pointer-events:none;
}

.home-page #demarches>.container{position:relative;z-index:1}
.home-page #demarches .section-head{align-items:center}
.home-page #demarches .section-head h2{color:#174b3b}
.home-page #demarches .section-head p{max-width:420px}
.home-page #demarches .modern-tiles{gap:14px}
.home-page #demarches .modern-tiles .tile{
  min-height:96px;
  border:1px solid rgba(47,128,101,.14);
  border-radius:18px;
  background:rgba(255,255,255,.82);
  box-shadow:0 10px 30px rgba(28,78,62,.055);
  backdrop-filter:blur(8px);
}
.home-page #demarches .modern-tiles .tile-icon{filter:grayscale(.15)}
.home-page #demarches .modern-tiles .tile:hover{
  border-color:rgba(47,128,101,.35);
  box-shadow:0 14px 32px rgba(28,78,62,.1);
}

/* Contacts : composition en deux volets sur ordinateur. */
.home-page #contact{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 4% 90%,rgba(47,128,101,.13) 0,rgba(47,128,101,0) 28%),
    linear-gradient(145deg,#edf4f8 0%,#f7fafb 58%,#eef5f2 100%);
}

.home-page #contact::before{
  content:"";
  position:absolute;
  right:-180px;
  top:-210px;
  width:480px;
  height:480px;
  border:1px solid rgba(31,95,158,.08);
  border-radius:50%;
  box-shadow:0 0 0 70px rgba(31,95,158,.022),0 0 0 140px rgba(31,95,158,.015);
  pointer-events:none;
}

.home-page #contact>.container{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);
  grid-template-areas:
    "heading form"
    "featured form"
    "others form";
  column-gap:clamp(34px,6vw,76px);
  row-gap:18px;
  align-items:start;
}

.home-page #contact .section-head{
  grid-area:heading;
  margin:0;
  padding-top:8px;
}
.home-page #contact .section-head h2{max-width:390px}
.home-page #contact .section-head .muted{max-width:390px;line-height:1.65}
.home-page #contact .contact-featured-grid{grid-area:featured}
.home-page #contact .contact-others{grid-area:others}
.home-page #contact .grid.contact{grid-area:form}

.home-page .contact-featured-card{
  border:1px solid rgba(23,63,115,.08);
  border-radius:20px;
  background:rgba(255,255,255,.82);
  box-shadow:0 12px 34px rgba(22,46,75,.055);
  backdrop-filter:blur(8px);
}
.home-page .contact-primary-bar>div{border-color:rgba(23,63,115,.09)}

.home-page #contact .contact-featured-grid{
  grid-template-columns:1fr;
  width:100%;
  margin:0;
}
.home-page #contact .contact-others{width:100%;margin:0}
.home-page #contact .contact-others>#contactUsefulCard{
  margin-top:12px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.home-page #contact .contact-others .contacts-list{
  grid-template-columns:1fr;
  gap:9px;
  margin:0;
}
.home-page #contact .contact-others .contact-item{
  padding:13px 14px;
  border-color:rgba(23,63,115,.1);
  border-radius:15px;
  background:rgba(255,255,255,.82);
}
.home-page #contact .contact-others .contact-item-title{margin-bottom:7px}
.home-page #contact .contact-others .contact-item-line{
  display:grid;
  grid-template-columns:18px 62px minmax(0,1fr);
  align-items:center;
  gap:7px;
}
.home-page #contact .contact-others .contact-item-line .label{margin:0}
.home-page #contact .contact-others .contact-item-line a[href^="tel:"]{white-space:nowrap}
.home-page #contact .grid.contact{width:100%;max-width:none;margin:0}
.home-page #contact .contact-form{
  padding:clamp(22px,4vw,38px);
  border:0;
  border-radius:24px;
  background:rgba(255,255,255,.94);
  box-shadow:0 22px 60px rgba(22,46,75,.1);
}

.home-page #contactFormFields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px 20px;
}
.home-page #contactFormFields>.official-form-notice,
.home-page #contactFormFields>label:nth-of-type(5),
.home-page #contactFormFields>.consent-field,
.home-page #contactFormFields>.form-response-note{grid-column:1 / -1}
.home-page #contactFormFields>label{margin:0}
.home-page #contactFormFields textarea{min-height:130px}
.home-page #contactFormFields>.btn{justify-self:start;margin:0}

.home-page .site-footer-light{background:#f7f9fb}
.home-page .footer-accent{height:3px}
.home-page .footer-main{padding-block:30px 24px}

@media(max-width:960px){
  .home-page .hero{min-height:auto}
  .home-page .hero-inner{grid-template-columns:1fr}
  .home-page .hero-card{max-width:650px}
  .home-page .essentials-section>.container{grid-template-columns:1fr;gap:28px}
  .home-page .essentials-section .section-head{position:static;max-width:660px}
  .home-page #contact>.container{
    display:block;
  }
  .home-page #contact .section-head{margin-bottom:24px;padding-top:0}
  .home-page #contact .contact-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:14px}
  .home-page #contact .contact-others{margin-bottom:22px}
  .home-page #contact .grid.contact{max-width:860px}
  .home-page #newsGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-page #newsGrid .news-card:first-child{grid-column:1 / -1}
  .home-page #newsGrid .news-card:first-child .news-media-full{height:300px}
  .home-page .village-story-inner{grid-template-columns:1fr}
}

@media(max-width:650px){
  .home-page .header-inner{min-height:64px}
  .home-page .brand-mark img{height:42px}
  .home-page .hero{padding-block:32px 44px;background-position:58% 46%}
  .home-page .hero h1{font-size:2.7rem}
  .home-page .hero-card{padding:16px 14px 16px 18px!important}
  .home-page .section,.home-page .village-story{padding-block:48px}
  .home-page .section-head{margin-bottom:22px}
  .home-page .section-link{min-height:auto;padding:.45rem 0;border:0;background:transparent}
  .home-page .essentials-grid{grid-template-columns:1fr;gap:0}
  .home-page .essential-card{padding-inline:2px}
  .home-page #newsGrid{grid-template-columns:1fr;gap:16px}
  .home-page #newsGrid .news-card:first-child{grid-column:auto}
  .home-page #newsGrid .news-media-full,
  .home-page #newsGrid .news-card:first-child .news-media-full{height:210px}
  .home-page #newsGrid .news-content{padding:18px}
  .home-page #agenda::after{right:-8px;bottom:-8px;font-size:6.4rem;color:rgba(255,255,255,.04)}
  .home-page .village-story-inner{border-radius:22px}
  .home-page .village-story-photo{min-height:250px}
  .home-page .village-story-copy{padding:26px 22px}
  .home-page #contactFormFields{grid-template-columns:1fr;gap:14px}
  .home-page #contactFormFields>*{grid-column:auto!important}
  .home-page #contact .contact-form{padding:20px 16px}
  .home-page #contact .contact-featured-grid{grid-template-columns:1fr}
  .home-page #contact .contact-others .contact-item-line{grid-template-columns:18px 58px minmax(0,1fr)}
}

@media(prefers-reduced-motion:reduce){
  .home-page .essential-card,
  .home-page .section-link{transition:none}
}
