/* ==========================================================================
   1. VARIABLES & SETUP
   ========================================================================== */
:root {
    --orange: #ff6b00;
    --dark-bg: #0f172a; 
    --slate-text: #475569;
    --slate-bg: #f8fafc;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
}

/* ==========================================================================
   2. NAVBAR & NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--dark-bg);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.nav-menu li a:hover, 
.nav-menu li a.active {
    color: var(--orange);
}

.burger {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .nav-menu { display: none !important; }
    .burger { display: flex !important; }
}

/* ==========================================================================
   3. SECTION SERVICES (CORRIGÉE POUR IMAGES ENTIÈRES)
   ========================================================================== */
.services-section {
    padding: 140px 0 60px; 
    background: var(--slate-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.service-row {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 100px;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(10, 15, 29, 0.1);
    background: #fff; /* Fond blanc si l'image a des ratios différents */
}

.service-image img {
    width: 100%;
    height: auto; /* CORRECTION : Affiche l'image ENTIÈRE */
    display: block;
    transition: transform 0.8s ease;
}

.service-row:hover .service-image img {
    transform: scale(1.03);
}

.service-content {
    width: 100%;
    position: relative;
    padding-top: 20px;
}

.service-number {
    font-family: 'Anton', sans-serif;
    font-size: clamp(60px, 12vw, 120px);
    color: rgba(15, 23, 42, 0.04);
    position: absolute;
    top: -30px;
    left: -10px;
    line-height: 1;
    z-index: 0;
}

.service-tag {
    color: var(--orange);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
    border-left: 3px solid var(--orange);
    padding-left: 10px;
}

.service-title {
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    color: var(--dark-bg);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-description {
    color: var(--slate-text);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    background: rgba(255, 107, 0, 0.02);
    padding: 20px;
    border-radius: 0 15px 15px 0;
    border-left: 4px solid var(--orange);
}

.btn-details {
    background: var(--dark-bg);
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
}

.btn-details:hover {
    background: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
}

.details-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    background: white;
    margin-top: 20px;
    border-radius: 12px;
}

.details-panel.active {
    max-height: 1000px;
    opacity: 1;
    padding: 25px;
    border: 1px solid #e2e8f0;
}

/* --- VERSION DESKTOP --- */
@media (min-width: 992px) {
    .service-row { flex-direction: row; align-items: center; gap: 80px; }
    .service-row.reverse { flex-direction: row-reverse; }
    .service-image { width: 55%; }
    .service-content { width: 45%; }
    /* CORRECTION : On s'assure que la hauteur reste auto sur PC aussi */
    .service-image img { height: auto; max-height: 600px; object-fit: contain; }
}

/* ==========================================================================
   4. CARTE DE VISITE (AFFICHAGE ENTIER & EFFET 3D)
   ========================================================================== */
.cart-cisite {
    width: 100%;
    max-width: 500px; 
    margin: 100px auto;
    padding: 0 20px;
    perspective: 1200px;
    display: flex;
    justify-content: center;
}

.carte {
    width: 100%;
    height: auto; /* CORRECTION : Affiche la carte ENTIÈRE */
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(15, 23, 42, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
    display: block;
}

.cart-cisite:hover .carte {
    transform: rotateX(10deg) rotateY(-5deg) translateY(-10px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
.logo-footer { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 25px; 
}

.logo-footer img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.logo-footer span {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    color: white;
}

.logo-footer span strong { color: var(--orange); }

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}