/* Styles globaux inspirés par hellowatt.fr */
body {
    font-family: 'Roboto', 'Arial', sans-serif; 
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; 
    color: #343a40; 
    overflow-x: hidden; 
}

.container {
    width: 90%;
    max-width: 1140px; 
    margin: auto;
    padding: 0 15px; 
}

/* Header */
header {
    background: #ffffff;
    color: #343a40;
    padding: 0.5rem 0; /* Réduit légèrement le padding pour mieux s'adapter à la hauteur du logo */
    border-bottom: 1px solid #dee2e6; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    position: sticky; 
    top: 0;
    z-index: 1000; 
    display: flex; /* Pour aligner le logo verticalement */
    align-items: center; /* Pour aligner le logo verticalement */
}

header .logo {
    /* Les styles de texte ne sont plus nécessaires ici */
    /* font-size: 1.9rem; */
    /* font-weight: 700; */
    /* color: #007bff; */
    float: left;
    transition: transform 0.3s ease;
}

header .logo a {
    text-decoration: none;
    /* color: #007bff; */ /* Plus nécessaire si c'est une image */
    display: inline-block; /* Pour que le conteneur s'adapte à l'image */
}

#header-logo {
    max-height: 50px; /* Hauteur maximale du logo */
    width: auto; /* La largeur s'ajuste pour garder les proportions */
    display: block; /* Assure que l'image est un bloc pour les marges/padding */
    padding: 5px 0; /* Un peu de padding vertical si besoin */
}

header .logo:hover {
    transform: scale(1.05);
}

/* Animations Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Section Hero */
#hero, #hero-classement {
    background-color: #007bff; 
    color: #ffffff;
    padding: 5rem 20px; /* Padding horizontal pour mobile */
    text-align: center;
    background-image: url('hero-background-illustration.png');
    background-size: cover;
    background-position: center;
    position: relative;
    animation: fadeIn 1s ease-out;
}

#hero::before, #hero-classement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.75); 
    z-index: 1;
}

#hero .container, #hero-classement .container {
    position: relative;
    z-index: 2;
}

#hero h1, #hero-classement h1 {
    font-size: 2.5rem; /* Ajusté pour mobile d'abord */
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.3s backwards; 
}

#hero p, #hero-classement p {
    font-size: 1.1rem; /* Ajusté pour mobile d'abord */
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* Sections Générales */
section {
    padding: 3rem 0; /* Padding réduit pour mobile */
}

#calculator, #results, #certifications-partenariats, #classement-details {
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0; 
}


section h2 {
    text-align: center;
    margin-bottom: 2rem; /* Réduit pour mobile */
    font-size: 2rem; /* Ajusté pour mobile */
    font-weight: 600;
    color: #212529; 
}

section h3 {
    font-size: 1.5rem; /* Ajusté pour mobile */
    font-weight: 600;
    color: #007bff;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Formulaire Calculateur */
#roi-form fieldset {
    background: #ffffff;
    border: 1px solid #e9ecef; 
    border-radius: 12px; 
    padding: 1.5rem; /* Réduit pour mobile */
    margin-bottom: 2rem;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#roi-form fieldset:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

#roi-form legend {
    font-size: 1.3rem; /* Ajusté pour mobile */
    font-weight: 600;
    color: #343a40;
    padding: 0 10px;
    margin-left: 10px;
}

#roi-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500; 
    color: #495057;
}

#roi-form input[type="number"],
#roi-form input[type="text"] {
    width: calc(100% - 22px); /* Ajusté pour padding */
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ced4da;
    border-radius: 6px; 
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
}

#roi-form input[type="number"]:focus,
#roi-form input[type="text"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); 
}

#roi-form .task-group {
    background-color: #f8f9fa; 
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#roi-form .task-group:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

#roi-form .task-group h3 {
    margin-top: 0;
    color: #0056b3; 
    font-size: 1.25rem; /* Ajusté pour mobile */
}

#roi-form small {
    display: block;
    margin-top: -0.8rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #6c757d; 
}

/* Boutons */
#calculate-roi-button, .button {
    display: inline-block;
    background-color: #20c997; 
    color: #fff;
    padding: 12px 25px; /* Padding ajusté */
    border: none;
    border-radius: 25px; 
    cursor: pointer;
    font-size: 1rem; /* Taille de police ajustée */
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(32,201,151,0.3);
    width: auto; /* Assurer que le bouton ne prend pas toute la largeur par défaut */
    text-align: center;
}

#calculate-roi-button:hover, .button:hover {
    background-color: #1baa80; 
    transform: translateY(-3px) scale(1.03); 
    box-shadow: 0 7px 14px rgba(32,201,151,0.45);
}

.button.alt-button {
    background-color: #007bff; 
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
}
.button.alt-button:hover {
    background-color: #0056b3;
    box-shadow: 0 7px 14px rgba(0,123,255,0.45);
}

/* Section Résultats */
#results {
    background-color: #e9ecef; 
}

#results-summary p, #detailed-results p {
    font-size: 1.1rem;
}

#results-summary strong, #detailed-results strong {
    color: #007bff;
}

.result-card {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.1);
}

.result-card h4 {
    color: #007bff;
    margin-top: 0;
    font-size: 1.3rem;
}

.result-card table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.result-card th, .result-card td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

.result-card th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.cta-ranking {
    text-align: center;
    margin-top: 2rem;
}

/* Section Certifications et Partenariats */
.certifications-partenariats-common {
    text-align: center;
    background-color: #ffffff;
    padding-bottom: 3rem;
}

.certifications-partenariats-common h3 {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.logos-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.logo-item {
    padding: 1rem;
    margin: 0.5rem; /* Réduit pour mobile */
    text-align: center;
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: scale(1.1);
}

.logo-item img {
    max-width: 120px; /* Réduit pour mobile */
    max-height: 60px; /* Réduit pour mobile */
    margin-bottom: 0.5rem;
    filter: grayscale(20%); 
    transition: filter 0.3s ease; 
}

.logo-item:hover img {
    filter: grayscale(0%);
}

.logo-item p {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.certifications-partenariats-common > .container > p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    color: #495057;
    line-height: 1.7;
}

/* Styles spécifiques pour la page de classement */
#classement-details .intro-classement {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #495057;
}

.logiciel-entry {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 2rem;
    padding: 1.5rem; /* Réduit pour mobile */
    display: flex;
    flex-direction: column; /* Empiler sur mobile */
    align-items: center; /* Centrer les éléments empilés */
    box-shadow: 0 8px 16px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.logiciel-entry:hover {
    transform: translateY(-6px); 
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.logiciel-entry.top-choice {
    border-left: none; /* Supprimer la bordure gauche pour mobile */
    border-top: 6px solid #20c997; /* Bordure en haut pour mobile */
}

.logiciel-rank {
    font-size: 2.2rem; /* Ajusté pour mobile */
    font-weight: 700;
    color: #007bff;
    margin-right: 0; /* Supprimer la marge droite */
    margin-bottom: 1rem; /* Ajouter une marge en bas */
    text-align: center;
}

.logiciel-entry.top-choice .logiciel-rank {
    color: #20c997;
}

.logiciel-info {
    flex-grow: 1;
    width: 100%; /* Prendre toute la largeur */
    padding-right: 0; /* Supprimer le padding droit */
    text-align: center; /* Centrer le texte */
}

.logiciel-info h3 {
    margin-top: 0;
    font-size: 1.7rem; /* Ajusté pour mobile */
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.logiciel-info .description {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #495057;
}

.logiciel-info .features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: left; /* Aligner les features à gauche dans leur conteneur */
    display: inline-block; /* Pour que le text-align:left fonctionne sur la liste */
}

.logiciel-info .features li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #343a40;
    transition: color 0.3s ease;
}

.logiciel-info .features li:hover {
    color: #007bff;
}

.feature-icon {
    color: #20c997; 
    margin-right: 0.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.logiciel-info .features li:hover .feature-icon {
    transform: scale(1.2);
}

.logiciel-illustration {
    width: 80%; /* Réduire la largeur de l'illustration */
    max-width: 300px; /* Limiter la taille max */
    text-align: center;
    margin-top: 1.5rem; 
    margin-bottom: 1rem;
}

.logiciel-illustration img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logiciel-illustration img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.logiciel-illustration .caption-illustration {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

.button.disabled-link {
    background-color: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
}
.button.disabled-link:hover {
    background-color: #9fa6ae;
    transform: none;
    box-shadow: none;
}

.disclaimer {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
    color: #495057;
}

.back-to-calculator {
    text-align: center;
    margin-top: 2rem;
}

/* Footer */
footer {
    background: #343a40; 
    color: #f8f9fa;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: #20c997; 
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
    color: #1baa80; 
}

/* Tablet and larger screens (min-width: 768px) */
@media(min-width: 768px) {
    header {
        padding: 0.75rem 0; /* Ajustement pour desktop aussi */
    }
    #header-logo {
        max-height: 60px; /* Un peu plus grand sur desktop */
    }
    #hero h1, #hero-classement h1 {
        font-size: 3rem; 
    }
    #hero p, #hero-classement p {
        font-size: 1.25rem; 
    }
    section {
        padding: 4rem 0; 
    }
    section h2 {
        font-size: 2.5rem; 
        margin-bottom: 3rem;
    }
    section h3 {
        font-size: 1.75rem; 
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }
    #roi-form fieldset {
        padding: 2.5rem; 
    }
    #roi-form legend {
        font-size: 1.5rem; 
    }
    #roi-form .task-group h3 {
        font-size: 1.4rem;
    }
    #calculate-roi-button, .button {
        padding: 14px 30px;
        font-size: 1.1rem;
    }
    .result-card h4 {
        font-size: 1.4rem;
    }
    .certifications-partenariats-common h3 {
        font-size: 1.75rem;
    }
    .logo-item img {
        max-width: 150px;
        max-height: 70px;
    }
    #classement-details .intro-classement {
        font-size: 1.15rem;
    }
    .logiciel-entry {
        flex-direction: row; /* Revenir à la disposition en ligne */
        align-items: flex-start;
        padding: 2.5rem;
    }
    .logiciel-entry.top-choice {
        border-top: none;
        border-left: 6px solid #20c997;
    }
    .logiciel-rank {
        margin-right: 2.5rem;
        margin-bottom: 0;
        text-align: center;
        font-size: 2.8rem;
    }
    .logiciel-info {
        width: auto; /* Revenir à la largeur auto */
        text-align: left; /* Revenir à l'alignement à gauche */
        flex-basis: calc(60% - 85px);
        padding-right: 2.5rem;
    }
    .logiciel-info h3 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    .logiciel-illustration {
        width: auto;
        max-width: none;
        flex-basis: 35%;
        margin-top: 1rem;
    }
}

/* Desktop specific adjustments (min-width: 992px) */
@media(min-width: 992px) {
    /* Peut-être des ajustements de padding ou de taille de police plus fins si nécessaire */
    .container {
        /* overflow: visible; /* Permettre aux ombres de déborder légèrement si besoin */
    }
}

/* Small mobile specific adjustments (max-width: 576px) */
@media(max-width: 576px) {
    header .logo {
        float: none;
        text-align: center;
        margin-bottom: 0; /* Réduit la marge pour le logo centré */
        /* font-size: 1.7rem; */ /* Plus pertinent */
    }
    #header-logo {
        max-height: 40px; /* Plus petit sur très petits écrans */
        margin: 0 auto; /* Centrer le logo s'il est en display block */
    }
    header .container {
        display: flex; /* Pour centrer le logo sur mobile */
        justify-content: center; /* Pour centrer le logo sur mobile */
    }

    #hero h1, #hero-classement h1 {
        font-size: 2rem;
    }
    #hero p, #hero-classement p {
        font-size: 1rem;
    }
    section h2 {
        font-size: 1.8rem;
    }
    #roi-form fieldset {
        padding: 1rem;
    }
    #roi-form legend {
        font-size: 1.2rem;
    }
    #roi-form .task-group {
        padding: 1rem;
    }
    #roi-form .task-group h3 {
        font-size: 1.1rem;
    }
    .button, #calculate-roi-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%; /* Boutons pleine largeur sur très petits écrans */
        box-sizing: border-box; /* Inclure padding et bordure dans la largeur */
    }
    .cta-ranking .button, .back-to-calculator .button {
        width: auto; /* Sauf pour les CTA spécifiques */
    }
    .logiciel-rank {
        font-size: 2rem;
    }
    .logiciel-info h3 {
        font-size: 1.5rem;
    }
    .logos-container {
        flex-direction: column;
    }
    .logo-item {
        margin: 0.5rem 0; /* Ajuster marge pour empilement */
    }
}



/* Style pour le titre de transition dans le formulaire */
.form-section-transition {
    font-size: 1.25rem; /* Taille de police intermédiaire */
    font-weight: 500; /* Un peu plus gras qu'un paragraphe normal */
    color: #0056b3; /* Couleur bleue foncée, en accord avec le thème */
    text-align: center; /* Centrer le texte */
    margin-top: 1rem; /* Marge supérieure pour séparer de la légende */
    margin-bottom: 2rem; /* Marge inférieure pour espacer avant les champs */
    padding-bottom: 1rem; /* Espace en dessous du texte */
    border-bottom: 1px solid #dee2e6; /* Ligne de séparation subtile */
    line-height: 1.5;
}




.total-gains-highlight .big-total {
    font-size: 3.5rem; /* Taille de police encore plus augmentée */
    font-weight: 900; /* Police très en gras */
    color: #20c997; /* Couleur verte pour correspondre aux boutons d'action */
    text-align: center;
    margin-top: 0.5rem; /* Ajustement de la marge */
    margin-bottom: 1rem; /* Ajustement de la marge */
    display: block; /* Pour que text-align: center fonctionne bien */
}

.big-total {
    font-size: 3rem; /* Taille de police considérablement augmentée */
    font-weight: bold; /* Mise en gras */
    color: #007bff; /* Couleur bleue pour correspondre au thème, peut être ajustée */
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    text-align: center; /* Centrer le montant s'il est dans un conteneur pleine largeur */
}

