/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.container {
    max-width: 2000px;  /*1200px;*/
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Spacer */
.header-spacer {
    height: 10px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #162938 0%, #2c3e50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 41, 56, 0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

.company-badge {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 8px 20px;
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #3498db;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #bdc3c7;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA Buttons */
.cta-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-primary {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.4);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Services Section */
.services {
    padding: 120px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #162938;
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(52, 152, 219, 0.1);
    opacity: 1;
    transform: translateY(0);
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(52, 152, 219, 0.03), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(52, 152, 219, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #162938;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.service-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

    .clients {
        padding: 50px 0;
        background-color: #f9f9f9;
        text-align: center;
    }

    .clients .section-header h2 {
        font-size: 2rem;
        margin-bottom: 0.5em;
    }

    .clients .section-header p {
        margin-bottom: 2em;
        color: #666;
        font-size: 1rem;
    }

    .clients-logos {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .clients-logos img {
        height: 80px;
        width: auto;
        max-width: 120px;
        object-fit: contain;
        opacity: 0.7;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .clients-logos img:hover {
        opacity: 1;
        transform: scale(1.05);
    }

/* page-container fixe la taille minimum de la page. Cela permet de positionner le pied de page en bas de l'écran quand le contenu ne rempli pas l'écran*/
#page-container {
  position: relative;
  min-height: 100vh;
}
/* main container réserve la place de l'entete (header) et du pied de page (footer) */
#main-container {
  padding-top: 80px; 
  padding-bottom: 200px; 
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cta-container {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .services {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    /* main container réserve la place de l'entete (header) et du pied de page (footer) */
    #main-container {
        padding-bottom: 350px; 
    }

}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }

}

/*version 1 sans utiliser sibling-count() pour compatibilité firefox */

.container-logo {
    /* --n est le nombre de logos (initialisé par javascript)  */
    --s: 120;    /* largeur maximum d'un logo (px) */
    --d: calc( var(--n) * 2s);    /* durée/vitesse du défilement */
    --g: 80;    /* espace entres logos (px) */
    /* --x est le décalage. il vaut un peu plus de 0.5, x=n*(s+g)/(2*n*s+(2*n-1)*g)   */
    --x: calc( ((var(--n) * var(--s)) + (var(--n) * var(--g))) / ((2 * var(--n) * var(--s)) + (((2 * (var(--n))) - 1) * var(--g))) );
    width: 100%;
    overflow: hidden;
    max-height: 100px;
}

.track {    
    display: flex;
    gap: calc(var(--g)*1px);
    width: max-content;
    animation: defilement var(--d) linear infinite;
}

.container-logo img {
    height: 80px;
    max-width: calc(var(--s)*1px);
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
    opacity: 0.8;
}

@keyframes defilement {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(calc(var(--x) * -100%)) ;
    }
}


/* Version 2 - utilise sibling-count() syntaxe récente qui n'est pas supportée par tous les navigateurs */
/*
    .track {
    --s: 200px; 
    --d: 20s; 
    --n: 6; 
    width: 100%;
    overflow: hidden;
    max-height: 100px;
    }

    @media (max-width: 1500px) {
        .track {
        --n: 4; 
        }
    }
    @media (max-width: 1000px) {
        .track {
        --n: 2; 
        }
    }
    @media (max-width: 500px) {
        .track {
        --n: 1; 
        }
    }

    .track img {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    opacity: 0.7;
    offset: shape(from calc(var(--s)/-2) 50%, hline by calc(sibling-count() * 100%/var(--n)));
    animation: defilement var(--d) linear infinite calc(1*sibling-index()*var(--d)/sibling-count());
    }

    @keyframes defilement { 
    0% {offset-distance: 0%  }
    100% {offset-distance: 100%}
    }
*/
    
