/* ===========================
   Global Styles
   =========================== */

:root {
    --primary-color: #0081c9;
    --secondary-color: #bee3f4;
    --accent-color: #e0f2fe;
    --text-dark: #1A202C;
    --text-light: #718096;
    --bg-light: #F7FAFC;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 8px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img, video, iframe, embed {
    max-width: 100%;
    height: auto;
}

section, div, article, aside, header, footer, main {
    max-width: 100%;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* ===========================
   Header & Navigation
   =========================== */

.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.btn-contact {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-contact:hover {
    background: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.hero-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(190, 227, 244, 0.4);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* ===========================
   Services Section
   =========================== */

.services-overview {
    padding: 4rem 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    stroke: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card ul {
    margin: 1rem 0;
}

.service-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.service-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===========================
   Zone Coverage
   =========================== */

.zone-coverage {
    padding: 4rem 0;
    background: white;
}

.zones-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.zone-item {
    background: var(--bg-light);
    padding: 1rem 1.25rem;
    text-align: center;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.zone-item:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* ===========================
   Trust Elements
   =========================== */

.trust-elements {
    padding: 4rem 0;
    background: var(--bg-light);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.trust-item {
    text-align: center;
    padding: 1.5rem;
}

.trust-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.trust-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.trust-item p {
    font-size: 0.9rem;
}

/* ===========================
   CTA Section
   =========================== */

.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Footer
   =========================== */

.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-column h3,
.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-column p {
    color: rgba(255,255,255,0.7);
}

.footer-column ul li {
    padding: 0.5rem 0;
}

.footer-column a {
    color: rgba(255,255,255,0.7);
    padding: 0.5rem 0;
    display: inline-block;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.footer-column a:hover {
    color: white;
}

.footer-badges {
    margin-top: 1rem;
}

.sap-logo {
    height: 40px;
    margin-right: 1rem;
}

.tva-mention {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.footer-contact li {
    color: rgba(255,255,255,0.8);
}

/* Footer Cities Accordion Styles */
.footer-cities .cities-main {
    margin-bottom: 0.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
}

.cities-accordion {
    margin-top: 1rem;
}

.cities-accordion summary {
    list-style: none;
    display: block;
}

.cities-accordion summary::-webkit-details-marker {
    display: none;
}

.cities-accordion summary::marker {
    display: none;
    content: '';
}

.cities-accordion summary::before {
    display: none;
}

.cities-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    user-select: none;
}

.cities-toggle:hover {
    color: white;
}

.cities-toggle span {
    font-size: 0.95rem;
}

.accordion-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    stroke: rgba(255,255,255,0.7);
}

.cities-accordion[open] .accordion-icon {
    transform: rotate(180deg);
}

.cities-extended {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem 0.8rem;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cities-extended li {
    padding: 0.25rem 0;
}

.cities-extended a {
    font-size: 0.85rem;
    min-height: auto;
    padding: 0.25rem 0;
    white-space: nowrap;
}

@media (max-width: 968px) {
    .cities-extended {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem 1rem;
    }

    .cities-extended a {
        font-size: 0.9rem;
    }
}

/* Footer Social Media Icons */
.footer-social {
    margin-top: 1.5rem;
}

.footer-social h4 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #fff;
}

.social-icons a:hover {
    background-color: #0081c9;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 129, 201, 0.3);
}

.social-icons a svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .footer-social {
        margin-top: 1.5rem;
    }

    .social-icons {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .footer-cities .cities-main {
        grid-template-columns: 1fr;
    }

    .cities-extended {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem 0.8rem;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal p {
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    padding: 0.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* ===========================
   Cookie Banner
   =========================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-dark);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p {
    color: white;
    margin: 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cookie-buttons .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.cookie-buttons .btn-link {
    color: rgba(255,255,255,0.7);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .zones-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .logo-img {
        height: 48px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: 100dvh;
        max-height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-badges {
        grid-template-columns: 1fr;
        padding: 0 5px;
        gap: 0.75rem;
    }

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

    .zones-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-legal {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .hero-badges {
        padding: 0 10px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
    }

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

    .zone-item {
        font-size: 0.85rem;
        padding: 0.75rem 0.5rem;
        line-height: 1.3;
    }
}

/* Très petits écrans (320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-badges {
        padding: 0 5px;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .zones-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .zone-item {
        font-size: 0.8rem;
        padding: 0.5rem;
        text-align: center;
    }
}