/* =====================================================
   CERTIPOSE - Landing Page v3
   Clean, minimal, honest
   ===================================================== */

/* ---- Custom Properties ---- */
:root {
    --orange: #E8873D;
    --orange-dark: #D17530;
    --orange-light: #F4A76A;
    --orange-bg: rgba(232,135,61,0.06);
    --orange-border: rgba(232,135,61,0.15);

    --green: #5A7A68;
    --green-bg: rgba(90,122,104,0.06);

    --black: #1A1A1A;
    --gray-900: #2D2D2D;
    --gray-700: #4A4A4A;
    --gray-500: #8A8A8A;
    --gray-400: #A8A8A8;
    --gray-300: #D0D0D0;
    --gray-200: #E8E8E8;
    --gray-100: #F4F4F2;
    --gray-50: #F9F9F7;
    --white: #FFFFFF;

    --success: #34A853;
    --error: #EA4335;

    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.125rem;
    --text-lg: 1.25rem;
    --text-xl: clamp(1.25rem, 1rem + 1.25vw, 1.75rem);
    --text-2xl: clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
    --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
    --text-hero: clamp(2.5rem, 1.5rem + 5vw, 4.5rem);

    --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
    --s5: 1.25rem; --s6: 1.5rem; --s8: 2rem; --s10: 2.5rem;
    --s12: 3rem; --s16: 4rem; --s20: 5rem; --s24: 6rem; --s32: 8rem;
    --section: clamp(4rem, 3rem + 5vw, 8rem);

    --max-w: 1100px;
    --px: clamp(1.25rem, 1rem + 2vw, 2.5rem);

    --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 20px; --r-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 150ms var(--ease);
    --t-base: 300ms var(--ease);

    --header-h: 72px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--t-fast); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    color: var(--black);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.section { padding: var(--section) 0; }
.text-accent { color: var(--orange); }

.section__header { text-align: center; max-width: 600px; margin: 0 auto var(--s12); }
.section__tag {
    display: inline-flex; align-items: center; gap: var(--s2);
    font-size: var(--text-xs); font-weight: 600; color: var(--orange);
    text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: var(--s4);
}
.section__tag::before { content: ''; width: 24px; height: 1px; background: var(--orange); }
.section__title { font-size: var(--text-2xl); margin-bottom: var(--s4); font-weight: 700; }
.section__description { font-size: var(--text-base); color: var(--gray-500); max-width: 520px; margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
    font-family: var(--font); font-size: var(--text-sm); font-weight: 600;
    padding: 0.875rem 2rem; border-radius: var(--r-full);
    transition: all var(--t-base); border: 1.5px solid transparent;
}
.btn--primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn--primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,135,61,0.3); }
.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn--outline-white:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--sm { padding: 0.625rem 1.25rem; font-size: var(--text-xs); }
.btn--lg { padding: 1rem 2.5rem; font-size: var(--text-base); }
.btn--full { width: 100%; }

/* ---- Mobile Bar (disabled) ---- */

/* =====================================================
   HEADER
   ===================================================== */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 900; height: var(--header-h); transition: all var(--t-base); }
.header--scrolled { background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
.header--scrolled .nav__link { color: var(--gray-700); }
.header--scrolled .nav__link:hover, .header--scrolled .nav__link.active { color: var(--black); }
.header--scrolled .nav__link--cta { color: var(--white) !important; }
.header--scrolled .nav__phone { color: var(--black); }
.header--scrolled .nav__toggle i { color: var(--black); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--s3); }
.nav__logo img { height: 38px; width: auto; }
.nav__logo-dark { display: none; }
.nav__logo-white { display: block; }
.header--scrolled .nav__logo-dark { display: block; }
.header--scrolled .nav__logo-white { display: none; }
.nav__menu { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: var(--s4); }
.nav__link { font-size: var(--text-sm); font-weight: 500; color: rgba(255,255,255,0.7); position: relative; padding: var(--s2) 0; transition: color var(--t-fast); white-space: nowrap; }
.nav__link:hover, .nav__link.active { color: var(--white); }
.nav__link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1.5px; background: var(--orange); transition: width var(--t-base); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link--cta { background: var(--orange); color: var(--white) !important; padding: 0.4rem 1rem; border-radius: var(--r-full); font-weight: 600; font-size: var(--text-xs); line-height: 1.2; }
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--orange-dark); }
.nav__actions { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; }
.nav__phone { display: flex; align-items: center; gap: var(--s2); font-weight: 600; font-size: var(--text-sm); color: var(--white); white-space: nowrap; }
.nav__phone:hover { color: var(--orange-light); }
.nav__phone i { font-size: 1rem; }
.nav__toggle { display: none; font-size: 1.5rem; color: var(--white); }
.nav__close { display: none; position: absolute; top: var(--s6); right: var(--s6); font-size: 1.5rem; color: var(--black); }

/* =====================================================
   HERO
   ===================================================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: var(--black); }
.hero__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 1; }
.hero__bg::after { display: none; }
.hero__content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + var(--s16)); padding-bottom: var(--s32); max-width: 700px; }
.hero__title { font-size: var(--text-hero); color: var(--white); margin-bottom: var(--s6); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.hero__title--accent { color: var(--orange); }
.hero__subtitle { font-size: var(--text-md); color: rgba(255,255,255,0.5); margin-bottom: var(--s10); max-width: 500px; line-height: 1.7; font-weight: 400; }
.hero__subtitle strong { color: rgba(255,255,255,0.85); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s4); }
.hero__scroll { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.2); font-size: 1.25rem; animation: scrollBounce 2.5s ease-in-out infinite; z-index: 2; }
@keyframes scrollBounce { 0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; } 50% { transform: translateX(-50%) translateY(6px); opacity: 1; } }

/* =====================================================
   SERVICES
   ===================================================== */
.services { background: var(--white); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.service-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: var(--s8); transition: all var(--t-base); }
.service-card:hover { border-color: var(--orange-border); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card__icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--orange-bg); border-radius: var(--r-md); margin-bottom: var(--s5); }
.service-card__icon i { font-size: 1.25rem; color: var(--orange); }
.service-card__title { font-size: var(--text-lg); margin-bottom: var(--s3); font-weight: 700; }
.service-card__description { margin-bottom: var(--s5); color: var(--gray-500); font-size: var(--text-sm); line-height: 1.6; }
.service-card__list { margin-bottom: var(--s6); }
.service-card__list li { display: flex; align-items: center; gap: var(--s2); padding: var(--s1) 0; font-size: var(--text-sm); color: var(--gray-700); }
.service-card__list li i { color: var(--orange); font-size: 0.875rem; flex-shrink: 0; }
.service-card__link { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--text-sm); font-weight: 600; color: var(--orange); transition: gap var(--t-fast); }
.service-card__link:hover { gap: var(--s4); }

/* =====================================================
   ABOUT / EXPERTISE
   ===================================================== */
.expertise { background: var(--gray-50); }
.expertise__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s16); align-items: start; }
.expertise__images { position: relative; }
.expertise__img-main { border-radius: var(--r-lg); overflow: hidden; }
.expertise__img-placeholder { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--gray-900), var(--gray-700)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s4); color: rgba(255,255,255,0.2); }
.expertise__img-placeholder i { font-size: 2.5rem; }
.expertise__img-placeholder span { font-size: var(--text-sm); }
.expertise__text { margin-bottom: var(--s5); font-size: var(--text-base); line-height: 1.7; }
.expertise__features { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); margin-top: var(--s8); }
.expertise__feature { display: flex; gap: var(--s3); }
.expertise__feature-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--orange-bg); border-radius: var(--r-md); flex-shrink: 0; }
.expertise__feature-icon i { font-size: 1.125rem; color: var(--orange); }
.expertise__feature-icon--eco { background: var(--green-bg); }
.expertise__feature-icon--eco i { color: var(--green); }
.expertise__feature h4 { font-size: var(--text-sm); font-weight: 600; margin-bottom: 2px; }
.expertise__feature p { font-size: var(--text-xs); color: var(--gray-500); line-height: 1.5; }

/* =====================================================
   PROCESS
   ===================================================== */
.process { background: var(--white); }
.process__grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: start; gap: 0; }
.process__step { text-align: center; position: relative; padding: 0 var(--s2); }
.process__step-number { position: absolute; top: -0.375rem; right: calc(50% - 44px); font-size: var(--text-xs); font-weight: 700; color: var(--white); background: var(--orange); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2; }
.process__step-icon { width: 64px; height: 64px; margin: 0 auto var(--s4); background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all var(--t-base); }
.process__step:hover .process__step-icon { background: var(--orange-bg); border-color: var(--orange-border); }
.process__step-icon i { font-size: 1.25rem; color: var(--orange); }
.process__step h3 { font-size: var(--text-sm); margin-bottom: var(--s2); font-weight: 600; }
.process__step p { font-size: var(--text-xs); color: var(--gray-500); line-height: 1.5; }
.process__connector { width: 32px; height: 1px; background: var(--gray-300); margin-top: 32px; flex-shrink: 0; }

/* =====================================================
   REALISATIONS
   ===================================================== */
.realisations { background: var(--gray-50); }
.realisations__filter { display: flex; justify-content: center; gap: var(--s2); margin-bottom: var(--s8); flex-wrap: wrap; }
.realisations__filter-btn { padding: var(--s2) var(--s5); border-radius: var(--r-full); font-size: var(--text-sm); font-weight: 500; color: var(--gray-500); background: var(--white); border: 1px solid var(--gray-200); transition: all var(--t-fast); }
.realisations__filter-btn:hover, .realisations__filter-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }
.realisations__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.realisation-card { border-radius: var(--r-lg); overflow: hidden; background: var(--white); border: 1px solid var(--gray-200); transition: all var(--t-base); }
.realisation-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.realisation-card.hidden { display: none; }
.realisation-card__img { position: relative; overflow: hidden; }
.realisation-card__placeholder { width: 100%; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--gray-900), var(--gray-700)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.2); }
.realisation-card__placeholder i { font-size: 2rem; }
.realisation-card__overlay { position: absolute; top: var(--s3); left: var(--s3); }
.realisation-card__tag { background: var(--orange); color: var(--white); padding: 2px var(--s3); border-radius: var(--r-full); font-size: 0.6875rem; font-weight: 600; }
.realisation-card__content { padding: var(--s4); }
.realisation-card__content h3 { font-size: var(--text-sm); font-weight: 600; margin-bottom: 2px; }
.realisation-card__content p { font-size: var(--text-xs); color: var(--gray-500); display: flex; align-items: center; gap: var(--s1); }

/* =====================================================
   ZONE
   ===================================================== */
.zone { background: var(--white); }
.zone__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s12); align-items: start; }
.zone__content p { margin-bottom: var(--s5); line-height: 1.7; }
.zone__departments { margin-bottom: var(--s6); }
.zone__departments h3, .zone__cities h3 { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--s3); }
.zone__dept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.zone__dept { display: flex; align-items: center; gap: var(--s2); font-size: var(--text-sm); color: var(--gray-700); padding: var(--s1) 0; }
.zone__dept i { color: var(--orange); font-size: 0.875rem; }
.zone__city-tags { display: flex; flex-wrap: wrap; gap: var(--s2); }
.zone__city-tag { background: var(--gray-50); padding: var(--s1) var(--s3); border-radius: var(--r-full); font-size: var(--text-xs); color: var(--gray-700); border: 1px solid var(--gray-200); transition: all var(--t-fast); }
.zone__city-tag:hover { border-color: var(--orange); color: var(--orange); }
.zone__map-container { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); height: 420px; border: 1px solid var(--gray-200); }
.zone__map-container iframe { width: 100%; height: 100%; }

/* =====================================================
   CONTACT
   ===================================================== */
.contact { background: var(--gray-50); }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s10); align-items: start; }
.contact__info-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: var(--s6); }
.contact__info-item { display: flex; gap: var(--s4); padding: var(--s3) 0; }
.contact__info-item + .contact__info-item { border-top: 1px solid var(--gray-100); }
.contact__info-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--orange-bg); border-radius: var(--r-md); flex-shrink: 0; }
.contact__info-icon i { font-size: 1rem; color: var(--orange); }
.contact__info-item h4 { font-size: var(--text-sm); font-weight: 600; margin-bottom: 1px; }
.contact__info-item a { color: var(--orange); font-weight: 500; font-size: var(--text-sm); }
.contact__info-item a:hover { color: var(--orange-dark); }
.contact__info-item p { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.5; }

/* Form */
.contact__form-wrapper { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: var(--s8); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.form__group { margin-bottom: var(--s4); }
.form__label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--black); margin-bottom: var(--s2); }
.form__input { width: 100%; padding: 0.75rem 1rem; font-family: var(--font); font-size: var(--text-base); color: var(--black); background: var(--gray-50); border: 1.5px solid var(--gray-200); border-radius: var(--r-md); transition: all var(--t-fast); outline: none; }
.form__input::placeholder { color: var(--gray-400); }
.form__input:focus { border-color: var(--orange); background: var(--white); box-shadow: 0 0 0 3px rgba(232,135,61,0.08); }
.form__input.error { border-color: var(--error); }
.form__select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238A8A8A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem; }
.form__textarea { resize: vertical; min-height: 100px; }
.form__error { display: block; font-size: var(--text-xs); color: var(--error); margin-top: var(--s1); min-height: 1em; }
.form__group--checkbox { margin-bottom: var(--s6); }
.form__checkbox-label { display: flex; align-items: flex-start; gap: var(--s3); font-size: var(--text-sm); color: var(--gray-700); cursor: pointer; }
.form__checkbox-label input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--gray-300); border-radius: 4px; flex-shrink: 0; margin-top: 2px; transition: all var(--t-fast); position: relative; cursor: pointer; }
.form__checkbox-label input[type="checkbox"]:checked { background: var(--orange); border-color: var(--orange); }
.form__checkbox-label input[type="checkbox"]:checked::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.form__link { color: var(--orange); text-decoration: underline; }
.btn__loader i { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.contact__success { text-align: center; padding: var(--s16) var(--s8); }
.contact__success-icon { font-size: 3rem; color: var(--success); margin-bottom: var(--s5); }
.contact__success h3 { font-size: var(--text-xl); margin-bottom: var(--s3); }
.contact__success p { color: var(--gray-500); }

/* =====================================================
   FAQ
   ===================================================== */
.faq { background: var(--white); }
.faq__grid { max-width: 720px; margin: 0 auto; }
.faq__item { background: var(--gray-50); border-radius: var(--r-md); margin-bottom: var(--s3); border: 1px solid var(--gray-200); overflow: hidden; }
.faq__item[open] { background: var(--white); box-shadow: var(--shadow-sm); }
.faq__question { display: flex; align-items: center; justify-content: space-between; padding: var(--s4) var(--s5); cursor: pointer; font-weight: 600; font-size: var(--text-sm); color: var(--black); list-style: none; }
.faq__question::-webkit-details-marker { display: none; }
.faq__question i { transition: transform var(--t-base); color: var(--orange); font-size: 1rem; flex-shrink: 0; margin-left: var(--s4); }
.faq__item[open] .faq__question i { transform: rotate(180deg); }
.faq__item[open] .faq__question { color: var(--orange); }
.faq__answer { padding: 0 var(--s5) var(--s4); color: var(--gray-500); font-size: var(--text-sm); line-height: 1.7; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer { background: var(--black); color: rgba(255,255,255,0.5); padding: var(--s16) 0 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: var(--s10); padding-bottom: var(--s10); }
.footer__logo { height: 36px; width: auto; margin-bottom: var(--s5); filter: brightness(0) invert(1); opacity: 0.8; }
.footer__brand p { font-size: var(--text-sm); line-height: 1.7; margin-bottom: var(--s5); }
.footer__social { display: flex; gap: var(--s3); }
.footer__social-link { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-md); color: rgba(255,255,255,0.5); font-size: 1rem; transition: all var(--t-fast); }
.footer__social-link:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.footer__links h4, .footer__contact h4 { color: var(--white); font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--s4); }
.footer__links li { margin-bottom: var(--s2); }
.footer__links a { font-size: var(--text-sm); }
.footer__links a:hover { color: var(--orange); }
.footer__contact li { display: flex; gap: var(--s2); margin-bottom: var(--s3); font-size: var(--text-sm); }
.footer__contact li i { color: var(--orange); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.footer__contact a:hover { color: var(--orange); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: var(--s5) 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s4); }
.footer__bottom p { font-size: var(--text-xs); }
.footer__legal { display: flex; gap: var(--s6); }
.footer__legal a { font-size: var(--text-xs); }
.footer__legal a:hover { color: var(--orange); }

/* =====================================================
   BACK TO TOP + ANIMATIONS
   ===================================================== */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 40px; height: 40px; background: var(--black); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all var(--t-base); z-index: 800; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--orange); transform: translateY(-2px); }

[data-animate] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate="fade-right"] { transform: translateX(-20px); }
[data-animate="fade-left"] { transform: translateX(20px); }
[data-animate].animated { opacity: 1; transform: translate(0, 0); }

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablet landscape */
@media (max-width: 1024px) {
    .services__grid { gap: var(--s4); }
    .service-card { padding: var(--s6); }
    .expertise__grid { grid-template-columns: 1fr; gap: var(--s10); }
    .expertise__images { max-width: 400px; }
    .zone__grid { grid-template-columns: 1fr; }
    .zone__map-container { height: 320px; }
    .contact__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
}

/* Tablet portrait */
@media (max-width: 768px) {
    /* -- Marges globales mobile -- */
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }

    /* -- Header mobile : logo centré, gros -- */
    .header { height: 200px; padding-top: 2rem; }
    .nav { height: 100%; position: relative; }
    .nav__logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
    .nav__logo img { height: auto; width: 260px; }
    .nav__actions { position: absolute; top: 0.75rem; right: 1.5rem; }
    .nav__toggle { display: block; }
    .nav__phone span { display: none; }
    .nav__phone i { font-size: 1.25rem; }

    /* -- Menu mobile slide -- */
    .nav__menu { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--white); padding: var(--s20) var(--s8) var(--s8); box-shadow: var(--shadow-lg); transition: right var(--t-base); z-index: 999; }
    .nav__menu.active { right: 0; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__link { color: var(--gray-700); padding: var(--s4) 0; font-size: var(--text-base); display: block; border-bottom: 1px solid var(--gray-100); }
    .nav__link--cta { margin-top: var(--s4); text-align: center; }
    .nav__close { display: block; }

    .back-to-top { bottom: 1.5rem; }

    /* -- Hero mobile -- */
    .hero__content { padding-top: calc(200px + var(--s8)); padding-bottom: var(--s16); }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }

    .services__grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }

    .process__grid { grid-template-columns: 1fr 1fr; gap: var(--s6); }
    .process__connector { display: none; }

    .expertise__features { grid-template-columns: 1fr; }

    .realisations__grid { grid-template-columns: repeat(2, 1fr); }

    .form__row { grid-template-columns: 1fr; }

    .footer__grid { grid-template-columns: 1fr; gap: var(--s8); }
    .footer__bottom { flex-direction: column; text-align: center; }
}

/* Mobile */
@media (max-width: 480px) {
    .process__grid { grid-template-columns: 1fr; gap: var(--s8); max-width: 260px; margin-left: auto; margin-right: auto; }
    .realisations__grid { grid-template-columns: 1fr; }
    .zone__dept-grid { grid-template-columns: 1fr; }
    .contact__form-wrapper { padding: var(--s5); }
}

/* ---- Overlay ---- */
.nav__overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 998; opacity: 0; visibility: hidden; transition: all var(--t-base); }
.nav__overlay.active { opacity: 1; visibility: visible; }

/* ---- Privacy Modal ---- */
.modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; padding: var(--s4); }
.modal-overlay.active { display: flex; }
.modal { background: var(--white); border-radius: var(--r-lg); max-width: 600px; width: 100%; max-height: 80vh; overflow-y: auto; padding: var(--s8); position: relative; }
.modal__close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.75rem; cursor: pointer; color: #999; line-height: 1; }
.modal__close:hover { color: var(--black); }
.modal h3 { font-size: var(--text-lg); margin-bottom: var(--s6); padding-right: 2rem; }
.modal__body p { margin-bottom: var(--s3); font-size: var(--text-sm); line-height: 1.7; color: #444; }
.modal__body strong { color: var(--black); }

/* ---- Print ---- */
@media print {
    .header, .quick-contact-bar, .back-to-top, .hero__scroll { display: none; }
    .hero { min-height: auto; padding: 2rem 0; }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    [data-animate] { opacity: 1; transform: none; }
}
