:root{
  --c-blue: #91B4DF;
  --c-green: #435843;
  --c-mauve: #D0AFDF;
  --c-sage: #BECCBE;

  --bg: #fbfaf7;
  --paper: #ffffff;
  --text: #1b1b1b;
  --muted: rgba(27,27,27,.72);
  --stroke: rgba(67,88,67,.18);
  --shadow: 0 10px 30px rgba(27,27,27,.10);
  --beige-base: #f2efe8;
  --body-bg: linear-gradient(
    to top,
    #394b39 0%,
    var(--c-green) 54%,
    #607660 100%
  );
  --topbar-bg: #d7d9d2;

  --radius: 18px;
  --container: 1080px;
  --topbar-h: 92px;
  --page-gap: 24px;

  --font-body: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-display: "Caviar Dreams", "Poppins", system-ui, sans-serif;
}

@font-face{
  font-family: "Caviar Dreams";
  src: url("../fonts/CaviarDreams.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 14px);
}

body{

  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--body-bg);
  padding: var(--page-gap);
}

a{
  color: inherit;
  text-decoration: none;
}

strong{ font-weight: 600; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  background: var(--c-green);
  color: #fff;
  border-radius: 12px;
  z-index: 9999;
}

.skip-link:focus{ left: 12px; }

.sr-only{
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   STRUCTURE DES PLANS
   ========================= */

.site-shell{
  height: calc(100vh - 48px);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(27,27,27,.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.content-stage{
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(
    to bottom,
    #d7d9d2 0%,
    var(--beige-base) 100%
  );
  border-radius: 0 0 28px 28px;
}

.content-stage::-webkit-scrollbar{
  width: 8px;
}

.content-stage::-webkit-scrollbar-track{
  background: transparent;
}

.content-stage::-webkit-scrollbar-thumb{
  background: rgba(67,88,67,.18);
  border-radius: 999px;
}

.content-stage::-webkit-scrollbar-thumb:hover{
  background: rgba(67,88,67,.28);
}

.content-shell{
  background: linear-gradient(
    to bottom,
    #d7d9d2 0%,
    var(--beige-base) 100%
  );
  border-radius: 0 0 28px 28px;
  padding: 14px 14px 18px 14px;
  box-shadow: 0 16px 34px rgba(27,27,27,.10);
  overflow: hidden;
}

.content-panel{
  background: linear-gradient(
    to top,
    var(--beige-base) 0%,
    var(--beige-base) 18%,
    #faf8f3 38%,
    #ffffff 100%
  );
  border-radius: 20px;
  overflow: hidden;
  box-shadow: none;
}

.content-panel .section--hero{
  background: transparent !important;
}

/* =========================
   TOPBAR
   ========================= */

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  background: #d7d9d2;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}

.topbar__inner{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.brand__logo{
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand__text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.05;
}

.brand__title{
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
}

.brand__name{
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
}

/* =========================
   NAVIGATION
   ========================= */

.nav{
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 1;
  min-width: 0;
}

.nav__toggle{
  display: none;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.6);
  border-radius: 14px;
  width: 46px;
  height: 46px;
  cursor: pointer;
}

.nav__toggleBars{
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-green);
  margin: 0 auto;
  position: relative;
}

.nav__toggleBars::before,
.nav__toggleBars::after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--c-green);
}

.nav__toggleBars::before{ top: -6px; }
.nav__toggleBars::after{ top: 6px; }

.nav__links{
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav__link{
  padding: 10px 10px;
  border-radius: 14px;
  color: rgba(67,88,67,.88);
  font-size: 12.5px;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--current{
  background: rgba(125,160,205,.35);
  color: var(--c-green);
}

.nav__link--current{
  font-weight: 600;
}

.nav__social{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 10px;
  flex-shrink: 0;
}

.nav__socialLink{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s ease, transform .2s ease;
}

.nav__socialLink:hover{
  opacity: .8;
  transform: translateY(-1px);
}

.nav__socialIcon{
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

/* =========================
   SECTIONS
   ========================= */

.section{
  padding: 50px 0;
  border-bottom: 1px solid rgba(67,88,67,.10);
}

.section--hero{ padding-top: 50px; }
.section--tint{ background: rgba(190,204,190,.18); }
.section--tint2{ background: rgba(145,180,223,.14); }

.section--bg{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section__grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 34px;
  align-items: start;
}

.sectionIntro{
  max-width: 760px;
  margin-bottom: 24px;
}

.kicker{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(67,88,67,.85);
}

.h1{
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.05;
  font-size: clamp(30px, 4.2vw, 52px);
  color: var(--c-green);
}

.h2{
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.15;
  font-size: clamp(22px, 2.6vw, 34px);
  color: var(--c-green);
}

.lead{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  text-align: justify;
}

.text{
  margin: 0 0 12px;
  color: rgba(27,27,27,.80);
  font-size: 15px;
  text-align: justify;
}

.bullets{
  margin: 14px 0 12px;
  padding-left: 18px;
  color: rgba(27,27,27,.78);
}

.bullets li{ margin: 6px 0; }

.numbers,
.bullets{
  text-align: justify;
  list-style-position: inside;
}

.ctaRow{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.7);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--primary{
  background: var(--c-green);
  color: #fff;
  border-color: transparent;
}

.btn--ghost{
  background: rgba(145,180,223,.18);
  border-color: rgba(145,180,223,.42);
  color: var(--c-green);
}

/* =========================
   MEDIA
   ========================= */

.media{
  position: sticky;
  top: calc(var(--topbar-h) + 18px);

  padding: 4px; /* espace transparent */
  border: 3px solid var(--c-green); /* cadre vert*/
  /*border: 4px solid rgba(67,88,67,.25); /*cadre clair*/
  border-radius: 22px;

  background: transparent; /* IMPORTANT */
}

.media__img{
  width: 100%;
  height: auto;
  border-radius: 16px; /* un peu plus petit que le parent */
  display: block;
  box-shadow: var(--shadow); /* tu peux garder ou enlever */
}

.media__ph{
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(145,180,223,.35), rgba(208,175,223,.20)),
    rgba(255,255,255,.55);
  border: 1px dashed rgba(67,88,67,.26);
  box-shadow: var(--shadow);
  padding: 18px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.media__label{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(67,88,67,.85);
}

.media__hint{ color: rgba(27,27,27,.80); }

.media__alt{
  color: rgba(27,27,27,.65);
  font-size: 13px;
}

/* =========================
   CONTACT / LIENS
   ========================= */

.contactCard{
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(67,88,67,.18);
}

.contactLine{
  padding: 6px 0;
  color: rgba(27,27,27,.80);
}

.link{
  color: var(--c-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tiny{
  margin-top: 12px;
  color: rgba(27,27,27,.60);
  font-size: 12px;
}

/* =========================
   FOOTER
   ========================= */

.footer{
  background: var(--beige-base);
  border-radius: 0 0 20px 20px;
}

.footer__inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--beige-base);
  border-top: 1px solid rgba(0,0,0,0.03);
  padding-top: 16px;
  color: var(--text);
}

/* =========================
   HOME CARDS
   ========================= */

.pageHero{
  padding-top: 96px;
}

.pageCard{
  position: relative;
  z-index: 1;
}

.pageCard::before{
  content: "";
  position: absolute;
  inset: -6px; /* distance entre carte et cadre */
  border-radius: calc(var(--radius) + 6px);

  border: 2px solid rgba(67,88,67,.25); /* cadre vert subtil */

  pointer-events: none;
  z-index: -1;
}

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

.pageCard{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(67,88,67,.14);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

.pageCard:hover,
.pageCard:focus-visible{
  transform: translateY(-2px);
  border-color: rgba(145,180,223,.45);
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 28px rgba(27,27,27,.12);
}

.pageCard:focus-visible{
  outline: 2px solid rgba(145,180,223,.65);
  outline-offset: 3px;
}

.pageCard__content{ display: block; }

.pageCard h3{
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-green);
}

.pageCard p{
  margin: 0;
  color: rgba(27,27,27,.78);
  font-size: 15px;
  line-height: 1.55;
}

.pageCard__cta{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(67,88,67,.10);
  font-weight: 600;
  color: var(--c-green);
}

.pageCard__cta::after{
  content: "→";
  font-size: 18px;
  line-height: 1;
}

/* =========================
   POUR QUI
   ========================= */

.pourQuiLayout{
  display: grid;
  gap: 28px;
}

.pourQuiContent{
  max-width: 980px;
  line-height: 1.7;
}

.pourQuiGallery{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 6px;
}

.galleryCard{
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(67,88,67,.14);
  box-shadow: var(--shadow);
}

.galleryCard__img{
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.galleryCard__ph{
  display: none;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  text-align: center;
  color: var(--c-green);
  font-weight: 600;
  background:
    linear-gradient(135deg, rgba(145,180,223,.35), rgba(208,175,223,.18)),
    rgba(255,255,255,.78);
}

.galleryCard__ph span{
  font-size: 13px;
  font-weight: 400;
  color: rgba(27,27,27,.72);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px){
  :root{ --topbar-h: 82px; }

  .container{
    width: min(var(--container), calc(100% - 24px));
  }

  .brand{ gap: 10px; }

  .brand__logo{
    width: 56px;
    height: 56px;
  }

  .brand__title{ font-size: 15px; }
  .brand__name{ font-size: 12px; }

  .nav{
    margin-left: auto;
    position: relative;
  }

  .nav__toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
  }

  .nav__links{
    position: absolute;
    top: calc(var(--topbar-h) + 10px);
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    width: min(360px, calc(100vw - 24px));
    background: rgba(251,250,247,.92);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
  }

  .nav__links.is-open{
    display: flex;
  }

  .nav__social{
    margin-left: 0;
    margin-top: 8px;
    justify-content: flex-start;
  }

  .nav__link{
    font-size: 14px;
  }

  .footer__inner{
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 980px){
    :root{
    --page-gap: 16px;
  }
  
  body{
    padding: 16px;
  }

  .site-shell{
    min-height: calc(100vh - 32px);
    border-radius: 22px;
  }

  .topbar{
    border-radius: 22px 22px 0 0;
  }

  .content-shell{
    padding: 10px;
    border-radius: 0 0 22px 22px;
  }

  .content-panel{
    border-radius: 16px;
  }

  .section__grid{
    grid-template-columns: 1fr;
  }

  .media{
    position: relative;
    top: 0;
  }

  .media__ph{
    min-height: 240px;
  }

  .pageCards{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pageCard{
    padding: 18px;
    border: 1px solid rgba(67,88,67,.18);
    border-left: 5px solid rgba(145,180,223,.65);
    background: #fff;
    box-shadow: 0 10px 26px rgba(27,27,27,.10);
  }

  .pageCard h3{
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.25;
  }

  .pageCard p{
    font-size: 14px;
    line-height: 1.55;
  }

  .pageCard__cta{
    width: 100%;
  }

  .pourQuiGallery{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  :root{ --topbar-h: 78px; 
  --page-gap: 10px;
  }

  body{
    padding: 10px;
  }

  .site-shell{
    min-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .topbar{
    border-radius: 18px 18px 0 0;
  }

  .content-shell{
    padding: 8px;
    border-radius: 0 0 18px 18px;
  }

  .content-panel{
    border-radius: 14px;
  }

  .brand{ gap: 10px; }

  .brand__logo{
    width: 52px;
    height: 52px;
  }

  .brand__title{ font-size: 13px; }
  .brand__name{ font-size: 12px; }

  .pourQuiGallery{
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }

  .btn,
  .pageCard,
  .nav__socialLink{
    transition: none;
  }
}
