/* ================= HEADER ================= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid #ececec;
    transition: all 0.3s ease;
    padding: 18px 0;
}

.header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eee;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    padding: 0px 0;
}

/* Container interne */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 20px;
    gap: 10px;
}

/* LOGO */
.header-logo img {
    height: 46px;
    width: auto;
    display: block;
}

/* NAVIGATION */
.header-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    margin-left: auto;
    margin-right: 30px;
}

/* Liens principaux (autres pages) */
.menu-main {
    display: flex;
    gap: 28px;
}

.menu-main a,
.menu-local a {
    text-decoration: none;   
    font-weight: 500;        
    color: #222;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.menu-main a {
    font-weight: 600; /* plus visibles pour les pages principales */
}

.menu-main a:hover,
.menu-local a:hover {
    text-decoration: none;
    color: #00649f;
}

.menu-local-link.active {
    color: #1E7F74;
    font-weight: 600;
    position: relative;
    text-decoration: none;
}


.menu-local {
    display: flex;
    align-items: center;
    gap: 18px;
}

.menu-local a:first-child::before {
    content: "|";
    margin-right: 14px; /* plus d’espace pour moins coller */
    color: #ccc;
}

.menu-local a:hover {
    color: #0f2a44;
}

.header-action .btn-kdrive {
    background: #00649f;
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.header-action .btn-kdrive:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* RESPONSIVE : Mobile */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-nav {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .menu-main, .menu-local {
        flex-direction: column;
        gap: 10px;
    }
    .header-action {
        width: 100%;
        margin-top: 10px;
    }
}

/* ================= HERO ================= */

.hero {
  position: relative;
  min-height: clamp(400px, 60vh, 600px);
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  text-shadow: 0 4px 8px rgba(0,0,0,0.8);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(5,5,5,0.00),
    rgba(15,15,15,0.05)
  );
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero p {
  font-size: 20px;
  max-width: 620px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-page {
    background: #0b2f4a;
    color: white;
    padding: 40px 0 40px 0;
    background:
    	linear-gradient(
    		rgba(11,47,74,0.92),
    		rgba(11,47,74,0.92)
    	),
        radial-gradient(circle at top right, #00649f22, transparent 60%);
}

.hero-page h1 {
    font-size: 2.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.hero-page p {
    font-size: 1.15rem;
    line-height: 1.6;
}

/* ================= SECTIONS ================= */

.section-white {
  background: #ffffff;
  padding: 40px 20px 40px 20px;
}

.section-alt {
  background: #f6f8fa;
  padding: 40px 20px 40px 20px;
}

.section-title {
  font-family: "Libre Baskerville", serif;
  color: #00649f;
  text-align: center;
  font-size: 2.1rem;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ================= BOUTON CONTACT ================= */

.contact-cta {
  margin-top: 20px;
  display: flex;
  justify-content: left;
}

.footer-contact {
  justify-content: flex-start;
  margin-top: 10px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: #1E7F74;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  background: #16645b;
}

.contact-button:focus-visible {
  outline: 2px solid #00649f;
  outline-offset: 3px;
}

#contact .contact-button {
  font-size: 15px;
  padding: 14px 26px;
}

.footer-contact-link {
  color: #1E7F74;  /* vert foncé */
  text-decoration: underline;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: #16645b;
}

/* ================= FOOTER ================= */

.footer {
  background: #ededed;
  padding: 60px 20px 20px 20px;
  color: #555;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-col h4 { font-weight: 600; margin-bottom: 12px; color: #1E7F74; }
.footer-col p, .footer-col li { line-height: 1.6; }
.footer-col ul { list-style:none; padding:0; margin:0; }
.footer-col li { margin-bottom:6px; }
.footer-col a { text-decoration:none; color:#555; transition:color .2s ease; }
.footer-col a:hover { color: #1E7F74; }

.footer-logo-img { width: 120px; height:auto; display:block; transition: transform .3s ease; }
.footer-logo-img:hover { transform: scale(1.05); }

.footer-bottom {
  margin-top: 30px;
  margin-left: 60px;
  margin-right: 60px;
  border-top:1px solid #1E7F74;
  padding-top:20px;
  text-align:center;
  font-size:13px;
  color:#777;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .menu { flex-direction: column; gap: 12px; }
}

@media (max-width: 900px) {
  .agenda { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .agenda { grid-template-columns: 1fr; }
  .menu { gap: 8px; }
}
