/* Mobile-first, Bootstrap-friendly styles for "Les Petites Pousses" */

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

  --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;
}

.hero .display-4 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin-bottom: .5rem;
  font-size: 1.8rem;
}

.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; }

/* 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); }

/* Sections */
.section-light { background: var(--theme-light); }
.section-white { background: #fff; }
.section-light-alt { background: var(--theme-light-alt); }
section { padding: 3.5rem 1rem; }

/* Cards */
.card { 
    /* border: none;  */
    border-radius: .5rem; 
    overflow: hidden; 
    background-color: var(--theme-light);
}
.card img { 
    display:block; 
    width:auto;
    height:10vh; 
}
.card-img-div {
    display: flex;
    justify-content: center;
    /* height:10vh;  */
    /* padding-top: 5%; */
    /* padding-bottom: 5%; */
}


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

.card-link-wrapper:hover .card,
.card-link-wrapper:focus .card {
  transform: scale(1.02);
  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 .display-4 { font-size: 2.4rem; }
  .hero .lead { font-size: 1.05rem; }
}

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

@media (min-width: 992px) {
  section { padding: 6rem 2rem; }
  .container { max-width: 1200px; }
}
