/* ============================================
   STYLE.CSS — AMG Aluminium
   Base globale partagée par toutes les pages
   ============================================ */

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    padding-top: 106px; /* top-bar 34px + navbar 72px */
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}
.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
/* ============================================
   HEADER — Transparent → Flouté au scroll
   ============================================ */

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease-in-out;
}

.header-hidden {
    transform: translateY(-100%);
}

/* --- TOP BAR --- */
.header-top-bar {
    background-color: #0f1115;
    color: rgba(255,255,255,0.75);
    padding: 7px 0;
    font-size: 12.5px;
    border-bottom: none;
    transition: background 0.4s ease, opacity 0.4s ease;
}

/* Top bar masquée au scroll */
.main-header.scrolled .header-top-bar {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    border: none;
}

.header-top-bar .container-header {
    height: auto;
    min-height: 34px;
    padding: 0 30px;
}

.contact-info {
    display: flex;
    gap: 24px;
    align-items: center;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.3px;
}

/* Séparateur entre les infos */
.contact-info span:first-child::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.15);
    margin-left: 24px;
}

/* --- NAVBAR --- */
.header-navbar {
    background: #0f1115;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: none;
    padding: 0;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

/* Au scroll : fond flouté premium */
.main-header.scrolled .header-navbar {
    background: #0d1016;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Sur pages sans hero sombre (postuler, realisations) */
.main-header.solid .header-top-bar {
    background-color: #0f1116;
    opacity: 1;
}
.main-header.solid .header-navbar {
    background: #0f1116;
    backdrop-filter: none;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* --- CONTAINER NAVBAR --- */
.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
    height: 72px;
}

/* --- LOGO --- */
.logo img {
    height: 52px;
    width: auto;
    display: block;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.03);
}

/* --- MENU LIENS --- */
.menu-links {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.78);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    position: relative;
    padding: 6px 14px;
    border-radius: 6px;
    transition: color 0.25s ease, background 0.25s ease;
}

.menu-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.07);
}

/* Lien actif */
.menu-links a.active {
    color: #fff;
    background: rgba(44,95,158,0.2);
}

/* Trait animé sous les liens */
.menu-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 14px;
    background: #4a8fd4;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.menu-links a:hover::after,
.menu-links a.active::after {
    width: calc(100% - 28px);
}

/* --- BOUTON CONTACTEZ-NOUS --- */
.header-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #2c5f9e 0%, #1a4a80 100%);
    color: white !important;
    padding: 0 22px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    height: 40px;
    letter-spacing: 0.3px;
    border: 1px solid rgba(74,143,212,0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(44,95,158,0.3);
}

.btn-nav:hover {
    background: linear-gradient(135deg, #3a70b5 0%, #2255a0 100%);
    box-shadow: 0 4px 20px rgba(44,95,158,0.5);
    transform: translateY(-1px);
}

/* --- RÉSEAUX SOCIAUX TOP BAR --- */
.social-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #2c5f9e;
    border-color: #2c5f9e;
    color: #fff;
    transform: translateY(-2px);
}

/* --- HAMBURGER MOBILE --- */
.mobile-menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-icon span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: 0.3s;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: linear-gradient(180deg, #1a1d23 0%, #0f1115 100%);
    padding: 80px 0 40px;
    color: #fff;
    border-top: 4px solid #2c5f9e;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 20px;
}

.footer-brand { flex: 1.5; }
.footer-contact, .footer-newsletter { flex: 1; }

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.7;
}

.footer-contact h4,
.footer-newsletter h4 {
    color: #2c5f9e;
    font-size: 17px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact ul li {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact ul li i {
    color: #2c5f9e;
    width: 16px;
}

.footer-newsletter p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 15px;
    color: #fff;
    border-radius: 5px 0 0 5px;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    outline: none;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

.newsletter-form button {
    background: #2c5f9e;
    border: none;
    padding: 10px 20px;
    color: #fff;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    font-weight: 600;
    transition: background 0.3s;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form button:hover { background: #1a3d66; }

/* Icônes sociales footer */
.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    background: #2c5f9e;
    transform: translateY(-4px);
}

/* ============================================
   SIGNATURE
   ============================================ */
.moulila-signature {
    background: #0a0c0f;
    text-align: center;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.moulila-signature p {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    margin: 0;
}

.moulila-signature a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.moulila-signature a:hover { color: #2c5f9e; }

/* ============================================
   MODAL CONTACT
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
}

.modal-content {
    background: #fff;
    margin: 8% auto;
    width: 90%;
    max-width: 420px;
    padding: 40px 35px;
    border-radius: 16px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.modal-content h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #1a1d23;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 26px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover { color: #333; }

.social-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.social-item {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    border: 1px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s ease;
    background: #fafafa;
}

.social-item:hover {
    background: #f0f5ff;
    border-color: #2c5f9e;
    transform: translateX(4px);
}

/* Icône Font Awesome dans la modal */
.social-icon {
    font-size: 18px;
    width: 24px;
    margin-right: 14px;
    color: #2c5f9e;
    text-align: center;
}

/* ============================================
   SECTIONS COMMUNES (Services, Workflow, etc.)
   ============================================ */

/* Services */
.services-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 30px;
    color: #2c5f9e;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(44,95,158,0.15);
}

.service-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 25px;
    text-align: center;
}

.service-icon { font-size: 38px; margin-bottom: 12px; }

.service-content h3 {
    font-size: 19px;
    margin-bottom: 8px;
    color: #222;
}

.service-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Expertise */
.expertise-section {
    padding: 90px 0;
    text-align: center;
    background: #fff;
}

.expertise-header h2 {
    font-size: 30px;
    color: #2c5f9e;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.expertise-header p {
    max-width: 650px;
    margin: 0 auto 60px;
    color: #666;
    font-size: 15px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.expertise-item {
    padding: 35px 25px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    border-radius: 8px;
}

.expertise-item:hover {
    background: #f7f9ff;
    border-bottom: 3px solid #2c5f9e;
    transform: translateY(-5px);
}

.exp-icon { font-size: 42px; margin-bottom: 18px; }

.expertise-item h3 {
    font-size: 19px;
    margin-bottom: 12px;
    color: #222;
}

.expertise-item p {
    font-size: 14px;
    color: #666;
}

/* Workflow */
.workflow-section {
    padding: 100px 0;
    background-color: #1a1d23;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 30px 30px;
    color: #fff;
    overflow: hidden;
}

.workflow-header {
    text-align: center;
    margin-bottom: 60px;
}

.sub-title {
    color: #2c5f9e;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 3px;
}

.workflow-header h2 {
    font-size: 34px;
    margin: 10px 0 0;
    font-weight: 600;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.workflow-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 30px 25px;
    border-radius: 12px;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.workflow-card:hover {
    background: #fff;
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(44,95,158,0.35);
}

.step-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.step-number {
    font-size: 55px;
    font-weight: 900;
    line-height: 1;
    color: rgba(44,95,158,0.18);
    transition: color 0.3s;
}

.step-icon {
    font-size: 32px;
    color: #2c5f9e;
}

.workflow-body h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #fff;
    transition: color 0.3s;
}

.workflow-body p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    transition: color 0.3s;
}

.workflow-card:hover h3 { color: #2c5f9e; }
.workflow-card:hover p,
.workflow-card:hover .step-number { color: #555; }

/* ============================================
   RESPONSIVE TABLETTE
   ============================================ */
@media (max-width: 992px) {
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .container-header {
        padding: 0 20px;
    }
}

/* ============================================
   RESPONSIVE MOBILE
   ============================================ */
@media (max-width: 768px) {

    body { padding-top: 64px; }

    /* ---- HEADER MOBILE ---- */
    .header-top-bar { display: none; }

    .container-header {
        height: 64px;
        padding: 0 18px;
    }

    .logo img { height: 44px; }

    /* Menu déroulant mobile */
    .menu-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10,13,20,0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        gap: 0;
        border-top: 1px solid rgba(44,95,158,0.3);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        z-index: 999;
        padding: 8px 0 14px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    }

    .menu-links.open { display: flex; }

    .menu-links li { width: 100%; }

    .menu-links a {
        display: flex;
        align-items: center;
        padding: 13px 22px;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        border-radius: 0;
        font-size: 14.5px;
        font-weight: 500;
        color: rgba(255,255,255,0.82);
        letter-spacing: 0.2px;
    }

    .menu-links a.active {
        color: #7eb3f5;
        background: rgba(44,95,158,0.12);
        border-left: 3px solid #2c5f9e;
        padding-left: 19px;
    }

    .menu-links a::after { display: none; }

    /* Bouton contact visible en mobile dans le menu */
    .header-action { display: none; }

    .mobile-menu-icon {
        display: flex;
        padding: 8px;
        margin-right: -8px;
    }

    .mobile-menu-icon span {
        width: 22px;
        height: 2px;
    }

    /* ---- SECTIONS COMMUNES ---- */
    .section-title {
        font-size: 22px;
        margin-bottom: 32px;
    }

    /* Services */
    .services-section { padding: 50px 0; }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-image { height: 180px; }

    .service-content { padding: 20px; }

    .service-content h3 { font-size: 17px; }

    /* Expertise */
    .expertise-section { padding: 55px 0; }

    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .expertise-header h2 { font-size: 22px; }

    .expertise-header p {
        font-size: 14px;
        margin-bottom: 36px;
    }

    .expertise-item {
        padding: 24px 20px;
        border: 1px solid #eee;
        border-radius: 10px;
        border-bottom: 3px solid transparent;
    }

    .exp-icon { font-size: 34px; margin-bottom: 12px; }

    .expertise-item h3 { font-size: 16px; }

    /* Workflow */
    .workflow-section { padding: 60px 0; }

    .workflow-header { margin-bottom: 40px; }

    .workflow-header h2 { font-size: 24px; }

    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .workflow-card {
        padding: 22px 20px;
        flex-direction: row;
        align-items: center;
        gap: 18px;
    }

    .step-meta {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        margin-bottom: 0;
        min-width: 54px;
    }

    .step-number {
        font-size: 36px;
        line-height: 1;
    }

    .step-icon { font-size: 22px; }

    .workflow-body h3 { font-size: 15px; margin-bottom: 6px; }
    .workflow-body p { font-size: 13px; }

    /* ---- FOOTER MOBILE ---- */
    .main-footer { padding: 50px 0 30px; }

    .footer-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .footer-brand,
    .footer-contact,
    .footer-newsletter {
        flex: none;
        width: 100%;
    }

    .footer-logo { width: 120px; }

    .footer-brand p { font-size: 13px; }

    .footer-contact h4,
    .footer-newsletter h4 {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .footer-contact ul li { font-size: 13px; }

    .newsletter-form input,
    .newsletter-form button { font-size: 13px; }

    /* Social icons footer */
    .social-icons { margin-top: 16px; }

    /* ---- MODAL MOBILE ---- */
    .modal-content {
        margin: 15% auto;
        padding: 30px 22px;
        width: 92%;
        border-radius: 14px;
    }

    .modal-content h3 { font-size: 17px; }

    .social-item {
        padding: 12px 14px;
        font-size: 13px;
    }

    /* ---- MOULILA SIGNATURE ---- */
    .moulila-signature { padding: 12px 0; }
    .moulila-signature p { font-size: 11px; }
}

/* ============================================
   LIEN MENTIONS LÉGALES
   ============================================ */
.mentions-footer-link {
    background: #0a0c10;
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.mentions-footer-link a {
    color: rgba(255,255,255,0.35);
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.mentions-footer-link a:hover {
    color: #2c5f9e;
}

.mentions-footer-link a i {
    font-size: 11px;
}

/* ============================================
   CURSEUR CUSTOM AMG
   ============================================ */
* { cursor: none !important; }

#cursor-dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease, background 0.2s ease, opacity 0.2s ease;
    z-index: 99999;
}

#cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(44, 95, 158, 0.8);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.2s ease;
    z-index: 99998;
}

#cursor-triangle {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
    opacity: 0;
    z-index: 99997;
}

body.cursor-hover #cursor-dot {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

body.cursor-hover #cursor-ring {
    width: 52px;
    height: 52px;
    border-color: #2c5f9e;
}

body.cursor-hover #cursor-triangle {
    opacity: 1;
}

body.cursor-click #cursor-dot {
    transform: translate(-50%, -50%) scale(3);
    background: #2c5f9e;
}

body.cursor-click #cursor-ring {
    width: 18px;
    height: 18px;
    border-color: #4a8fd4;
}

@media (pointer: coarse) {
    * { cursor: auto !important; }
    #cursor-dot, #cursor-ring, #cursor-triangle { display: none; }
}
