/* RESET & GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #242935;
    color: #fff;
    line-height: 1.6;
}

/* CENTRAGE GLOBAL DES SECTIONS */
section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

/* HERO */
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; /* texte + image empilés */
  padding: 60px 20px;
  text-align: center;
}

.hero-content {
  max-width: 1000px;
  width: 100%;
}

.hero-text {
  margin-bottom: 30px;
}

#hero-text {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.4;
}

.btn-pulse {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  background: #ffb700;
  color: #1a1919;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease;
}
.btn-pulse:hover {
  transform: scale(1.05);
}

/* IMAGE HERO */
.hero-image img {
  display: block;
  margin: 0 auto;         /* centre horizontal */
  max-width: 750px;       /* taille par défaut plus grande */
  width: 100%;            /* rend l’image responsive */
  height: auto; 
  border-radius: 12px; /* Bords arrondis pour un effet plus moderne */          /* conserve les proportions */
}

/* RESPONSIVE - petit écran */
@media (max-width: 768px) {
  .hero-image img {
    max-width: 450px;     /* limite sur mobile */
  }
}

/* SIMULATION */
#simulation {
    background-color: #1f222a;
    color: #fff; /* texte clair pour contraste */
    padding: 50px 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    max-width: 800px;
    margin: 40px auto;
    font-family: 'Arial', sans-serif;
}

#simulation h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #edbf1e;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.simulation-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.simulation-form label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-weight: 500;
    font-size: 1rem;
    width: 220px;
}

#simulation input {
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    margin-top: 5px;
    box-sizing: border-box;
    background-color: #2a2d38;
    color: #fff;
    transition: all 0.3s;
}

#simulation input:focus {
    outline: 2px solid #edbf1e;
    background-color: #3a3d4b;
}

#simulation button {
    padding: 14px 30px;
    background-color: #edbf1e;
    color: #1f222a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
}

#simulation button:hover {
    background-color: #d1a50c;
    transform: translateY(-3px);
}

/* RESULTATS */
#resultat {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: center;
}

#resultat p {
    background-color: #2a2d38;
    padding: 15px 20px;
    border-radius: 10px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    font-size: 1.1rem;
    transition: transform 0.2s, background-color 0.3s;
}

#resultat p:hover {
    transform: translateY(-2px);
    background-color: #3a3d4b;
}

#resultat span {
    font-weight: 700;
    color: #edbf1e;
    font-size: 1.2rem;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    #simulation h2 {
        font-size: 1.8rem;
    }
    .simulation-form label {
        width: 100%;
    }
    #resultat {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}


/* SECTION CREDIBILITÉ */
#credibilite {
    background-color: #242935;
}

.cred-text {
    max-width: 900px;
    margin-bottom: 30px;
}

.cred-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.cred-images img {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

/* OFFRES */
.offres-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.offre {
    background-color: #1f222a;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    text-align: center;
}

/* TÉMOIGNAGES */
.reviews-section {
    padding: 50px 20px;
    background: #fcb205;
    text-align: center;
}

.reviews-section h2 {
    font-size: 2rem;
    color: #242935;
    margin-bottom: 30px;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.review-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
    color: #333;
}

.review-author {
    font-weight: bold;
    color: #555;
}

/* GRAPHIQUE */
#graphique {
    background-color: #1f222a;
    padding: 60px 20px;
    text-align: center;
}

#graphique h2 {
    color: #edbf1e;
    margin-bottom: 30px;
}

#chart {
    max-width: 800px;
    width: 100%;
    height: 400px;
    margin: 0 auto;
}

/* PARTENAIRES */
/* PARTENAIRES */
#partenaires {
    background-color: #1f222a;
    padding: 40px 10px; /* réduit le padding pour une section plus compacte */
    text-align: center;
    overflow: hidden; /* empêche tout débordement */
}

#partenaires h2 {
    color: #edbf1e;
    margin-bottom: 20px; /* réduit l'espace sous le titre */
    font-size: 2rem; /* ajuste la taille selon besoin */
}

.partners-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

.slide-track {
    display: flex;
    gap: 20px; /* réduit l'espacement entre logos */
    animation: scroll 20s linear infinite;
}

.slide {
    flex: 0 0 auto; /* empêche le rétrécissement */
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    max-width: 120px; /* limite la taille pour réduire la hauteur globale */
    height: auto;
    display: block;
}

/* Animation responsive */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Media queries pour petits écrans */
@media (max-width: 1200px) {
    .slide img {
        max-width: 100px;
    }
}

@media (max-width: 768px) {
    .slide img {
        max-width: 80px;
    }
    #partenaires {
        padding: 30px 5px;
    }
    #partenaires h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
}


/* POINTS FORTS */
#points-forts {
    background-color: #242935;
    padding: 60px 20px;
    text-align: center;
}

#points-forts h2 {
    color: #edbf1e;
    margin-bottom: 40px;
}

.cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.card {
    background-color: #1f222a;
    padding: 30px 20px;
    border-radius: 12px;
    width: 250px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.card h3 {
    color: #edbf1e;
    margin-bottom: 15px;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #fff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(237, 191, 30, 0.4);
}

/* IA DESKTOP */
.ia-desktop {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #f6a80d, #fcc95c);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.ia-desktop-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    padding: 50px;
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    animation: fadeIn 1s ease-out forwards;
}

.ia-desktop-logo svg {
    width: 140px;
    height: 140px;
    background: #111;
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

.ia-desktop-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #111;
    animation: slideIn 1s ease-out forwards;
}

.ia-desktop-text .based {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #222;
}

.ia-desktop-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ia-desktop-list li {
    font-size: 1.3rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding-left: 30px;
    animation: fadeIn 1.5s ease-out forwards;
}

.ia-desktop-list li::before {
    content: "✔️";
    position: absolute;
    left: 0;
}

/* ANIMATIONS */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* TITRES SECTIONS */
h2 {
    color: #edbf1e;
    margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .ia-desktop-container {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }

    .ia-desktop-logo svg {
        width: 100px;
        height: 100px;
        padding: 15px;
    }

    .ia-desktop-text h2 {
        font-size: 2rem;
    }

    .ia-desktop-text .based {
        font-size: 1rem;
    }

    .ia-desktop-list li {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2rem;
    }
    .offres-list {
        flex-direction: column;
    }
    .cred-images img {
        width: 80%;
        height: auto;
    }
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 80%;
    }
    .reviews-section h2 {
        font-size: 1.6rem;
    }
    .review-card {
        padding: 15px;
    }
    .review-text {
        font-size: 0.95rem;
    }
    .avis-container {
        flex-direction: column;
        align-items: center;
    }
    .avis {
        width: 90%;
    }
    .resume-ia {
        flex-direction: column;
        text-align: center;
    }
    .ia-logo {
        margin-bottom: 10px;
    }
}

/*LOGO*/


/* LOGO SITE & FAVICON — CENTRÉ, GRAND, SANS FOND */
.site-logo, .ia-desktop-logo svg {
    width: 180px;       /* taille par défaut sur desktop */
    height: auto;       /* garde les proportions */
    background: none;   /* pas de fond */
    padding: 0;         /* pas de padding */
    border-radius: 0;   /* pas de coins arrondis */
    display: block;     /* assure que le logo s'affiche correctement */
    margin: 20px auto;  /* centré horizontalement avec un petit espace vertical */
}

/* Media queries pour responsive */
@media (max-width: 991px) {
    .site-logo, .ia-desktop-logo svg {
        width: 140px;
    }
}

@media (max-width: 768px) {
    .site-logo, .ia-desktop-logo svg {
        width: 110px;
    }
}

@media (max-width: 480px) {
    .site-logo, .ia-desktop-logo svg {
        width: 90px;
    }
}

/* Optionnel : si le logo est dans une barre de navigation */
.navbar-logo {
    text-align: center; /* centre le logo dans la navbar */
}


/* Footer Credigo */
footer {
    background-color: #1f222a;
    color: #fff;
    padding: 50px 20px 20px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
    justify-content: space-between;
}

.footer-about,
.footer-links,
.footer-resources,
.footer-legal,
.footer-socials,
.footer-contact {
    flex: 1 1 200px;
    min-width: 200px;
}

.footer-about .footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-container h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #edbf1e;
}

.footer-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-container ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-container ul li a:hover {
    color: #edbf1e;
}

.footer-socials ul {
    display: flex;
    gap: 10px;
}

.footer-socials ul li a {
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #242935;
    transition: all 0.3s;
}

.footer-socials ul li a:hover {
    background-color: #edbf1e;
    color: #1f222a;
}

.footer-contact p, .footer-contact a {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 5px;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #edbf1e;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .footer-socials ul {
        justify-content: center;
    }
}




/* SECTION PENSEE */


/* Sections alternées */
.feature-section {
    padding: 60px 20px;
    background-color: #f5f5f5;
}

.feature-section.alt {
    background-color: #e9ecef;
}

.feature-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    gap: 40px;
    flex-wrap: wrap;
}

.feature-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.feature-text {
    flex: 1 1 400px;
}

.feature-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #1f222a;
}

.feature-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

.btn-feature {
    display: inline-block;
    padding: 12px 25px;
    background-color: #edbf1e;
    color: #1f222a;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-feature:hover {
    background-color: #d1a50c;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
    .feature-container {
        flex-direction: column;
        text-align: center;
    }

    .feature-text {
        flex: unset;
    }

    .feature-image img {
        max-width: 100%;
    }
}



/* HERO SLIDER */
#hero-slider {
    background-color: #1f222a;
    color: #fff;
    padding: 40px 20px;
    overflow: hidden;
    position: relative;
}

.hero-slider-container {
    display: flex;
    justify-content: center; /* centre le contenu horizontalement */
    align-items: center;
    gap: 50px; /* espace fixe entre texte et image */
    flex-wrap: wrap; /* permet à texte et image de se mettre en colonne si écran réduit */
}

.hero-slide {
    display: none;
    flex: 1 1 100%; /* prend tout l’espace disponible mais garde flexibilité */
    align-items: center;
    justify-content: center;
    gap: 50px;
    transition: all 0.5s ease-in-out;
}

.hero-slide.active {
    display: flex;
}

.slide-text {
    flex: 1 1 500px; /* minimum pour texte */
    max-width: 600px;
}

.slide-text h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.slide-text p {
    font-size: 1.05rem;
    color: #d1d1d1;
}

.slide-image {
    flex: 1 1 400px; /* minimum pour image */
    max-width: 500px;
    text-align: center;
}

.slide-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: inline-block;
}

/* Navigation */
.hero-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.hero-nav button {
    background-color: rgba(237, 191, 30, 0.8);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.hero-nav button:hover {
    background-color: #edbf1e;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-slide {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .slide-text, .slide-image {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .slide-text h1 {
        font-size: 1.8rem;
    }
    .slide-text p {
        font-size: 1rem;
    }
}



/* Style du header */
#main-header {
  display: flex;
  align-items: center;       /* aligne verticalement logo + bouton */
  justify-content: space-between; /* espace entre gauche et droite */
  padding: 10px 20px;
}

/* Logo */
.site-logo {
  height: 50px;   /* ajuste la taille si nécessaire */
}

/* Bouton */
.btn-login {
  background-color: #007bff; 
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-login:hover {
  background-color: #0056b3;
}
