/* ===================================
   VARIABLES & RESET
   =================================== */
:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-dark-gray: #1a1a1a;
    --color-medium-gray: #333333;
    --color-light-gray: #f5f5f5;
    --color-accent: #000000;
    --color-border: #e0e0e0;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
}

/* ===================================
   UTILITIES
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--color-black);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--color-medium-gray);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar {
    padding: 1rem 0;
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-black);
    letter-spacing: -1px;
}

.logo .rise {
    color: var(--color-black);
    font-weight: 700;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--color-black);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--color-medium-gray);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-black);
    transition: width 0.3s ease;
}

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

.nav-cta {
    background-color: var(--color-black) !important;
    color: var(--color-white) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 4px;
}

.nav-cta:hover::after {
    width: 0 !important;
}

.nav-cta:hover {
    background-color: var(--color-medium-gray) !important;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-black);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-light-gray) 100%);
    padding: 80px 0;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-black);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-medium-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: var(--color-medium-gray);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-black);
    border: 2px solid var(--color-black);
}

.btn-secondary:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    height: 400px;
}

.hero-shape {
    position: absolute;
    width: 500px;
    height: 500px;
    background-image: url(Images/Tech2.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(-60%);
    }
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
    padding: 80px 0;
    background-color: var(--color-white);
}

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

.service-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--color-black);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-black);
}

.service-card p {
    color: var(--color-medium-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    color: var(--color-medium-gray);
    font-size: 0.95rem;
}

.service-features li::before {
    content: '✓ ';
    color: var(--color-black);
    font-weight: 700;
    margin-right: 8px;
}

/* ===================================
   POURQUOI SECTION
   =================================== */
.pourquoi {
    background-color: var(--color-dark-gray);
    color: var(--color-white);
    padding: 80px 0;
}

.pourquoi .section-title {
    color: var(--color-white);
}

.pourquoi .section-subtitle {
    color: var(--color-light-gray);
}

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

.pourquoi-card {
    background-color: var(--color-medium-gray);
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pourquoi-card:hover {
    background-color: var(--color-black);
    border-color: var(--color-white);
    transform: translateY(-8px);
}

.pourquoi-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.pourquoi-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--color-white);
}

.pourquoi-card p {
    color: var(--color-light-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===================================
   PROCESSUS SECTION
   =================================== */
.processus {
    padding: 80px 0;
    background-color: var(--color-white);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-black), var(--color-light-gray));
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    width: calc(50% - 40px);
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    width: calc(50% - 40px);
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--color-black);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    top: 0;
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 3px var(--color-black);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-black);
}

.timeline-content p {
    color: var(--color-medium-gray);
    line-height: 1.7;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    background: linear-gradient(135deg, var(--color-light-gray) 0%, var(--color-white) 100%);
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-black);
}

.contact-content p {
    font-size: 1.1rem;
    color: var(--color-medium-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--color-black);
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--color-black);
    color: var(--color-white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.contact-form {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--color-white);
    color: var(--color-black);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-medium-gray);
    margin-top: 1rem;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--color-light-gray);
    line-height: 1.8;
}

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

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

.footer-section a {
    color: var(--color-light-gray);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
  background-color: #ffffff;
  color: #000;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #eee;
}

.footer-bottom a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #666;
  text-decoration: underline;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        gap: 0;
        display: none;
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 1.5rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

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

    .hero-visual {
        height: 300px;
    }

    .hero-shape {
        width: 250px;
        height: 250px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .timeline::before {
        left: 25px;
    }

    .timeline-marker {
        left: 25px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

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

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

    .contact-form {
        padding: 1.5rem;
    }
}

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

    .section-title {
        font-size: 1.6rem;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .nav-menu {
        gap: 0;
    }

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

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

/** Logo réseaux sociaux */

/* ...existing code... */

/* Footer - Social buttons (black & white theme) */
.footer-section h4 { margin-bottom: 12px; }

.socials {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Base button */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    color: var(--color-white);
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* SVG sizing / color */
.social-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke: currentColor;
    fill: currentColor;
}

/* Hover / active */
.social-btn:hover,
.social-btn:focus {
    color: var(--color-black);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    border-color: rgba(0,0,0,0.08);
    outline: none;
}


/* Focus-visible for accessibility */
.social-btn:focus-visible {
    box-shadow: 0 0 0 4px rgba(255,255,255,0.08), 0 12px 28px rgba(0,0,0,0.18);
}

/* Slight individual offsets for visual variety (subtle) */
.social-btn.instagram { transform-origin: center; }
.social-btn.tiktok { transform-origin: center; }
.social-btn.facebook { transform-origin: center; }

/* Mobile -> smaller buttons */
@media (max-width: 480px) {
    .socials { gap: 0.4rem; }
    .social-btn { width: 42px; height: 42px; border-radius: 8px; }
    .social-btn svg { width: 18px; height: 18px; }
}

/* ...existing code... */

@media (max-width: 768px) {
    .hero-visual {
        position: relative;      /* garder relative */
        width: 100%;             /* prendre toute la largeur */
        display: flex;           /* activer flexbox */
        justify-content: center; /* centrer horizontalement */
        align-items: center;     /* centrer verticalement si nécessaire */
        height: 400px;           /* conserver la hauteur adaptée */
    }

    .hero-shape {
        position: relative;      /* changer absolute en relative pour centrer */
        top: auto;
        right: auto;
        transform: none;         /* supprimer le translateY(-50%) */
        margin: 0 auto;          /* centrer dans le conteneur */
    }
}
