* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: #222;
    background: #fff;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

header {
    position: fixed;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* état scrollé */
header.scrolled {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

/* compaction */
header.scrolled .nav {
    padding: 10px 0;
}

/* logo réduit */
header.scrolled .logo {
    height: 42px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo {
    height: 50px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #222;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #222;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.btn {
    background: linear-gradient(135deg, #23d2cc, #1fc7c1);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;

    box-shadow: 0 4px 10px rgba(31, 199, 193, 0.25);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(31, 199, 193, 0.35);
}

.btn.secondary {
    background: transparent;
    border: 1px solid #1fc7c1;
    color: #1fc7c1;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f7f7f7, #ffffff);
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.hero-content {
    max-width: 760px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.9rem;
    font-weight: 600;
    display: block;
    margin-top: 10px;
    color: #24343b;
}

.hero p {
    margin-top: 24px;
    margin-bottom: 22px;
    color: #3e4d55;
    font-size: 1.05rem;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(31, 199, 193, 0.06);
    z-index: 1;
}

.section {
    padding: 100px 0;
}

.section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #111;
}

#services h2::after, #interventions h2::after, #references h2::after, #contact h2::after  {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #1fc7c1, rgba(31, 199, 193, 0.5));
    background: linear-gradient(90deg, #1fc7c1, #0f1c21);
    background: linear-gradient(90deg, #1fc7c1, #0f7378);
}

#services h2::after,
#interventions h2::after,
#references h2::after,
#contact h2::after {
    content: "";
    display: block;
    width: 82px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(31, 199, 193, 0.9) 0%,
        rgba(31, 199, 193, 1) 45%,
        rgba(15, 115, 120, 0.92) 100%
    );
    transform: translateX(-1px) scaleX(1.02);
}

.section.light {
    background: #f7f7f7;
}

.cards {
    display: flex;
    gap: 24px;
    margin-top: 48px;
}

.card {
    flex: 1;
    padding: 34px 30px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: center;
    border-top: 4px solid rgba(31, 199, 193, 0.22);
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
}

.icon {
    font-size: 34px;
    margin-bottom: 16px;
    line-height: 1;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    color: #111;
}.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card li {
    margin-bottom: 12px;
    color: #444;
    line-height: 1.5;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.card li:last-child {
    margin-bottom: 0;
}

/* petite icône propre */
.card li::before {
    content: "✔";
    font-size: 12px;
    color: #1fc7c1;
    transform: translateY(-1px);
}

.grid {
    display: flex;
    gap: 24px;
    margin-top: 42px;
}

.intervention-grid {
    align-items: stretch;
}

.intervention-card {
    flex: 1;
    background: #ffffff;
    border-radius: 14px;
    padding: 34px 28px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.intervention-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
}

.intervention-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    line-height: 1;
    background: linear-gradient(135deg, #e9fbfa, #d7f6f3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.intervention-card h3 {
    font-size: 1.25rem;
    color: #111;
    margin-bottom: 14px;
}

.intervention-card p {
    color: #3b4a52;
    line-height: 1.65;
    margin-bottom: 20px;
    font-size: 0.92rem;
    font-weight: 500;
}

.intervention-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.intervention-card li {
    margin-bottom: 12px;
    color: #444;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.intervention-card li:last-child {
    margin-bottom: 0;
}

.intervention-card li::before {
    content: "•";
    color: #1fc7c1;
    font-size: 18px;
    line-height: 1;
    transform: translateY(-1px);
}

/* ===== REFERENCES ===== */

#references {
    background: linear-gradient(135deg, #243847 0%, #2f4757 100%);
    color: #f4f8fa;
}

#references h2 {
    color: #ffffff;
}

#references .section-intro {
    color: rgba(230, 238, 242, 0.82);
}

.references-grid {
    display: flex;
    gap: 28px;
    margin-top: 48px;
    align-items: flex-start;
}

.reference-card {
    flex: 1;
    text-align: center;
    padding: 0 9px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.reference-card:hover {
    transform: none;
    box-shadow: none;
}

.reference-icon {
    display: block;
    margin: 0 auto 18px;
    font-size: 56px;
    line-height: 1;
    background: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.reference-card h3 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 14px;
    color: #36d4cd;
    font-weight: 700;
}

.reference-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 22px;
    color: rgba(230, 238, 242, 0.72);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.reference-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reference-card li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.96);
    line-height: 1.6;
    font-size: 0.98rem;
}

.reference-card li:last-child {
    margin-bottom: 0;
}

.reference-card li::before {
    content: "• ";
    color: #ffffff;
}

/* responsive */
@media (max-width: 800px) {
    .references-grid {
        flex-direction: column;
        gap: 36px;
    }

    .reference-card {
        padding: 0;
    }

    .reference-card p {
        max-width: 100%;
    }
}

.section-intro {
    max-width: 760px;
    margin: 14px auto 0;
    text-align: center;
    color: #666;
    line-height: 1.7;
}

.contact-box {
    margin: 20px 0;
}

footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: #fff;
}

/* animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: none;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* responsive */
@media(max-width: 800px) {
    .cards, .grid {
        flex-direction: column;
    }
}


.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.28;
    filter: saturate(0.7) brightness(1.04);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.42);
    z-index: 1;
}

.hero-bg svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* ===== CONTACT ===== */

.contact {
    position: relative;
    text-align: center;
    padding: 110px 0 80px;
    background:
        linear-gradient(135deg, rgba(24, 52, 68, 0.74), rgba(44, 112, 145, 0.56)),
        url("background-contact.png") center center / cover no-repeat;
    overflow: hidden;
}

.contact h2 {
    margin-bottom: 12px;
    color: #ffffff;
}

.contact h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffffff, #8fe9e5);
}

.contact-intro {
    max-width: 760px;
    margin: 18px auto 0;
    text-align: center;
    color: rgba(255,255,255,0.92);
    line-height: 1.7;
    font-size: 1rem;
}

.contact-center {
    margin: 28px auto 0;
    display: grid;
    gap: 14px;
    max-width: 620px;
}

.contact-center p {
    margin: 0;
    color: rgba(255,255,255,0.94);
    line-height: 1.7;
    font-size: 1rem;
}

.contact-center strong {
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 2px;
}

.contact-logo-wrap {
    margin: 42px auto 0;
    max-width: 760px;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.contact-logo-wrap::before {
    content: none;
}

.contact-logo {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    opacity: 1;
}

.contact-buttons {
    justify-content: center;
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact .btn {
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

.contact .btn.secondary {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.72);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.contact .btn.secondary:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.16);
}

/* responsive */
@media (max-width: 600px) {
    .contact {
        padding: 90px 0 64px;
    }

    .contact-intro {
        font-size: 0.95rem;
    }

    .contact-center p {
        font-size: 0.98rem;
    }

    .contact-logo {
        max-width: 280px;
    }
}

/* ===== FOOTER ===== */

.site-footer {
    background: #0f1317;
    color: rgba(255,255,255,0.86);
    padding: 28px 0 14px;
}

.site-footer a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    position: relative;
}

.site-footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: #1fc7c1;
    transition: width 0.25s ease;
}

.site-footer a:hover::after {
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 18px;
}

.footer-col {
    flex: 1;
}

.footer-col p {
    margin: 0 0 6px;
    font-size: 0.94rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.76);
}

.footer-col strong {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 14px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.62);
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.legal-page {
    background: #f7f7f7;
    min-height: 100vh;
}

.legal-hero {
    padding: 140px 0 50px;
    background: linear-gradient(180deg, #f4fbfb 0%, #ffffff 100%);
    text-align: center;
}

.legal-hero-content {
    max-width: 760px;
    margin: 0 auto;
}

.legal-kicker {
    color: #1fc7c1;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.legal-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 16px;
    color: #111;
}

.legal-intro {
    color: #4a5a61;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

.legal-section {
    padding-top: 30px;
    padding-bottom: 90px;
}

.legal-container {
    max-width: 900px;
}

.legal-block {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 14px;
    padding: 28px 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

.legal-block h2 {
    text-align: left;
    font-size: 1.25rem;
    margin-bottom: 18px;
    color: #111;
}

.legal-block h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1fc7c1, #0f7378);
}

.legal-block p {
    margin-bottom: 12px;
    color: #3e4d55;
    line-height: 1.7;
}

.legal-block p:last-child {
    margin-bottom: 0;
}

.legal-block a {
    color: #0f7378;
    text-decoration: none;
}

.legal-block a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE CONTACT / FOOTER ===== */

@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        padding: 12px 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        z-index: 1001;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        margin-left: 0;
        padding: 14px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .main-nav a.btn {
        margin: 10px 20px 0;
        text-align: center;
        color: #fff;
        border-radius: 6px;
    }

    .references-grid {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .reference-card {
        max-width: 420px;
        margin: 0 auto;
        text-align: center;
    }

    .reference-card h3 {
        font-size: 1.5rem;
    }

    .reference-card p {
        max-width: 100%;
        padding: 0 10px;
    }

    .reference-card ul {
        margin-top: 10px;
    }

    .reference-card li {
        justify-content: center;
    }
    .legal-hero {
        padding: 120px 0 40px;
    }

    .legal-block {
        padding: 22px 20px;
    }

    .legal-block h2 {
        font-size: 1.15rem;
    }
}

@media (max-width: 600px) {
    .contact {
        padding-bottom: 56px;
    }

    .contact-intro {
        font-size: 0.93rem;
    }

    .contact-logo-wrap {
        min-height: 220px;
        padding: 28px 20px;
    }

    .contact-logo {
        max-width: 260px;
    }
    
    .contact-center {
        gap: 12px;
        max-width: 100%;
        padding: 0 10px;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-buttons .btn {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        text-align: center;
    }
}