/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #1e1e1e; background: #fff; line-height: 1.6; }
a { color: #2d7a4f; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ===== VARIABLES ===== */
:root {
  --green: #2d7a4f;
  --green-light: #7bdcb5;
  --green-bg: #e8f4ed;
  --dark: #1e1e1e;
  --grey: #eeeeee;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* ===== HEADER / NAV ===== */
header { background: var(--green); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: .5px; display: flex; align-items: center; }
.logo img { height: 48px; width: auto; }
.logo span { color: var(--green-light); }
nav ul { list-style: none; display: flex; gap: 6px; }
nav a { color: rgba(255,255,255,.9); padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; transition: background .2s; white-space: nowrap; }
nav a:hover, nav a.active { background: rgba(255,255,255,.15); color: #fff; text-decoration: none; }
.nav-cta { background: #fff !important; color: var(--green) !important; font-weight: 700 !important; }
.nav-cta:hover { background: var(--green-bg) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, var(--green) 0%, #1a5c38 100%); color: #fff; text-align: center; padding: 100px 24px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 900; margin-bottom: 20px; line-height: 1.1; }
.hero p { font-size: 18px; opacity: .9; max-width: 600px; margin: 0 auto 36px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 28px; border-radius: 8px; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); text-decoration: none; }
.btn-primary { background: #fff; color: var(--green); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #235f3d; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-dark { background: var(--dark); color: #fff; }
.section-grey { background: #f7f9f7; }
.section-green { background: var(--green); color: #fff; }
h2.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; opacity: .75; margin-bottom: 48px; font-size: 17px; }

/* ===== GRID ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* ===== CARDS ===== */
.card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid #e8ece8; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--green); }
.card ul { padding-left: 18px; margin-bottom: 16px; color: #444; }
.card ul li { margin-bottom: 5px; }
.card p { color: #555; margin-bottom: 16px; line-height: 1.6; }
.card-icon { font-size: 32px; margin-bottom: 12px; }
.card-badge { display: inline-block; background: var(--green-bg); color: var(--green); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; }

/* ===== PAGE BANNER ===== */
.page-banner { background: linear-gradient(135deg, var(--green), #1a5c38); color: #fff; padding: 60px 24px; text-align: center; }
.page-banner h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 800; margin-bottom: 10px; }
.page-banner p { opacity: .85; font-size: 17px; }

/* ===== PROGRAMME BLOCS ===== */
.bloc { background: var(--green-bg); border-left: 4px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 28px; margin-bottom: 20px; }
.bloc h3 { color: var(--green); font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.bloc ul { padding-left: 18px; color: #333; }
.bloc ul li { margin-bottom: 6px; }

/* ===== INFO BOX ===== */
.info-box { border: 2px solid var(--green); border-radius: var(--radius); padding: 28px; margin-bottom: 28px; }
.info-box h3 { color: var(--green); margin-bottom: 14px; font-size: 18px; }

/* ===== TABLE ===== */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { background: var(--green); color: #fff; padding: 12px 16px; text-align: left; }
td { padding: 12px 16px; border-bottom: 1px solid #e0e0e0; }
tr:nth-child(even) { background: #f7f9f7; }

/* ===== CHATBOT ===== */
.chatbot-frame { width: 100%; height: 600px; border: none; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.12); display: block; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info p { margin-bottom: 16px; font-size: 16px; display: flex; gap: 10px; align-items: flex-start; }
.contact-info .icon { font-size: 22px; flex-shrink: 0; }
form input, form textarea, form select { width: 100%; border: 1.5px solid #d0d0d0; border-radius: 8px; padding: 12px 16px; font-size: 15px; font-family: inherit; outline: none; transition: border-color .2s; margin-bottom: 16px; }
form input:focus, form textarea:focus { border-color: var(--green); }
form textarea { height: 130px; resize: vertical; }
form button { width: 100%; background: var(--green); color: #fff; border: none; border-radius: 8px; padding: 14px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s; }
form button:hover { background: #235f3d; }

/* ===== FOOTER ===== */
footer { background: #111; color: #ccc; padding: 48px 24px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer a { color: #aaa; font-size: 14px; }
footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 13px; color: #666; max-width: 1100px; margin: 0 auto; }
.footer-logo { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-logo span { color: var(--green-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--green); padding: 16px; gap: 4px; }
  nav ul.open { display: flex; }
  .hamburger { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 60px 24px; }
}
