/* style.css - Version RESPONSIVE TOTALE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #ffffff;
    color: #1a1a2e;
    scroll-behavior: smooth;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Palette de couleurs professionnelle */
:root {
    --primary: #1a1a2e;
    --primary-dark: #0f0f1a;
    --secondary: #2d2d44;
    --accent: #4361ee;
    --accent-light: #eef2ff;
    --accent-glow: rgba(67, 97, 238, 0.1);
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 32px -12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 24px 36px -12px rgba(67, 97, 238, 0.15);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
}

/* ========== HEADER RESPONSIVE ========== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    padding: 0.875rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.logo:hover {
    color: var(--accent);
}

/* Menu desktop */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s;
    font-size: 0.95rem;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a.active {
    color: var(--accent);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Langue switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-switcher a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--gray-600);
    transition: 0.2s;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

.lang-switcher a:hover, .lang-switcher a.active-lang {
    color: var(--accent);
    background: var(--accent-light);
}

.menu-icon {
    margin: 0 auto;
    display: none;
    font-size: 1.3rem;
    color: var(--primary);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    border: 3px solid var(--accent); 
    border-radius: 10px; 
    padding: 0 10px 0 10px;
    box-shadow:  5px 5px 5px black;
}

/* Menu mobile */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem 1rem;
    }
      .madiv{
        display: block;
    }
    .menu-icon {
        display: block;
        order: 2;
    }
    
    .lang-switcher {
        order: 3;
        margin-left: auto;
        margin-right: 0.5rem;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--white);
        padding: 1.25rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        margin-top: 1rem;
        gap: 1rem;
        order: 4;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1rem;
        text-align: center;
    }
    
    .nav-links a.active::after {
        display: none;
    }
    
    .nav-links a.active {
        background: var(--accent-light);
        border-radius: var(--radius-sm);
        color: var(--accent);
    }
   
}

/* ========== SECTIONS RESPONSIVES ========== */
section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
}

/* Ajustements tablette */
@media (min-width: 769px) and (max-width: 1024px) {
    section {
        padding: 7rem 2rem 4rem;
    }
      .madiv{
        display: block;
    }
    .hero h1 {
        font-size: 3rem;
    }
   
}

/* Ajustements mobile */
@media (max-width: 768px) {
    section {
        padding:  5rem 1rem 3rem;
       
    }
      .madiv{
        display: block;
    }
    .hero {
        padding-top: 4rem;
        min-height: auto;
    }
}

/* ========== HERO RESPONSIVE ========== */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    max-width: 580px;
    color: var(--gray-600);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 3rem 1rem 3rem;
        text-align: center;
        align-items: center;
    }
      .madiv{
        display: block;
    }
    .hero h1 {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .hero p {
        font-size: 1rem;
        text-align: center;
        padding: 0 0.5rem;
    }
    
    .btn-group {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
      .madiv{
        display: block;
    }
    .hero p {
        font-size: 0.95rem;
    }
}

/* ========== BOUTONS RESPONSIVES ========== */
.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 48px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        white-space: normal;
    }
    
    .btn-group {
        gap: 0.75rem;
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
      .madiv{
        display: block;
    }
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #3553d1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ========== GRILLES RESPONSIVES ========== */
.grid-2, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .grid-2, .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
      .madiv{
        display: block;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-2, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
      .madiv{
        display: block;
    }
}

/* ========== CARTES RESPONSIVES ========== */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.card i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
    background: var(--accent-light);
    padding: 0.7rem;
    border-radius: 14px;
    display: inline-block;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
    font-weight: 600;
    color: var(--primary);
}

.card p {
    color: var(--gray-600);
    line-height: 1.5;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .card {
        padding: 1.25rem;
    }
    
    .card i {
        font-size: 1.6rem;
        padding: 0.6rem;
    }
    
    .card h3 {
        font-size: 1.15rem;
    }
      .madiv{
        display: block;
    }
}

/* ========== TITRES RESPONSIVES ========== */
h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.section-sub {
    color: var(--gray-600);
    margin-bottom: 2rem;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.6rem;
        text-align: center;
    }
      .madiv{
        display: block;
    }
    .section-sub {
        text-align: center;
        border-left: none;
        border-top: 2px solid var(--accent);
        padding-left: 0;
        padding-top: 0.75rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.4rem;
    }
}

/* ========== STATS RESPONSIVES ========== */
.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.stat {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    flex: 1;
    min-width: 110px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.stat div:last-child {
    color: var(--gray-600);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .about-stats {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.25rem;
    }
      .madiv{
        display: block !important;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat div:last-child {
        font-size: 0.9rem;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .stat {
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }
}

/* ========== FORMULAIRE RESPONSIVE ========== */
.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    max-width: 720px;
    margin: 1.5rem auto;
}

input, textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    background: var(--white);
    margin-bottom: 1rem;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: var(--primary);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.2rem;
        margin: 1rem;
    }
    
    input, textarea {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
}

/* ========== FOOTER RESPONSIVE ========== */
footer {
    background: var(--primary);
    color: var(--gray-400);
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p:first-child {
    margin-bottom: 0.75rem;
}

footer i {
    margin: 0 0.4rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    cursor: default;
}


@media (max-width: 768px) {
    footer {
        padding: 1.5rem 0.8rem;
        font-size: 0.7rem;
    }
    
    footer p {
        line-height: 1.5;
    }
}

/* ========== SERVICE BADGE RESPONSIVE ========== */
.service-badge {
    background: var(--accent-light);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

@media (max-width: 768px) {
    .service-badge {
        font-size: 0.8rem;
        padding: 0.75rem;
        margin: 1rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up {
    animation: fadeUp 0.5s ease forwards;
}

/* ========== UTILITAIRES ========== */
img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--accent-light);
    color: var(--accent);
}

html {
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

/* Cacher les éléments superflus sur mobile */
@media (max-width: 480px) {
    .hero i.fa-mouse-pointer {
        display: none;
    }
}

/* Ajustement des breakpoints pour les très petits écrans */
@media (max-width: 360px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .card h3 {
        font-size: 1rem;
    }
    
    .card p {
        font-size: 0.8rem;
    }
}

/* ========== CONTACT INFO RESPONSIVE ========== */
.contact-info {
    text-align: center;
    margin-top: 1rem;
    color: var(--gray-600);
    font-size: 0.85rem;
}

.contact-info i {
    margin-right: 0.3rem;
    color: var(--accent);
}

@media (max-width: 768px) {
    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
}

/* ========== LANG SWITCHER POSITION FIXE ========== */
@media (max-width: 768px) {
    .lang-switcher {
        position: static;
    }
}

/* Amélioration du scroll horizontal */
body {
    overflow-x: hidden;
    width: 100%;
    margin-top: 20px;
}

/* Fix pour les images et conteneurs débordants */
.container, .nav-container, section {
    overflow-x: hidden;
}

/* Ajustements pour les tablettes en mode portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .grid-2, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ajustements pour les tablettes en mode paysage */
@media (min-width: 1025px) and (max-width: 1280px) {
    section {
        padding: 7rem 2rem 4rem;
    }
}

/* ========== GLITCH CARD RESPONSIVE ========== */
.success-msg {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.9rem;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .success-msg {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
}


/* style.css - Ajout des styles pour la galerie auto-défilante */

/* ========== GALERIE AUTO-DEFILANTE ========== */
.gallery-section {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border-radius: var(--radius-lg);
    margin: 2rem auto;
    padding: 3rem 1.5rem;
}

.gallery-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.gallery-header h2 {
    margin-bottom: 0.5rem;
}

.gallery-header .section-sub {
    text-align: center;
    border-left: none;
    border-top: 2px solid var(--accent);
    display: inline-block;
    padding-top: 0.5rem;
    padding-left: 0;
}

.gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1.5rem;
}

.gallery-slide {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 0;
}

.gallery-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    color: white;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-category {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-overlay h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.gallery-overlay p {
    font-size: 0.8rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
}

/* Navigation buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.gallery-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.gallery-prev {
    left: -5px;
}

.gallery-next {
    right: -5px;
}

/* Dots indicators */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    background: var(--gray-300);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-dot.active {
    width: 24px;
    background: var(--accent);
    border-radius: 4px;
}

.gallery-dot:hover {
    background: var(--accent);
    opacity: 0.7;
}

/* Responsive gallery */
@media (max-width: 1024px) {
    .gallery-slide {
        flex: 0 0 calc(50% - 0.75rem);
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
    }
    
    .gallery-prev {
        left: -15px;
    }
    
    .gallery-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 2rem 1rem;
        margin: 1rem auto;
    }
    
    .gallery-slide {
        flex: 0 0 100%;
    }
    
    .gallery-nav {
        width: 32px;
        height: 32px;
        background: rgba(255,255,255,0.95);
    }
    
    .gallery-prev {
        left: 5px;
    }
    
    .gallery-next {
        right: 5px;
    }
    
    .gallery-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
        padding: 1rem;
    }
    
    .gallery-overlay h3 {
        font-size: 0.9rem;
    }
    
    .gallery-overlay p {
        font-size: 0.7rem;
    }
    
    .gallery-category {
        font-size: 0.6rem;
    }
  
}

@media (max-width: 480px) {
    .gallery-overlay h3 {
        font-size: 0.8rem;
    }
    .madiv{
        display: flex;
    }
    .gallery-overlay p {
        display: none;
    }
    .madiv{
        display: block;
    }
}

