/* Réinitialisation des styles par défaut */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles généraux */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Logo et texte */
.logo-text {
    display: flex;
    align-items: center;
    font-size: 2em;
    text-decoration: none;
}

.logo-text .fa-bolt {
    color: #fff;
    margin-right: 10px;
}

.allo {
    color: #ddd;
    font-weight: bold;
}

.urgence {
    color: #fff;
    font-weight: bold;
}

/* En-tête */
header {
    background-color: #003087;
    padding: 20px 0;

    top: 0;

}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Bouton hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    color: white;
    cursor: pointer;
}

.hamburger i {
    transition: transform 0.3s ease;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #ff6200;
}

/* Section principale */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Section Hero */
.hero {
    width: 100%;
    background: linear-gradient(135deg, #e6f0ff 0%, #f4f4f4 100%);
    padding: 50px 40px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #003087, #ff6200);
}

.hero h1 {
    font-size: 2.2em;
    color: #003087;
    margin-bottom: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.hero p {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

.hero .update-info {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: #666;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    display: inline-flex;
    gap: 8px;
}

.hero .update-info i {
    margin-right: 8px;
    color: #ff6200;
}

.hero .update-info strong {
    color: #003087;
}

/* Contenu principal */
.content {
    flex: 2;
    padding-right: 20px;
}

.content h2 {
    font-size: 2em;
    color: #003087;
    margin-bottom: 15px;
}

.content h3 {
    font-size: 1.5em;
    margin: 20px 0 10px;
}

.content h4 {
    font-size: 1.2em;
    margin: 15px 0 10px;
}

.content p {
    margin-bottom: 15px;
}

/* Grille des services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.service-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #e6f0ff;
    border-radius: 50%;
    margin: 0 auto 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-icon i {
    font-size: 1.5em;
    color: #003087;
}

.service-card:hover .service-icon {
    background-color: #ff6200;
    transform: scale(1.1);
}

.service-card:hover .service-icon i {
    color: #fff;
}

.service-card h3 {
    font-size: 1.3em;
    color: #003087;
    margin-bottom: 10px;
}

.service-card p {
    margin-bottom: 15px;
    color: #555;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .tool-button {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.9em;
    text-decoration: none;
}

.service-card .tool-button:hover {
    text-decoration: none;
}

/* Info box */
.info-box {
    background-color: #e6f0ff;
    padding: 20px;
    border-left: 5px solid #003087;
    margin: 20px 0;
}

.phone-number {
    font-size: 1.3em;
    font-weight: bold;
    color: #003087;
    text-decoration: none;
    margin-right: 5px;
}

/* Outil de vérification des coupures */
.tool-box {
    background-color: #fff;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    position: relative;
    overflow: visible;
}

.tool-box h4 {
    font-size: 1.3em;
    color: #003087;
    margin-bottom: 15px;
}

.tool-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tool-box label {
    font-weight: bold;
    color: #333;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    width: 100%;
}

.tool-box input {
    flex: 1;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    width: 100%;
}

.tool-box input:focus {
    outline: none;
    border-color: #003087;
    box-shadow: 0 0 5px rgba(0, 48, 135, 0.2);
}

.tool-button {
    background-color: #ff6200;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
    min-width: 100px;
}

.tool-button:hover {
    background-color: #e55a00;
}

/* Autocomplétion */
#suggestions {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    width: 100%;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    border: none;
}

#suggestions li {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#suggestions li:hover {
    background-color: #f0f0f0;
}

/* Message de succès */
.success-message {
    margin-top: 10px;
    color: #28a745;
    font-weight: bold;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Barre de chargement */
.loading-bar-container {
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.loading-bar {
    width: 0;
    height: 10px;
    background-color: #ff6200;
    animation: loading 1.5s linear forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Contenu final dans tool-box */
.tool-box h3 {
    font-size: 1.5em;
    color: #003087;
    margin-bottom: 10px;
    line-height: 1.2em;
}

.tool-box p {
    margin-bottom: 15px;
    color: #555;
}

.tool-box .mentions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 10px;
    margin-bottom: 0;
}

.tool-box .numero {
    text-decoration: none;
    color: #a50f78;
    font-weight: bold;
    border: 2px solid #dfdbdb;
    padding: 6px;
    font-size: 0.75em;
    background-color: white;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.tool-box .prix {
    background-color: #a50f78;
    color: #fffffff2;
    padding: 8px;
    font-size: 0.75em;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tool-box .prix:hover {
    background-color: #8a0c65;
    color: #fff;
}

.tool-box .call-now-button {
    display: block;
    text-align: center;
    background-color: #003087;
    color: white;
    padding: 14px 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    margin: 0 auto 15px;
    width: 90%;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.tool-box .call-now-button i {
    margin-right: 8px;
}

.tool-box .call-now-button:hover {
    background-color: #002070;
}

/* Listes stylisées */
.content ul, .content ol {
    margin: 15px 0;
    padding-left: 30px;
    list-style-position: outside;
}

.content ul li, .content ol li {
    margin-bottom: 10px;
    padding-left: 10px;
    position: relative;
}

.content ul {
    list-style: none;
}

.content ul li::before {
    content: "\2022";
    color: #ff6200;
    font-size: 1.2em;
    position: absolute;
    left: -20px;
    top: 0;
}

.content ol {
    list-style: none;
    counter-reset: custom-counter;
}

.content ol li {
    counter-increment: custom-counter;
}

.content ol li::before {
    content: counter(custom-counter) ".";
    color: #003087;
    font-weight: bold;
    font-size: 1.1em;
    position: absolute;
    left: -25px;
    top: 0;
}

/* Barre latérale */
.sidebar {
    flex: 1;
    min-width: 300px;
}

.call-to-action {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
}

.call-to-action h3 {
    font-size: 1.5em;
    color: #003087;
    margin-bottom: 10px;
}

.call-to-action p {
    margin-bottom: 15px;
    color: #555;
}

.mentions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 10px;
    margin-bottom: 0;
}

.numero {
    text-decoration: none;
    color: #a50f78;
    font-weight: bold;
    border: 2px solid #dfdbdb;
    padding: 6px;
    font-size: 0.9em;
    background-color: white;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.prix {
    background-color: #a50f78;
    color: #fffffff2;
    padding: 8px;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.prix:hover {
    background-color: #8a0c65;
    color: #fff;
}

.call-to-action .horaires {
    margin-top: 10px;
    color: #008000 !important;
    font-weight: bold;
}

/* Boîtes de témoignage */
.testimonial-box {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.testimonial-box p {
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
}

.testimonial-box strong {
    color: #003087;
    font-style: normal;
}

/* Pied de page */
footer {
    background-color: #003087;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 10px 0;
}

.footer-section h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: white;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.footer-container p {
    width: 100%;
    margin-top: 20px;
    font-size: 0.9em;
}

/* Outil de test de débit */
.speed-test-result {
    margin-top: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    display: none;
    text-align: center;
}

.speed-test-result.show {
    display: block;
}

#speed-test-message {
    font-weight: bold;
    color: #003087;
}

#speed-test-status {
    color: #ff6200;
}

#speed-download, #speed-upload {
    color: #28a745;
    font-weight: bold;
}

/* Bandeau sticky pour mobile */
.sticky-call-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #003087;
    padding: 10px 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    text-align: center;
}

.call-invitation {
    color: white;
    font-size: 1.3em;
    margin-bottom: 5px;
    font-weight: bold;
}

.call-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease;
    margin-bottom: 5px;
}

.call-button i {
    margin-right: 8px;
}

.call-button:hover {
    background-color: #218838;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        align-items: center;
        position: relative;
    }

    .sticky-call-bar {
        display: block;
    }

    .sidebar {
        display: none;
    }

    footer {
        padding-bottom: 80px;
    }

    .hamburger {
        display: block;
    }

    .logo-text {
        font-size: 1.3em;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #003087;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        z-index: 1;
    }

    .main-nav ul {
        flex-direction: column;
        margin-top: 0;
        padding: 10px 0;
    }

    .main-nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .main-nav ul li a {
        display: block;
        padding: 10px;
        font-size: 1.1em;
    }

    .content, .sidebar {
        flex: 100%;
        padding-right: 0;
    }

    .hero {
        padding: 30px 20px;
    }

    .hero h1 {
        font-size: 1.6em;
        white-space: normal;
    }

    .hero .update-info {
        display: inline-block;
        width: 90%;
        max-width: 300px;
        font-size: 0.85em;
        padding: 10px 15px;
        text-align: center;
        line-height: 1.4;
        white-space: normal;
    }

    .hero .update-info i {
        margin-right: 6px;
    }

    .numero, .prix {
        display: block;
        width: auto;
        text-align: center;
        font-size: 14px;
    }

    .horaires {
        font-size: 0.9em;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .input-group {
        flex-direction: column;
        gap: 15px;
        position: relative;
    }

    .tool-box input {
        width: 100%;
    }

    .tool-button {
        width: 100%;
    }

    #suggestions {
        width: 100%;
        position: absolute;
        top: calc(100% + 2px);
        left: 0;
        top: 50px !important;
    }
}

@media (min-width: 769px) and (max-width: 972px) {
    .sidebar {
        min-width: 250px;
    }

    .numero, .prix {
        display: inline-block;
        width: auto;
        text-align: center;
        font-size: 11px;
        margin: 0;
    }

    #suggestions {
        width: calc(100% - 110px);
    }
}