/* --------- VARIABLES GLOBALES --------- */
:root {
    --yellow: #ffd400;
    --yellow-dark: #f1b800;
    --black: #050506;
    --dark: #101015;
    --light: #f5f5f5;
    --text-muted: #b3b3b3;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.35);
    --scrollbar-width: 0px;
    --transition-fast: 0.25s ease;
    --transition-med: 0.4s ease;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --------- RESET SIMPLE --------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: radial-gradient(circle at top, #1f1f24 0, #050509 55%, #000 100%);
    color: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

/* --------- LAYOUT DE BASE --------- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.section {
    padding: 6rem 0 5rem;
}

.section-alt {
    background: linear-gradient(145deg, #101016, #050508);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-header p {
    max-width: 620px;
    margin: 0.5rem auto 0;
    color: var(--text-muted);
}

/* --------- HEADER / NAV --------- */
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.6rem;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.logo-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    color: #000;
    display: inline-block;
    margin-top: 0.2rem;
}

/* Nav links */
.nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav-links a {
    position: relative;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
    transition: width var(--transition-med);
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Burger menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Animation burger -> croix */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* --------- HERO / ABOUT --------- */
.hero {
    padding-top: 8rem;
    padding-bottom: 6rem;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text h1 {
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.hero-text h2 {
    margin-top: 0.7rem;
    font-size: 1.4rem;
    color: var(--yellow);
}

.hero-text p {
    margin-top: 1.2rem;
    max-width: 560px;
    color: var(--text-muted);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* --------- HERO LOGO --------- */
.hero-logo {
    min-width: 260px;
    max-width: 260px;
    height: 260px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    overflow: hidden;

    box-shadow: 0 0 25px rgba(255, 214, 0, 0.4);

    background: #000; /* si jamais le PNG n'est pas totalement rond */
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* remplit parfaitement le cercle */
    border-radius: 50%;
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%   { transform: scale(1.15); }
    50%  { transform: scale(1.20); }
    100% { transform: scale(1.15); }
}

/* --------- BOUTONS --------- */
.btn {
    border-radius: 999px;
    padding: 0.75rem 1.7rem;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(130deg, var(--yellow), var(--yellow-dark));
    color: #000;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.7);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-ghost:hover {
    border-color: var(--yellow);
    background: rgba(255, 212, 0, 0.06);
}

.full-width {
    width: 100%;
}

/* --------- CARDS / SERVICES --------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.8rem;
}

.card {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(255, 212, 0, 0.12), #050506);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.6rem 1.5rem 1.6rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
    transform: translateY(0);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 212, 0, 0.6);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.8);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --------- REFERENCES / LOGO SLIDER --------- */
.logo-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: radial-gradient(circle at top, rgba(255, 212, 0, 0.15), #050506);
    padding: 1.6rem 0;
    box-shadow: var(--shadow-soft);
}

.logo-track {
    display: flex;
    gap: 3.5rem;
    animation: scroll-logos 35s linear infinite;
    will-change: transform;
}

.logo-item {
    min-width: 140px;
    max-width: 160px;
    padding: 14px;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Fond dégradé blanc */
    background: linear-gradient(145deg, #ffffff 0%, #f2f2f2 100%);
    border-radius: 14px;

    /* Pour bien intégrer au design */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);

    /* Style existant */
    opacity: 0.85;
    filter: grayscale(0.4);
    transition: 
        opacity var(--transition-fast),
        filter var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.logo-item img {
    max-height: 60px;
    object-fit: contain;
    mix-blend-mode: multiply; /* Pour éviter les halos blancs autour */
}

/* Effet au survol */
.logo-item:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

@keyframes scroll-logos {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-90%);
    }
}

/* --------- CONTACT --------- */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.contact-form {
    background: #050508;
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.1rem;
}

label {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

input,
select,
textarea {
    background: #0b0b11;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0.9rem;
    color: #ffffff;
    font: inherit;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

textarea {
    resize: vertical;
    min-height: 130px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 1px rgba(255, 212, 0, 0.4);
    background: #111117;
}

.contact-info {
    padding-top: 0.5rem;
}

.contact-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.contact-info ul {
    display: grid;
    gap: 0.4rem;
    font-size: 0.95rem;
}

/* --------- FOOTER --------- */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.4rem 0 1.8rem;
    background: #050507;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.3rem;
}

.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.15rem;
    width: 0;
    height: 1px;
    background: var(--yellow);
    transition: width var(--transition-fast);
}

.footer-links a:hover::after {
    width: 100%;
}

/* --------- SCROLL REVEAL (ANIMATIONS) --------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --------- A PROPOS --------- */
.apropos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
    gap: 2.4rem;
    align-items: stretch;
    margin-top: 2rem;
}

.apropos-map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    background: #000;
}

/* Bloc de droite avec les lignes diagonales jaunes */
.apropos-points {
    position: relative;
    padding: 2rem 2.3rem;
    border-radius: var(--radius-xl);
    background: #050508;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.apropos-points::before {
    content: "";
    position: absolute;
    inset: -40%;
    background-image: repeating-linear-gradient(
        -20deg,
        rgba(255, 212, 0, 0.12) 0,
        rgba(255, 212, 0, 0.16) 2px,
        transparent 2px,
        transparent 18px
    );
    opacity: 0.6;
    pointer-events: none;
}

.apropos-item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
    align-items: flex-start;
    margin-bottom: 1.4rem;
}

.apropos-item:last-child {
    margin-bottom: 0;
}

.apropos-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #000;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.apropos-item p {
    color: var(--light);
    font-size: 0.96rem;
    line-height: 1.6;
    z-index: 1;
}



/* --------- MODALES --------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: #050508;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-soft);
    padding: 2rem 2.3rem;
    max-width: 800px;
    width: 92%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal h2 {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Bouton de fermeture */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;

    border: 2px solid var(--yellow);
    background: #000;
    color: var(--yellow);

    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    padding: 0;
    z-index: 2; /* très important pour qu’elle soit cliquable au-dessus du contenu */
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.08);
    background: var(--yellow);
    color: #000;
}

/* Bloquer le scroll du body quand une modale est ouverte */
body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width);
}

/* --------- RESPONSIVE --------- */
@media (max-width: 900px) {
    .apropos-layout {
        grid-template-columns: 1fr;
    }

    .apropos-map iframe {
        min-height: 260px;
    }

    .apropos-points {
        padding: 1.7rem 1.6rem;
    }
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-logo {
        margin-top: 2.5rem;
        align-self: center;      /* centre le logo horizontalement */
    }

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

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

    .logo-track {
        animation-duration: 30s; /* un peu plus rapide sur mobile */
    }
}




@media (max-width: 650px) {
    .modal {
        padding: 1.6rem 1.4rem;
        max-height: 85vh;
    }

    .modal h2 {
        font-size: 1.2rem;
    }

    .modal-close {
        top: 0.7rem;
        right: 0.9rem;
    }
     .apropos-item {
        grid-template-columns: auto 1fr;
        gap: 1rem;
    }

    .apropos-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-toggle {
        margin-left: auto;
        display: flex; /* important si l’élément passe en display:none dans un autre breakpoint */
    }

    .nav-links {
        position: absolute;
        inset: 100% 0 auto;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.6rem 1.4rem;
        background: rgba(0, 0, 0, 0.97);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition-med), opacity var(--transition-med);
    }

    .nav-links.nav-open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .hero {
        padding-top: 7rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero-logo {
        margin: 2rem auto 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-logo img {
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 2.1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .logo-item {
        min-width: 110px;
    }
}
