/* ------------------------------------------------------------------
   Poppins auto-hebergee (latin + latin-ext, 400/600/700).
   Remplace le lien vers fonts.googleapis.com : une requete tierce
   bloquante en moins au rendu.
   ------------------------------------------------------------------ */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/poppins-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary-blue: #005891;
    --secondary-orange: #FF8200;
    --dark-bg: #121212;
    --light-text: #F5F5F5;

    /* Alias : --blue et --orange etaient utilises plus bas sans jamais etre
       definis, ce qui rendait invalides .section-divider, .value-card i,
       .impact-stat::before, .social-links a et tout le bloc .timeline. */
    --blue: var(--primary-blue);
    --orange: var(--secondary-orange);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
}

.btn-primary {
    background-color: var(--secondary-orange);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #e67600;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(255, 130, 0, 0.25);
}

/* CTA de la barre de menu : meme style que .btn-primary, en plus compact. */
.btn-nav {
    padding: 0.58rem 1.16rem;
    font-size: 0.812rem;
    border-radius: 0.3rem;
}

.btn-secondary {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #004978;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 88, 145, 0.25);
}

.section-title {
    color: var(--secondary-orange);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-blue);
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid var(--primary-blue);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--secondary-orange);
}

.feature-icon {
    color: var(--secondary-orange);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.pricing-card {
    background-color: rgba(255, 255, 255, 0.051);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--primary-blue);
}

.pricing-card.popular {
    border-top: 4px solid var(--secondary-orange);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.pricing-card.popular::before {
    content: 'Populaire';
    position: absolute;
    top: -16px;
    right: 20px;
    background-color: var(--secondary-orange);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid var(--secondary-orange);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4rem;
    color: rgba(255, 130, 0, 0.2);
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.form-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem;
    border-radius: 0.375rem;
    width: 100%;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--secondary-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 130, 0, 0.25);
}

/* Logo animation */
.logo-container {
    position: relative;
    display: inline-block;
}

.logo-gear {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 10s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Module badge */
.module-badge {
    background-color: rgba(0, 88, 145, 0.2);
    color: var(--light-text);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 88, 145, 0.5);
}

/* Counter animation */
.counter-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-orange);
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 1rem;
    color: var(--light-text);
    opacity: 0.8;
}

/* FAQ accordion */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.faq-question {
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding-top: 1rem;
    display: none;
}

.faq-active .faq-answer {
    display: block;
}

/* Navigation */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: var(--secondary-orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 30px;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--secondary-orange);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background-color: var(--dark-bg);
    z-index: 1000;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--secondary-orange);
    padding-left: 0.5rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

.hero-section {
    background:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('/assets/images/hero-commerce.jpg') no-repeat center center/cover;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--orange);
    border: 4px solid var(--blue);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-left::after {
    right: -10px;
}

.timeline-right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: rgba(0, 90, 141, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--blue);
}

.timeline-right .timeline-content {
    border-left: none;
    border-right: 4px solid var(--orange);
}

.team-member {
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.team-member:hover img {
    filter: grayscale(0%);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--blue);
    color: white;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--orange);
    transform: translateY(-3px);
}

.value-card {
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(242, 101, 34, 0.1);
}

/* les icones sont des <svg class="icon">, plus des <i> Font Awesome */
.value-card .icon {
    font-size: 2.5rem;
    color: var(--orange);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .timeline-right {
        left: 0;
    }
    
    .timeline-left::after,
    .timeline-right::after {
        left: 21px;
    }
    
    .timeline-right .timeline-content {
        border-right: none;
        border-left: 4px solid var(--orange);
    }
}

.impact-stat {
    position: relative;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.impact-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--orange));
}

.impact-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

footer {
    background-color: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    max-width: 200px;
}

.section-divider {
    height: 4px;
    width: 70px;
    margin: 15px 0;
    background: linear-gradient(90deg, var(--blue), var(--orange));
    border-radius: 2px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
}

.carousel-item.active {
    opacity: 1;
    position: relative;
}

/* Styles spécifiques pour mobile */
@media (max-width: 768px) {
    #carousel {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
        overflow: hidden;
    }
    
    #carousel img {
        max-height: 100%;
        width: auto;
        max-width: 100%;
        height: auto;
    }
    
    #carousel-prev,
    #carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
/* ------------------------------------------------------------------
   Ajouts : icones SVG, accessibilite, cibles tactiles
   ------------------------------------------------------------------ */

/* Icones SVG inline. Reproduit le comportement des <i> Font Awesome :
   taille relative au texte, couleur heritee, alignement sur la ligne de base. */
.icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* Lien d'evitement : premier element focusable, masque tant qu'il n'a pas le focus */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: 0.75rem 1.25rem;
    background-color: var(--secondary-orange);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 0.375rem 0;
}

.skip-link:focus {
    left: 0;
}

/* Etat de focus visible et homogene au clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--secondary-orange);
    outline-offset: 2px;
}

/* L'en-tete est sticky sur ~108 px : sans cette marge, le titre de la section
   visee par une ancre (#tarifs, #demo, #fonctionnalites) passe dessous. */
:target,
section[id] {
    scroll-margin-top: 7rem;
}

/* .faq-question et .scroll-top sont maintenant des <button> : on neutralise
   les styles par defaut du navigateur. */
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    /* pas de `font: inherit` : le raccourci ecraserait le font-weight: 600
       defini plus haut dans ce meme fichier */
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    gap: 1rem;
}

.scroll-top {
    border: 0;
    padding: 0;
    /* opacity: 0 seul laissait le bouton cliquable meme invisible */
    visibility: hidden;
}

.scroll-top.visible {
    visibility: visible;
}

/* Cibles tactiles : 12x12 px pour les puces du carrousel etait sous le
   minimum de 24x24 px. La puce garde sa taille, la zone cliquable grandit. */
.indicator {
    position: relative;
}

.indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
