/* Mobile-first, Bootstrap-friendly styles for "Les Petites Pousses" */
@font-face {
  font-family: 'CarauTypo'; /* set name */
  src: url('../font/subset-CarauTypo-Regular.woff2') format('woff2'),
      url('../font/subset-CarauTypo-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* Critical for SEO/Core Web Vitals */
}

/* Theme tokens */
:root{
  --theme-darker: #041a05;
  --theme-dark: #083109;
  /* --theme-white: #ffffff; */
  --theme-white: #fbffec;
  --theme-light: #F2FFD2;
  --theme-light-alt: #F4E4CC;
  --accent: #d0dcd0;

  --font-sans: 'Dongle', sans-serif;
  --font-serif: 'CarauTypo', sans-serif;
  /* --font-sans: 'Dongle', sans-serif; */
  /* --font-serif: 'Lato', sans-serif; */
}
/* 75965c */

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--theme-dark);
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.bg-theme { background: var(--theme-dark) !important; }
.navbar-brand { font-family: var(--font-serif); color: var(--theme-light) !important; }
.nav-link { color: var(--theme-light) !important; font-weight:500; }

/* Hero */
.hero {
  background: url('../img/pagedaccueill.png') center/contain no-repeat, var(--theme-light);
  /* min-height: 430px; */
  display: flex;
  align-items: center;
  color: var(--theme-darker);
  /* padding: 6rem 1rem; */
  text-align: center;
  width: 100%;
  aspect-ratio: 16 / 9; /* image ratio */
  margin-top: 64px;
}

/* .hero .lead { 
    font-size: 1.5rem; 
    margin-bottom: 1rem; 
    font-weight: 900;
} */

/* Headings & Typography */
h1, h2, h3, h4, blockquote, .navbar-brand {
  font-family: var(--font-serif);
}

h1 { font-size: 2.986rem; font-weight: 700; }
h2 { font-size: 2.488rem; font-weight: 600; }
h3 { font-size: 2.074rem; font-weight: 600; }
h4 { font-size: 1.728rem; font-weight: 600; }
h5 { font-size: 1.440rem; font-weight: 400; }
h6 { font-size: 1.200rem; font-weight: 400; }
/* p { font-size: 1rem; font-weight: 400; } */
/* small { font-size: 0.833rem; font-weight: 400; } */

p.lead { font-size: 2.074rem; line-height: 80%; }
p { font-size: 1.728rem; line-height: 80%;}
* { font-size: 1.200rem;  }
small { font-size: 1rem; }
.text-muted { color: var(--color-dark) !important; }

.tab-nums {
  font-variant-numeric: tabular-nums;
}

/* Buttons */
.btn-cta {
  background: var(--theme-dark);
  color: var(--theme-light);
  border: none;
  box-shadow: 0 6px 18px rgba(3,25,6,0.18);
}
.btn-cta:focus { outline: 3px solid rgba(208,220,208,0.35); }

.btn-border {
  border: 2px solid var(--theme-dark);
}

.btn p {
  margin-bottom: 0px; 
}

.btn {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Sections */
.section-light { background: var(--theme-light); }
.section-white { background: var(--theme-white); }
.section-light-alt { background: var(--theme-light-alt); }
section { 
  padding-top: 1rem;
  padding-left: 1rem; 
  padding-bottom: 1rem; 
  padding-right: 1rem; 
}

/* Cards */
.card { 
  border-radius: .5rem; 
  overflow: hidden; 
}

.section-light .card { 
  background-color: var(--theme-white);
}

.section-white .card { 
  background-color: var(--theme-light);
}

.section-light .btn { 
  background-color: var(--theme-white);
}

.section-white .btn { 
  background-color: var(--theme-light);
}

.card img { 
    display:block; 
    width:auto;
    /* height:10vh;  */
    /* height: auto; */
}

.card-img-div {
    display: flex;
    justify-content: center;
    /* height:10vh;  */
    padding-top: 5%;
    /* padding-bottom: 5%; */
}

.card-home {
  background-color: var(--theme-light) !important;
  /* border: 2px solid var(--theme-dark); */
}

.card-home img { 
  height:10vh; 
}

.card-link-wrapper {
  display: block;
  color: inherit; /* keep text color natural */
  /* padding: 0px; */
  width: 50%;
}

.card-link-wrapper:hover .card,
.card-link-wrapper:focus .card {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Remove blue link highlights inside card */
.card-link-wrapper:hover .card-title,
.card-link-wrapper:hover p {
  text-decoration: none;
}

/* Keep focus accessibility */
.card-link-wrapper:focus {
  outline: 2px solid var(--color-dark);;
  outline-offset: 4px;
}

/* Layout niceties */
.container { max-width: 1100px; }

/* Lazy image placeholder */
.lazy { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .45s ease; }
.lazy.loaded { opacity: 1; transform: translateY(0); }

/* Footer */
.site-footer { background: var(--theme-dark); color: var(--theme-light); padding: 2rem 1rem; }

/* Accessibility focus */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid rgba(3,25,6,0.15);
  outline-offset: 3px;
}

/* Responsive typography and spacing (Bootstrap breakpoints) */
@media (min-width: 576px) {
  /* .hero { padding: 5.5rem 1rem; } */
  .hero .lead { font-size: 1.05rem; }
}

@media (min-width: 768px) {
  /* .hero { min-height: 75vh; padding: 6.5rem 2rem; } */
  .hero .lead { font-size: 1.1rem; max-width: 54rem; margin-left:auto; margin-right:auto; }
}

@media (min-width: 992px) {
  /* section { padding: 6rem 2rem; } */
  section { min-height: 33vh; padding-left: 10vw; padding-right: 10vw;}
  .container { max-width: 1200px; }
}
