/* ============================================
   MAFOTO - Style CSS Principal - FINAL CORRIGÉ
   Design minimaliste inspiré d'Apple
   ============================================ */

/* ============================================
   VARIABLES & RESET
   ============================================ */

:root {
    --color-black: #000;
    --color-white: #fff;
    --color-gray: #86868b;
    --color-gray-light: #f5f5f7;
    --color-yellow: #ffc000;

    --font-size-xl: 56px;
    --font-size-lg: 40px;
    --font-size-md: 28px;
    --font-size-base: 17px;

    --spacing-xl: 120px;
    --spacing-lg: 80px;
    --spacing-md: 48px;
    --spacing-sm: 24px;

    --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', sans-serif;
    color: var(--color-black);
    background: var(--color-white);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    transition: box-shadow 0.3s var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-black);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--color-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: opacity 0.2s;
}

.nav-link:hover,
.nav-link.active {
    opacity: 0.6;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-black);
    transition: 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video,
.hero-video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
    padding: 0 24px;
    animation: fadeInUp 1s var(--transition);
}

.hero-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(-45deg);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(-45deg);
    }

    40% {
        transform: translateY(10px) rotate(-45deg);
    }

    60% {
        transform: translateY(5px) rotate(-45deg);
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--color-yellow);
    color: var(--color-black);
    font-size: 16px;
    font-weight: 600;
    border-radius: 980px;
    text-decoration: none;
    transition: all 0.3s var(--transition);
    box-shadow: 0 4px 16px rgba(255, 192, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 192, 0, 0.4);
}

.cta-button-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--color-black);
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--color-black);
    border-radius: 980px;
    text-decoration: none;
    transition: all 0.3s var(--transition);
}

.cta-button-outline:hover {
    background: var(--color-black);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 21px;
    text-align: center;
    color: var(--color-gray);
    margin-bottom: 64px;
}

/* ============================================
   SERVICES PREVIEW
   ============================================ */

.services-preview {
    padding: var(--spacing-xl) 0;
    background: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 64px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--color-white);
    border-radius: 18px;
    transition: transform 0.3s var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

/* ============================================
   ANIMATIONS ICÔNES SVG - TOUTES LES ICÔNES
   ============================================ */

.icon-animated {
    transition: all 0.3s var(--transition);
}

/* Rotation douce générale au hover */
.service-card:hover .icon-animated,
div:hover .icon-animated {
    transform: scale(1.1);
}

/* HORLOGE - Rotation des aiguilles */
.icon-clock {
    animation: clock-tick 2s ease-in-out infinite;
}

@keyframes clock-tick {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(3deg);
    }

    75% {
        transform: rotate(-3deg);
    }
}

div:hover .icon-clock {
    animation: clock-spin 1.5s linear infinite;
}

@keyframes clock-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ÉTOILE - Brillance */
.icon-star {
    animation: star-pulse 2s ease-in-out infinite;
}

@keyframes star-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

div:hover .icon-star {
    animation: star-spin 0.8s ease-in-out;
}

@keyframes star-spin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* ÉCLAIR - Pulse électrique */
.icon-lightning {
    animation: lightning-pulse 1.5s ease-in-out infinite;
}

@keyframes lightning-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

div:hover .icon-lightning {
    animation: lightning-strike 0.3s ease-in-out;
}

@keyframes lightning-strike {

    0%,
    100% {
        transform: translateY(0);
    }

    20% {
        transform: translateY(-5px);
    }

    40% {
        transform: translateY(0);
    }

    60% {
        transform: translateY(-3px);
    }

    80% {
        transform: translateY(0);
    }
}

/* CŒUR - Battement */
.icon-heart {
    animation: heart-beat 1.5s ease-in-out infinite;
}

@keyframes heart-beat {

    0%,
    100% {
        transform: scale(1);
    }

    10%,
    30% {
        transform: scale(1.1);
    }

    20%,
    40% {
        transform: scale(1);
    }
}

div:hover .icon-heart {
    animation: heart-beat-fast 0.6s ease-in-out infinite;
}

@keyframes heart-beat-fast {

    0%,
    100% {
        transform: scale(1);
    }

    25%,
    75% {
        transform: scale(1.15);
    }

    50% {
        transform: scale(1);
    }
}

/* CHECK / QUALITÉ - Rebond */
div:hover .icon-check {
    animation: check-bounce 0.5s ease-in-out;
}

@keyframes check-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

/* UTILISATEURS / PERSONNES - Ondulation */
div:hover .icon-users {
    animation: users-wave 0.6s ease-in-out;
}

@keyframes users-wave {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

/* INFO / CERCLE - Rotation subtile */
div:hover .icon-info {
    animation: info-rotate 0.8s ease-in-out;
}

@keyframes info-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-black);
}

.service-card p {
    color: var(--color-gray);
    line-height: 1.6;
    font-size: 17px;
}

/* ============================================
   PORTFOLIO PREVIEW
   ============================================ */

.portfolio-preview {
    padding: var(--spacing-xl) 0;
    background: var(--color-gray-light);
}

.portfolio-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 64px 0;
    width: 100%;
}

.portfolio-carousel-track {
    display: flex;
    gap: 32px;
    animation: scroll-horizontal 40s linear infinite;
    width: max-content;
}

.portfolio-carousel-wrapper:hover .portfolio-carousel-track {
    animation-play-state: paused;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.portfolio-item {
    position: relative;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s var(--transition);
    cursor: pointer;
}

.portfolio-item img {
    height: 480px;
    width: auto;
    max-width: 720px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--transition);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    color: white;
    opacity: 0;
    transition: opacity 0.3s var(--transition);
}

.portfolio-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.portfolio-overlay p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.portfolio-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-yellow);
    color: var(--color-black);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.portfolio-cta {
    text-align: center;
    margin-top: 64px;
    margin-bottom: 32px;
}

.portfolio-scroll-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 64px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.portfolio-scroll-container::-webkit-scrollbar {
    display: none;
}

.portfolio-grid {
    display: flex;
    gap: 32px;
    padding: 0 48px 24px 48px;
    width: max-content;
}

/* ============================================
   PARTNERS SECTION
   ============================================ */

.partners-section {
    padding: 80px 0;
    background: var(--color-white);
    overflow: hidden;
}

.partners-slider {
    position: relative;
    overflow: hidden;
    margin-top: 48px;
}

.partners-track {
    display: flex;
    gap: 60px;
    animation: scroll-partners 30s linear infinite;
    width: fit-content;
}

.partner-item {
    flex-shrink: 0;
    width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s var(--transition);
}

.partner-item:hover {
    transform: scale(1.05);
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s var(--transition);
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-black);
    color: var(--color-white);
    text-align: center;
}

.cta-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-text {
    font-size: 21px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FOOTER - ÉLÉGANT & PROPRE
   ============================================ */

.footer {
    background: #1d1d1f;
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 32px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    color: var(--color-white);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section h4 {
    color: var(--color-white);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section p,
.footer-section ul {
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--color-yellow);
}

/* ============================================
   RÉSEAUX SOCIAUX - STYLE UNIFORME
   ============================================ */

/* Style commun pour tous les liens sociaux */
.social-link,
.social-links a,
a.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 192, 0, 0.15);
    border-radius: 50%;
    transition: all 0.3s var(--transition);
    text-decoration: none;
}

.social-link svg,
.social-links a svg,
a.social-icon svg {
    fill: var(--color-white);
    transition: fill 0.3s var(--transition);
}

.social-link:hover,
.social-links a:hover,
a.social-icon:hover {
    background: var(--color-yellow);
    transform: translateY(-2px);
}

/* Les icônes RESTENT BLANCHES au hover */
.social-link:hover svg,
.social-links a:hover svg,
a.social-icon:hover svg {
    fill: var(--color-white);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* ============================================
   WHATSAPP SPÉCIAL FOOTER - PLUS GRAND
   ============================================ */

.whatsapp-footer {
    width: 56px !important;
    height: 56px !important;
    background: var(--color-yellow) !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 192, 0, 0.3);
    animation: whatsapp-pulse 2s ease-in-out infinite;
    transition: all 0.3s var(--transition);
    text-decoration: none;
}

.whatsapp-footer svg {
    fill: var(--color-white) !important;
    width: 28px !important;
    height: 28px !important;
}

.whatsapp-footer:hover {
    transform: scale(1.1) translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(255, 192, 0, 0.5);
    animation: none;
    background: var(--color-yellow) !important;
}

@keyframes whatsapp-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 192, 0, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 192, 0, 0.4);
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   GOOGLE MAPS - PLEINE LARGEUR
   ============================================ */

.google-maps-container {
    width: 100vw;
    height: 450px;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 48px;
    margin-bottom: 48px;
}

.google-maps-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    :root {
        --font-size-xl: 40px;
        --font-size-lg: 32px;
        --font-size-md: 24px;
        --spacing-xl: 80px;
        --spacing-lg: 64px;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 48px;
        gap: 24px;
        transition: left 0.3s var(--transition);
    }

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

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

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

    .portfolio-item img {
        height: 360px;
        max-width: 540px;
    }

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

    .google-maps-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .portfolio-item img {
        height: 280px;
        max-width: 90vw;
    }

    .portfolio-carousel-track {
        gap: 24px;
    }

    .google-maps-container {
        height: 300px;
    }
}