/* ============================================================
   GUELORD 77 — Feuille de style principale — Version corrigée
   Couleurs : Vert #1B7A3E / Vert foncé #0F4D26 / Blanc
   ============================================================ */

:root {
  --green: #1B7A3E;
  --green-dark: #0F4D26;
  --green-mid: #14602F;
  --green-light: #2AA352;
  --green-pale: #E8F5EE;
  --black: #0D0D0D;
  --charcoal: #1A1A1A;
  --gray-dark: #3A3A3A;
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --white: #FFFFFF;
  --bg: #F8FAF9;
  --gold: #C9A84C;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all .25s ease;
  --font-main: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--white); color: var(--charcoal); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* ======= BUTTONS ======= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-family: var(--font-main);
  font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  cursor: pointer; border: 2px solid transparent; transition: var(--transition); white-space: nowrap;
}
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(27,122,62,.4); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-outline-green { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn-outline-green:hover { background: var(--green-dark); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

/* ======= LOGO TEXTE ======= */
.logo-text {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--green-dark);
  letter-spacing: .05em;
}
.logo-text strong { font-weight: 900; color: var(--green); }
.footer-logo-text { font-family: var(--font-main); font-size: 1.6rem; font-weight: 300; color: var(--white); display: block; margin-bottom: 12px; }
.footer-logo-text strong { font-weight: 900; color: #5BDD8A; }

/* ======= HEADER ======= */
.header { position: sticky; top: 0; z-index: 1000; }
.header-top { background: var(--green-dark); padding: 8px 0; font-size: .82rem; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.ht-left { display: flex; gap: 20px; flex-wrap: wrap; }
.ht-left a, .ht-left span { color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 5px; }
.ht-left a:hover { color: var(--white); }
.ht-right { display: flex; gap: 10px; }
.sap-badge { background: rgba(255,255,255,.15); color: var(--white); padding: 3px 12px; border-radius: 20px; font-size: .75rem; font-weight: 700; border: 1px solid rgba(255,255,255,.25); }
.credit-badge { background: rgba(201,168,76,.25); border-color: rgba(201,168,76,.5); }

.navbar { background: var(--white); box-shadow: 0 2px 15px rgba(0,0,0,.1); padding: 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; }

/* DROPDOWN NAV */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 14px; font-family: var(--font-main); font-weight: 600; font-size: .86rem; color: var(--gray-dark); border-radius: 6px; position: relative; display: flex; align-items: center; gap: 4px; }
.nav-link:hover, .nav-link.active { color: var(--green); }
.nav-link::after { content: ''; position: absolute; bottom: 2px; left: 14px; right: 14px; height: 2px; background: var(--green); border-radius: 2px; transform: scaleX(0); transition: transform .2s; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link-dropdown::after { display: none; }

.nav-dropdown { position: relative; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); min-width: 260px; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .2s ease; z-index: 999;
  border: 1px solid var(--gray-light);
}
.dropdown-item { display: block; padding: 10px 20px; font-size: .85rem; color: var(--gray-dark); font-weight: 500; }
.dropdown-item:hover { background: var(--green-pale); color: var(--green); }

.btn-nav-cta { background: var(--green); color: var(--white) !important; padding: 10px 22px; border-radius: 50px; font-family: var(--font-main); font-weight: 700; font-size: .86rem; margin-left: 8px; }
.btn-nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: var(--transition); display: block; }

/* ======= HERO SPLIT ======= */
.hero { background: linear-gradient(135deg, #f0faf4 0%, #e8f5ee 40%, #d4ede0 100%); padding: 0; min-height: 85vh; display: flex; align-items: center; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.hero-left { color: var(--charcoal); }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(27,122,62,.08); border: 1px solid rgba(27,122,62,.2); border-radius: 50px; padding: 8px 20px; font-size: .82rem; font-weight: 600; margin-bottom: 24px; color: var(--green-dark); }
.hero-badge .sap-logo { height: 26px; }
.hero-title { font-family: var(--font-main); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 20px; color: var(--charcoal); }
.hero-accent { color: var(--green); }
.hero-sub { font-size: 1rem; line-height: 1.7; color: var(--gray-dark); margin-bottom: 36px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.h-stat { text-align: left; }
.h-stat strong { display: block; font-family: var(--font-main); font-size: 1.5rem; font-weight: 900; color: var(--green); }
.h-stat span { font-size: .8rem; color: var(--gray); }

.hero-right { display: flex; justify-content: center; }
.hero-photo-wrap { position: relative; }
.hero-photo-img { width: 100%; max-width: 500px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); object-fit: cover; aspect-ratio: 4/5; }
.hero-photo-badge { position: absolute; bottom: 24px; left: -20px; background: var(--white); border-radius: 50px; padding: 10px 20px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-md); font-weight: 700; font-size: .85rem; color: var(--green-dark); border: 2px solid var(--green-pale); }

/* ======= BANDEAU URGENCE ======= */
.urgence-banner { background: #FFF3CD; border-top: 3px solid #FFC107; border-bottom: 3px solid #FFC107; padding: 14px 0; }
.urgence-inner { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: .92rem; color: #856404; }
.urgence-tel { font-weight: 800; font-size: 1.1rem; color: #dc2626; background: #fff; padding: 4px 16px; border-radius: 50px; border: 2px solid #dc2626; }
.urgence-tel:hover { background: #dc2626; color: #fff; }

/* ======= URGENCE CONTACT BOX ======= */
.urgence-contact-box { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; background: #FFF3CD; border-radius: var(--radius-md); border-left: 4px solid #FFC107; margin-bottom: 12px; }
.urgence-contact-box strong { display: block; font-weight: 700; font-size: .88rem; color: #856404; margin-bottom: 2px; }
.urgence-contact-box a { font-weight: 800; color: #dc2626; font-size: 1rem; }
.urgence-contact-box small { display: block; font-size: .75rem; color: #856404; margin-top: 2px; }
.urgence-footer { margin-top: 8px; }
.urgence-footer a { color: #FFC107; font-weight: 700; }

/* ======= INFO REGLEMENTAIRE ======= */
.info-reglementaire { background: var(--bg); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.info-card { background: var(--white); border-radius: var(--radius-md); padding: 28px 24px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--green); transition: var(--transition); }
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.info-icon { margin-bottom: 14px; }
.info-card h3 { font-family: var(--font-main); font-size: .95rem; font-weight: 700; margin-bottom: 10px; color: var(--charcoal); }
.info-card p { font-size: .86rem; color: var(--gray-dark); line-height: 1.65; }

/* ======= SECTION HEADERS ======= */
.section-header { text-align: center; margin-bottom: 56px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header-white h2 { color: var(--white); }
.section-header-white p { color: rgba(255,255,255,.8); }
.section-tag { display: inline-block; background: var(--green-pale); color: var(--green); font-family: var(--font-main); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 16px; border-radius: 50px; margin-bottom: 16px; border: 1px solid rgba(27,122,62,.2); }
.section-tag-light { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.3); }
.section-header h2 { font-family: var(--font-main); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--charcoal); margin-bottom: 14px; }
.section-header p { color: var(--gray); font-size: .95rem; }

/* ======= ANIMATIONS ======= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fadeUp .7s ease both; }

/* ======= ZONE INTERVENTION ======= */
.zone-section { background: var(--white); padding: 60px 0; }
.zone-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.zone-text h2 { font-family: var(--font-main); font-size: 1.8rem; font-weight: 800; margin-bottom: 14px; color: var(--charcoal); }
.zone-text p { color: var(--gray-dark); margin-bottom: 20px; }
.zone-list { display: flex; flex-direction: column; gap: 10px; }
.zone-list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--gray-dark); padding: 8px 0; border-bottom: 1px solid var(--gray-light); }
.zone-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.zone-map img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* ======= SERVICES DYNAMIQUES ONGLETS ======= */
.services-section { background: var(--bg); }
.services-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; justify-content: center; }
.stab-btn {
  padding: 10px 20px; border-radius: 50px; font-family: var(--font-main);
  font-weight: 600; font-size: .82rem; border: 2px solid var(--gray-light);
  background: var(--white); color: var(--gray-dark); cursor: pointer;
  transition: var(--transition);
}
.stab-btn:hover { border-color: var(--green); color: var(--green); }
.stab-btn.active { background: var(--green); color: var(--white); border-color: var(--green); }

.services-panels { position: relative; }
.service-panel { display: none; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.service-panel.active { display: grid; animation: fadeUp .4s ease; }
.sp-photo img { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.sp-content h3 { font-family: var(--font-main); font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; color: var(--charcoal); }
.sp-desc { color: var(--gray-dark); line-height: 1.7; margin-bottom: 24px; }
.sp-meta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.sp-meta-item { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; color: var(--gray-dark); }
.sp-meta-item svg { margin-top: 2px; flex-shrink: 0; }

/* ======= ACCOMPAGNEMENT ======= */
.accompagnement-section { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%); color: var(--white); }
.acc-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.acc-photo { position: relative; }
.acc-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.acc-badge { position: absolute; bottom: 20px; left: 20px; background: var(--green-dark); color: var(--white); padding: 8px 18px; border-radius: 50px; font-weight: 700; font-size: .85rem; border: 2px solid rgba(255,255,255,.3); }
.acc-feature { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.af-icon { width: 48px; height: 48px; background: rgba(255,255,255,.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.af-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.af-icon-txt { font-size: .65rem; font-weight: 800; color: var(--white); text-align: center; letter-spacing: .04em; }
.acc-feature h4 { font-family: var(--font-main); font-weight: 700; margin-bottom: 4px; color: var(--white); }
.acc-feature p { font-size: .88rem; color: rgba(255,255,255,.8); }

/* ======= PHOTOS GRID ======= */
.photos-section { padding: 0; }
.photos-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 380px; gap: 4px; }
.photo-item { position: relative; overflow: hidden; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-item:hover img { transform: scale(1.05); }
.photo-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); padding: 30px 20px 16px; transform: translateY(100%); transition: transform .3s; }
.photo-item:hover .photo-overlay { transform: translateY(0); }
.photo-overlay span { color: var(--white); font-weight: 600; font-size: .88rem; }

/* ======= FINANCEMENTS ======= */
.financements-section { background: var(--white); }
.fin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-bottom: 40px; }
.fin-card { padding: 28px 24px; border: 1px solid var(--gray-light); border-radius: var(--radius-md); transition: var(--transition); }
.fin-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.fin-icon-img { margin-bottom: 12px; }
.fin-badge-icon { display: inline-block; background: var(--green); color: var(--white); font-family: var(--font-main); font-weight: 800; font-size: .8rem; padding: 6px 14px; border-radius: 50px; margin-bottom: 12px; }
.fin-card h3 { font-family: var(--font-main); font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.fin-card p { font-size: .85rem; color: var(--gray); margin-bottom: 12px; line-height: 1.6; }
.fin-amount { display: inline-block; background: var(--green-pale); color: var(--green); font-weight: 700; font-size: .82rem; padding: 4px 12px; border-radius: 50px; margin-bottom: 10px; }
.fin-link { font-size: .82rem; color: var(--green); font-weight: 600; display: block; }
.fin-cta-box { background: linear-gradient(135deg, var(--green-pale) 0%, #d4ede0 100%); border: 2px solid rgba(27,122,62,.2); border-radius: var(--radius-lg); padding: 32px 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.fin-cta-icon { flex-shrink: 0; }
.fin-cta-box h3 { font-family: var(--font-main); font-size: 1.3rem; font-weight: 800; color: var(--green-dark); margin-bottom: 6px; }
.fin-cta-box p { color: var(--gray-dark); font-size: .9rem; }
.fin-cta-box .btn { margin-left: auto; }

/* ======= TEMOIGNAGES ======= */
.temoignages-section { background: var(--bg); }
.temo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-bottom: 40px; }
.temo-card { background: var(--white); border-radius: var(--radius-md); padding: 28px 24px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--green); }
.temo-stars { font-size: 1.1rem; margin-bottom: 12px; color: var(--gold); }
.temo-text { font-size: .92rem; color: var(--gray-dark); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.temo-author strong { display: block; font-weight: 700; color: var(--charcoal); }
.temo-author span { font-size: .8rem; color: var(--gray); }
.temo-service { display: inline-block; background: var(--green-pale); color: var(--green); font-size: .72rem; font-weight: 700; padding: 2px 10px; border-radius: 20px; margin-top: 4px; }
.temo-submit-box { text-align: center; padding: 32px; background: var(--white); border-radius: var(--radius-lg); border: 2px dashed var(--gray-light); }
.temo-submit-box p { color: var(--gray); margin-bottom: 16px; }

/* ======= WHY / ENGAGEMENTS ======= */
.why-section { background: linear-gradient(135deg, var(--charcoal) 0%, #1A2820 100%); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.why-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md); padding: 28px 24px; transition: var(--transition); }
.why-card:hover { background: rgba(27,122,62,.2); border-color: rgba(27,122,62,.5); transform: translateY(-4px); }
.why-icon-wrap { margin-bottom: 14px; display: flex; align-items: center; }
.credit-icon { width: 48px; height: 48px; background: var(--green); color: var(--white); font-family: var(--font-main); font-weight: 900; font-size: 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.why-card h3 { font-family: var(--font-main); font-weight: 700; color: var(--white); margin-bottom: 8px; }
.why-card p { font-size: .86rem; color: rgba(255,255,255,.65); line-height: 1.6; }

/* ======= CONTACT ======= */
.contact-section { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; }
.ci-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--white); border-radius: var(--radius-md); margin-bottom: 12px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--green); }
.ci-icon { flex-shrink: 0; margin-top: 2px; }
.ci-card strong { display: block; font-weight: 700; margin-bottom: 4px; font-size: .9rem; }
.ci-card p, .ci-card a { font-size: .88rem; color: var(--gray); }
.ci-card a:hover { color: var(--green); }
.sap-info-box { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--green-pale); border-radius: var(--radius-md); border: 2px solid rgba(27,122,62,.2); }
.sap-info-box strong { display: block; font-weight: 700; color: var(--green-dark); }
.sap-info-box p { font-size: .82rem; color: var(--green); }
.contact-form-box { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; color: var(--gray-dark); }
input, textarea, select { width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-light); border-radius: var(--radius-sm); font-size: .92rem; transition: border-color .2s; background: var(--white); color: var(--charcoal); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,122,62,.1); }
textarea { resize: vertical; min-height: 120px; }
.form-check label { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: .82rem; cursor: pointer; }
.form-check input[type="checkbox"] { width: auto; flex-shrink: 0; margin-top: 2px; accent-color: var(--green); }
.form-result { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 600; margin-top: 12px; display: none; }
.form-result.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; display: block; }
.form-result.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; display: block; }

/* ======= FOOTER ======= */
.footer { background: var(--charcoal); color: rgba(255,255,255,.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 40px; }
.footer-brand p { font-size: .86rem; line-height: 1.7; margin-bottom: 16px; }
.footer-badges { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.footer-credit-badge { background: rgba(201,168,76,.3); color: #FFC107; border: 1px solid rgba(201,168,76,.5); padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 700; }
.footer-col h4 { font-family: var(--font-main); font-weight: 700; color: var(--white); margin-bottom: 16px; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a, .footer-col p { font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-col li a:hover { color: var(--white); }
.footer-legal-info { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; }
.footer-legal-info p { font-size: .75rem; color: rgba(255,255,255,.4); line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; text-align: center; font-size: .8rem; color: rgba(255,255,255,.4); }

/* ======= MODAL ======= */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--white); border-radius: var(--radius-lg); padding: 40px; max-width: 520px; width: 100%; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-box h3 { font-family: var(--font-main); font-weight: 800; margin-bottom: 24px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--gray-light); border: none; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: .9rem; font-weight: 700; }

/* ======= PAGES LÉGALES ======= */
.legal-page { padding: 80px 0; }
.legal-container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.legal-container h1 { font-family: var(--font-main); font-size: 2rem; font-weight: 800; margin-bottom: 32px; color: var(--green-dark); }
.legal-container h2 { font-family: var(--font-main); font-size: 1.3rem; font-weight: 700; margin: 28px 0 12px; color: var(--charcoal); }
.legal-container p { margin-bottom: 12px; line-height: 1.8; color: var(--gray-dark); }
.legal-container ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.legal-container li { margin-bottom: 6px; color: var(--gray-dark); }

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .zone-inner { grid-template-columns: 1fr; }
  .acc-grid { grid-template-columns: 1fr; }
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero-right { order: -1; }
  .hero-photo-img { max-height: 320px; width: 100%; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; box-shadow: var(--shadow-md); z-index: 999; gap: 4px; }
  .nav-links.open { display: flex; }
  .navbar { position: relative; }
  .nav-inner { flex-wrap: wrap; }
  .header-top .container { flex-direction: column; gap: 6px; }
  .ht-left { flex-wrap: wrap; justify-content: center; }
  .ht-right { justify-content: center; }
  .hero { min-height: auto; }
  .hero-split { padding-top: 40px; padding-bottom: 40px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .photos-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .photos-grid .photo-item { height: 220px; }
  .form-row { grid-template-columns: 1fr; }
  .fin-cta-box { flex-direction: column; text-align: center; }
  .fin-cta-box .btn { margin: 0 auto; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .acc-grid { gap: 32px; }
  .service-panel { grid-template-columns: 1fr; }
  .sp-photo { display: none; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--green-pale); border-radius: var(--radius-sm); }
  .services-tabs { gap: 6px; }
  .stab-btn { font-size: .76rem; padding: 8px 14px; }
  .hero-photo-badge { left: 0; bottom: 10px; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 16px; }
  .contact-form-box { padding: 24px; }
  .info-grid { grid-template-columns: 1fr; }
  .fin-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 1.2rem; }
}

/* ======= SERVICES — GRILLE DE CARTES CLIQUABLES ======= */
.svc-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 0;
}
.svc-card-new {
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 24px 20px 20px;
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.svc-card-new:hover {
  border-color: var(--green);
  box-shadow: 0 6px 24px rgba(27,122,62,.13);
  transform: translateY(-3px);
}
.svc-card-new.active-card {
  border-color: var(--green);
  background: var(--green-pale);
  box-shadow: 0 6px 24px rgba(27,122,62,.18);
}
.svc-card-icon {
  width: 44px; height: 44px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}
.svc-card-icon svg { width: 24px; height: 24px; }
.svc-card-title {
  font-family: var(--font-main);
  font-size: .95rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.3;
  margin: 0;
}
.svc-card-short {
  font-size: .82rem;
  color: var(--gray);
  line-height: 1.5;
  flex: 1;
}
.svc-card-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green);
}
.svc-card-price span { font-size: .75rem; font-weight: 600; color: var(--gray); }
.svc-card-more {
  font-size: .8rem;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
  background: none; border: none; cursor: pointer; padding: 0;
  text-decoration: none;
}
.svc-card-new:hover .svc-card-more { text-decoration: underline; }

/* Panneau de détail sous la grille */
.svc-detail-wrapper {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  animation: slideDown .3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.svc-detail-panel { display: none; }
.svc-detail-panel.active { display: block; }
.sdp-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 280px;
  position: relative;
}
.svc-detail-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,.9);
  border: none; border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  color: var(--charcoal);
  transition: background .2s;
}
.svc-detail-close:hover { background: #fff; }
.sdp-photo { position: relative; overflow: hidden; }
.sdp-photo img { width: 100%; height: 100%; object-fit: cover; }
.sdp-photo-badge {
  position: absolute; bottom: 16px; left: 16px;
  background: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--green);
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.sdp-content {
  padding: 36px 40px;
  background: #fff;
}
.sdp-content h3 {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--charcoal);
}
.sdp-desc {
  font-size: .95rem;
  color: var(--gray-dark);
  line-height: 1.7;
  margin-bottom: 24px;
}
.sdp-meta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.sdp-meta-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .88rem; color: var(--gray-dark);
}
.sdp-meta-item svg { flex-shrink: 0; margin-top: 2px; }

/* Boutons CTA sous la grille */
.svc-cta-row {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ======= GRILLE TARIFAIRE ======= */
.tarifs-section { background: var(--bg-light); }
.tarifs-note-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #d1fae5;
  border: 1.5px solid #6ee7b7;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: .9rem;
  color: #065f46;
  margin-bottom: 28px;
  line-height: 1.5;
}
.tarifs-note-bar svg { flex-shrink: 0; }
.tarifs-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}
.tarifs-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: .9rem;
}
.tarifs-table thead tr { background: var(--green-dark); }
.tarifs-table thead th {
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tarifs-table tbody tr:nth-child(even) { background: #f8fdf9; }
.tarifs-table tbody tr:hover { background: var(--green-pale); }
.tarifs-table td {
  padding: 12px 18px;
  color: var(--charcoal);
  border-bottom: 1px solid #e8f5e9;
  vertical-align: middle;
}
.tarif-cat-row td {
  background: #e8f5e9 !important;
  font-weight: 700;
  color: var(--green-dark) !important;
  font-size: .85rem;
  padding: 10px 18px;
  letter-spacing: .02em;
}
.tarif-price { font-weight: 700; color: var(--green-dark) !important; font-size: 1rem; }
.tarif-net { font-weight: 800; color: var(--green) !important; font-size: 1rem; }
.tarif-mode {
  background: var(--green-pale);
  color: var(--green);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.tarifs-disclaimer {
  font-size: .78rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 28px;
  padding: 12px 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gray-light);
}
.tarifs-cta {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ======= RESPONSIVE SERVICES & TARIFS ======= */
@media (max-width: 1200px) {
  .svc-cards-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .svc-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .sdp-inner { grid-template-columns: 1fr; }
  .sdp-photo { height: 200px; }
  .sdp-content { padding: 24px; }
}
@media (max-width: 600px) {
  .svc-cards-grid { grid-template-columns: 1fr; }
  .svc-cta-row { flex-direction: column; align-items: center; }
  .tarifs-cta { flex-direction: column; align-items: center; }
  .tarifs-table { font-size: .8rem; }
  .tarifs-table td, .tarifs-table th { padding: 10px 12px; }
}

/* ============================================================
   AJOUTS — Agrément SAP / Certifications / Cookies RGPD
   Mise à jour: 11/09/2026
   ============================================================ */
.zone-note { margin-top: 16px; padding: 12px 16px; background: var(--green-pale); border-radius: var(--radius-sm); font-size: .88rem; color: var(--gray-dark); }
.zone-note a { color: var(--green); font-weight: 700; }

/* -- Page Certifications / Agréments -- */
.cert-hero { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: var(--white); padding: 70px 0 50px; text-align: center; }
.cert-hero h1 { font-family: var(--font-main); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.cert-hero p { max-width: 720px; margin: 0 auto; opacity: .92; font-size: 1.02rem; }
.cert-badges-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
.cert-badge { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 50px; padding: 8px 18px; font-size: .85rem; font-weight: 700; }
.cert-section { padding: 56px 0; }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 28px; }
.cert-card { background: var(--white); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--green); }
.cert-card h3 { font-family: var(--font-main); font-size: 1.05rem; margin-bottom: 12px; color: var(--charcoal); }
.cert-card p, .cert-card li { font-size: .92rem; color: var(--gray-dark); line-height: 1.7; }
.cert-card ul { list-style: disc; padding-left: 18px; margin-top: 8px; }
.cert-card.pending { border-top-color: var(--gold); background: #FFFBF0; }
.cert-status-pill { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: .75rem; font-weight: 700; margin-bottom: 10px; }
.cert-status-pill.ok { background: var(--green-pale); color: var(--green); }
.cert-status-pill.pending { background: #FDF1D6; color: #8A6514; }
.cert-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .9rem; }
.cert-table th, .cert-table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-light); text-align: left; }
.cert-table th { background: var(--green-pale); color: var(--green-dark); font-family: var(--font-main); }
.cert-download { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; }

/* -- Bandeau cookies RGPD -- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: -200px; background: var(--charcoal); color: var(--white); z-index: 999; padding: 18px 0; box-shadow: 0 -4px 24px rgba(0,0,0,.25); transition: bottom .4s ease; }
.cookie-banner.is-visible { bottom: 0; }
.cookie-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-inner p { font-size: .85rem; line-height: 1.6; max-width: 760px; color: rgba(255,255,255,.85); margin: 0; }
.cookie-inner a { color: var(--green-light); font-weight: 700; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

@media (max-width: 700px) {
  .cert-grid { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   AJOUTS — Documents clients (contrat en ligne) + signature
   Mise à jour: 12/09/2026
   ============================================================ */
.doc-page-wrap { max-width: 860px; margin: 0 auto; padding: 40px 20px 80px; }
.doc-contrat { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 40px; font-size: .92rem; line-height: 1.65; color: var(--charcoal); }
.doc-header { text-align: center; border-bottom: 3px solid var(--green); padding-bottom: 18px; margin-bottom: 24px; }
.doc-header h1 { font-family: var(--font-main); font-size: 1.4rem; color: var(--green-dark); margin-bottom: 6px; }
.doc-subtitle { font-size: .85rem; color: var(--gray-dark); }
.doc-warn { margin-top: 10px; display: inline-block; background: #FDF1D6; color: #8A6514; padding: 5px 14px; border-radius: 50px; font-size: .78rem; font-weight: 700; }
.doc-parties { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.doc-parties td { width: 50%; vertical-align: top; padding: 14px; border: 1px solid var(--gray-light); font-size: .85rem; }
.doc-contrat h3 { font-family: var(--font-main); font-size: 1rem; color: var(--green-dark); margin: 22px 0 8px; }
.doc-contrat ul { padding-left: 20px; margin: 8px 0; }
.doc-contrat li { margin-bottom: 6px; }
.doc-boxed { background: var(--green-pale); border-left: 4px solid var(--green); padding: 12px 16px; margin: 14px 0; font-size: .85rem; border-radius: 4px; }
.doc-signblock { margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--gray-light); }

/* Zone de signature électronique */
.sign-box { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 30px; margin-top: 24px; }
.sign-box h3 { font-family: var(--font-main); color: var(--green-dark); margin-bottom: 10px; }
.sign-canvas-wrap { border: 2px dashed var(--gray-light); border-radius: var(--radius-sm); background: #fafafa; margin: 14px 0; }
#signCanvas { width: 100%; height: 180px; display: block; touch-action: none; cursor: crosshair; }
.sign-actions { display: flex; gap: 10px; margin: 10px 0 20px; }
.sign-cert { background: var(--green-pale); border-radius: var(--radius-sm); padding: 16px; font-size: .82rem; color: var(--green-dark); margin-top: 20px; }
.sign-legal-note { font-size: .78rem; color: var(--gray-dark); margin-top: 10px; line-height: 1.6; }

@media print {
  .no-print { display: none !important; }
  body { background: white; }
  .doc-contrat, .sign-box { box-shadow: none; }
}
