/* Base */
@import "fonts.css";


:root{
  --color-teal-900: #14504a;
  --color-gold-600: #b88746;
  --color-gold-claire-600: #edd08c;
  --color-background: #eff0da;
  --icon-filter-light: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(103%) contrast(101%);
  --icon-filter-gold-claire: invert(84%) sepia(17%) saturate(654%) hue-rotate(350deg) brightness(101%) contrast(87%);
  --hero-photo: clamp(120px, 18vw, 260px);
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: "Playwrite US Modern","Alex Brush", serif;
  background: var(--color-background);
  color: #1f1f1f;
}
.is-hidden{
  display: none;
}

/* ===== HEADER (layout global) ===== */
#nav-check{
  display: none;
}

.header{
  position: relative;
  height: clamp(400px, 45vh, 675px);
  min-height: 350px;
  overflow: hidden;
}

.menu{
  padding-top: 25px;
  display: flex;
  justify-content: center;
  align-items: start;
  width: 100%;
  color: white;
}

.background-header{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(90deg, rgba(20,80,74,1) 0%, rgba(207,172,45,1) 100%);
}

.header::before{
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/form/shape-ellipse-big.svg') no-repeat center;
  background-size: cover;
  opacity: 0.2;
  pointer-events: none;
}

.menu-sub{
  z-index: 9999;
  position: sticky;
  border: 2px solid var(--color-gold-600);
  border-radius: 15px;
  background: rgba(82, 92, 91, 0.05);
  backdrop-filter: blur(10px);
  padding-left: 2%;
  padding-right: 2%;
  max-width: 50%;
  max-height: 66px;
  align-self: start;
}

.menu-sub ul{
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-sub ul li{
  padding: 15px 0;
}

.menu-sub ul li a{
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: ease all 0.5s;
}

.menu-sub ul li a:hover{
  color: var(--color-gold-600);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--color-gold-600);
}

.menu-item-has-submenu{
  position: relative;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.menu-item-has-submenu::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.menu-item-has-submenu > .submenu{
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  min-width: 150px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1100;
}

.menu-item-has-submenu:hover > .submenu,
.menu-item-has-submenu:focus-within > .submenu{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.menu-item-has-submenu > .submenu li{
  padding: 0;
}

.menu-item-has-submenu > .submenu a{
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.header-row{
  max-width: 1200px;
  margin: 0 auto;
  /*padding: 90px 6% 0;*/
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.header-logo{
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 20%;
}
.header-logo a{
  display: block;
  width: 100%;
  height: 100%;
}

.header-logo a .menu-img-contain{
  transition: ease all 0.5s;
  transform-origin: top left;
}

.header-logo a:hover .menu-img-contain{
  transform: scale(1.1);
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  width: 100%;
  height: 100%;
  background: url("../img/logo/white-logo-no-background.svg") no-repeat center;
  background-size: contain;
}

.menu-img-contain{
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  width: 100%;
  height: 100%;
  background: url("../img/logo/color-logo-no-background.svg") no-repeat center;
  background-size: contain;
}

.header-slogan{
  align-self: center;
  display: flex;
  flex-direction: column;
  margin-top: 0;
  flex: 1 1 60%;
  width: 100%;
  color: white;
  z-index: 2;
  font-family: "Playwrite US Modern","Alex Brush", serif;
}

.header-slogan h1{
  align-self: center;
  font-family: "Playwrite US Modern","Great Vibes", serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: ease all 0.5s;
  color: #edd08c;
  padding-bottom: 15px;
  text-align: center;
}

.header-slogan .description{
  max-width: 750px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  hyphens: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-align: center;
  color: #edd08c;
  white-space: normal;
}

.header-media{
  position: relative;
  width: calc(var(--hero-photo) + 40px);
  height: calc(var(--hero-photo) + 40px);
  min-width: calc(var(--hero-photo) + 40px);
  min-height: calc(var(--hero-photo) + 40px);
  margin-left: auto;
  flex: 0 0 auto;
}

.image-pro{
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  background-image: url("./../img/pro_enfants_creche.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 20px solid var(--color-gold-600);
  border-radius: 50%;
  z-index: 2;
  transition: border-color .25s ease;
}

.header-dots{
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  --r: calc( (var(--hero-photo) / 2) + 20px + 8px + 25px );
}

.header-dots .dot{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  background: var(--color-gold-600);
  border-radius: 50%;
  transform: rotate(var(--a, 0deg)) translateX(var(--r));
  transition: background-color .25s ease, transform .25s ease;
  pointer-events: auto;
}

.header-dots .dot:nth-child(1){ --a: 10deg; }
.header-dots .dot:nth-child(2){ --a: 55deg; }
.header-dots .dot:nth-child(3){ --a: 110deg; }
.header-dots .dot:nth-child(4){ --a: 165deg; }
.header-dots .dot:nth-child(5){ --a: 220deg; }
.header-dots .dot:nth-child(6){ --a: 275deg; }
.header-dots .dot:nth-child(7){ --a: 320deg; }

.image-pro:hover{
  border-color: var(--color-gold-claire-600);
}
.image-pro:hover ~ .header-dots .dot,
.header-dots .dot:hover{
  background: var(--color-gold-claire-600);
  transform: rotate(var(--a, 0deg)) translateX(var(--r)) scale(1.06);
}

.reseaux-container.is-hidden{
  display: none;
}

/* Header responsive */
@media (max-width: 640px){
  .menu{ padding-top: 72px; }
  .menu-sub{
    top: 12px; left: 50%;
    transform: translateX(-50%);
    max-width: 92%;
    padding: 8px 12px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    z-index: 1000;
  }

  .nav-btn{
    display: flex;
    width: 34px; height: 26px;
    flex-direction: column; justify-content: center;
    cursor: pointer;
    z-index: 1001;
  }
  .nav-btn span{
    display:block; width:34px; height:3px;
    background:#fff; border-radius:2px;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav-btn span + span{ margin-top:6px; }

  .menu-sub > ul{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 125px;
    margin-top: 8px;
    padding: 12px 16px;
    background: var(--color-teal-900);
    border: 1px solid var(--color-gold-600);
    border-radius: 12px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
  }
  .menu-sub > ul li{
    padding: 6px 2px;
    width: 100%;
    text-align: center;
  }
  .menu-sub > ul a{
    display: block;
    line-height: 23px;
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
  }

  .menu-item-has-submenu > .submenu{
    position: static;
    transform: none;
    min-width: 0;
    margin-top: 6px;
    padding: 6px 0 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    display: flex;
    gap: 4px;
  }

  .menu-item-has-submenu > .submenu a{
    padding: 4px 6px;
    font-size: .9rem;
    color: var(--color-gold-claire-600);
    background: transparent;
    border: 0;
  }

  .nav-check{ position:absolute; opacity:0; pointer-events:none; }
  .nav-check:checked ~ ul{ display:flex; }

  .nav-check:checked + .nav-btn span:nth-child(1){
    transform: translateY(9px) rotate(45deg);
  }
  .nav-check:checked + .nav-btn span:nth-child(2){ opacity:0; }
  .nav-check:checked + .nav-btn span:nth-child(3){
    transform: translateY(-9px) rotate(-45deg);
  }

  .header{
    height: auto;
    min-height: 485px;
  }
  .header-row{
    padding-top: 96px;
    text-align: center;
  }
  .header-logo{
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }
  .header-slogan h1{
    font-size: 1.9rem; line-height: 1.2; margin-bottom: .6rem;
  }
  .header-media{
    margin: 0 auto;
  }
  .header-dots{ display: none; }
}

@media (max-width: 592px){
  .header-row{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    /*padding-left: 8%;*/
    /*padding-right: 8%;*/
  }
  .header-slogan{
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }
  .header-slogan h1,
  .header-slogan .description{
    margin-left: auto;
    margin-right: auto;
  }
  .header-logo,
  .header-media{
    display: none;
  }
}

@media (max-width: 375px){
  .header{
    height: auto;
    min-height: 420px;
  }
  .header-row{
    padding-top: 90px;
    gap: 12px;
  }
  .header-logo{
    width: 110px;
    height: 110px;
  }
  .header-slogan h1{
    font-size: 1.6rem;
  }
  .header-slogan .description{
    font-size: 0.95rem;
  }
  .header-media{
    width: 160px;
    height: 160px;
  }
  .image-pro{
    border-width: 12px;
  }
}

@media (max-width: 1024px){
  .header{
    height: clamp(440px, 50vh, 620px);
    min-height: 485px;
  }
  .header-logo{ width: 180px; height: 180px; }
  .header-slogan h1{ font-size: 2.2rem; }
}

@media (min-width: 641px){
  .menu-sub > ul{ display:flex; gap: 10px; }
}

@media (min-width: 1281px){
  .header{
    height: clamp(485px, 52vh, 695px);
    min-height: 485px;
  }
  .header-row{ max-width: 1320px; }
  .header-logo{ width: 240px; height: 240px; }
  .header-media{ width: calc(var(--hero-photo) + 48px); height: calc(var(--hero-photo) + 48px); }
}

@media (max-width: 1200px){
  .header-logo{ width: 200px; height: 200px; }
}

@media (max-width: 992px){
  .header{
    height: clamp(485px, 55vh, 675px);
    min-height: 485px;
  }
  .header-logo{ width: 180px; height: 180px; }
}

@media (min-width: 641px) and (max-height: 920px){
  .header{
    height: auto;
    min-height: 485px;
  }
}

@media (max-width: 820px){
  .header-logo{ width: 160px; height: 160px; }
  .header-slogan h1{ font-size: 2rem; }
}

/* ===== FOOTER (layout global) ===== */
#footer{
  font-family: "Playwrite US Modern","Alex Brush", serif;
  position: relative;
  background: var(--color-teal-900);
  color: #fff;
  padding: 40px 3%;
  overflow: hidden;
  display: flex;
  gap: 15px;
  flex-direction: column;
}
#footer::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 20%, rgba(237, 208, 140, 0.16), transparent 40%),
              radial-gradient(circle at 85% 80%, rgba(237, 208, 140, 0.10), transparent 42%);
}
#footer > *{
  position: relative;
  z-index: 1;
}

.information-etablissement{
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 15%;
  overflow: hidden;
  align-items: center;
  text-align: center;
}

.information-etablissement p {
  line-height: normal;
}
.information-etablissement p + p{
  margin-top: 8px;
}

.container-footer{
  display: flex;
  flex-direction: row;
  gap: 25px;
  align-items: flex-start;
}
.article-footer-establishment{
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: flex-start;
  border-radius: 10px;
  padding: 6px 8px;
  transition: background-color .25s ease, transform .25s ease;
}
.article-footer-establishment:hover{
  background: rgba(237, 208, 140, 0.12);
  transform: translateY(-1px);

}
.article-footer-establishment img{
  filter: var(--icon-filter-light);
  transition: filter .22s ease, transform .22s ease;
}
.article-footer-establishment:hover img,
.article-footer-establishment:focus-within img{
  filter: var(--icon-filter-gold-claire);
  transform: scale(1.06);
}

.establishment-info-detail{
  text-align: center;
  width: 100%;
}
.establishment-info-detail h3,
.reseaux-container h3{
  color: var(--color-gold-claire-600);
  margin-bottom: 20px;
}

.establishment{
  display: flex;
  flex-direction: column;   /* éléments les uns sous les autres */
  align-items: center;      /* centre horizontalement */
  width: fit-content;       /* prend la largeur minimale */
  max-width: 30%;
  border: 1px solid rgba(237, 208, 140, 0.25);
  border-radius: 14px;
  padding: 16px 18px;
  gap: 10px;
  background: rgba(255,255,255,0.02);
  transition: transform .28s ease, border-color .28s ease, background-color .28s ease;
}
.establishment:hover{
  transform: translateY(-2px);
  border-color: rgba(237, 208, 140, 0.65);
  background: rgba(255,255,255,0.06);
}
.establishment h4{
  color: var(--color-gold-claire-600);
}
.establishment > img{
  filter: var(--icon-filter-light);
  transition: filter .25s ease, transform .25s ease;
}
.establishment:hover > img{
  filter: var(--icon-filter-gold-claire);
  transform: translateY(-1px) scale(1.05);
}
.establishment a{
  color: #fff;
  text-underline-offset: 0.2em;
  transition: color .2s ease;
}
.establishment a:hover{
  color: var(--color-gold-claire-600);
}
.establishment > p{
  margin-bottom: 6px;
}

.establishment-container{
  width: 100%;
  margin-top: 16px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: stretch;
  justify-content: center;
}
.information-etablissement-image-container{
  width: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.information-etablissement-image-container a{
  width: 100%;
}

.article-footer-establishment + .article-footer-establishment{
  margin-top: 6px;
}
.article-footer-establishment img{
  margin-top: 2px;
  flex-shrink: 0;
}
.article-footer-establishment p,
.article-footer-establishment a{
  line-height: 1.4;
}

.information-etablissement-image-container img{
  transition: transform .28s ease, filter .28s ease, opacity .28s ease;
}
.information-etablissement-image-container img:hover{
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.08);
}
.footer-logo{
  display: flex;
}
.footer-logo img{
  width: 100%;
  max-width: 180px;
  height: auto;
  transition: transform .35s ease, filter .35s ease;
}
.footer-logo img:hover{
  transform: scale(1.03);
  filter: drop-shadow(0 4px 14px rgba(237, 208, 140, .35));
}

.reseaux{
  margin-top: 50px;
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.reseaux a{
  display: inline-flex;
  border-radius: 999px;
  padding: 2px;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.reseaux a:hover{
  background: rgba(237, 208, 140, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
}
.reseaux a:active{
  transform: translateY(0) scale(.97);
}
#footer a:focus-visible{
  outline: 2px solid var(--color-gold-claire-600);
  outline-offset: 2px;
  border-radius: 8px;
}
.reseaux img{
  transition: transform .2s ease, filter .2s ease;
}
.reseaux a:hover img{
  transform: scale(1.08);
  filter: brightness(1.08);
}

.footer-jump-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  margin: 24px auto 12px;
  border-radius: 50%;
  border: 1px solid rgba(237, 208, 140, 0.5);
  background: var(--color-teal-900);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(20, 80, 74, 0.28);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.footer-jump-btn img{
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-jump-btn:hover{
  background: #1c6a62;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(20, 80, 74, 0.36);
}

.footer-jump-btn:active{
  transform: translateY(0);
}

.footer-jump-btn:focus-visible{
  outline: 2px solid var(--color-gold-claire-600);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 800px){
  #footer{ padding: 32px 6%; }
  .container-footer{ flex-direction: column; }
  .information-etablissement{ max-width: 100%; }
  .establishment{ max-width: 100%; width: 100%; align-items: flex-start; }
  .establishment-container{ flex-direction: column; }
  .reseaux{ margin-top: 20px; }
  .footer-logo{ justify-content: flex-start; }
  .footer-jump-btn{
    width: 48px;
    height: 48px;
    margin: 18px auto 10px;
  }
  .footer-jump-btn img{
    width: 22px;
    height: 22px;
  }
}
