body {
    font-family: system-ui, sans-serif;
    margin: 0;
    color: #222;
    background: #f7f9fc;
}

.hero {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    padding: 2rem;
}

/* Contenu du header : texte à gauche, image à droite */
.hero .wrap {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
    flex-wrap: nowrap;
}

.hero .wrap > div:first-child {
    flex: 1;
}

.hero .wrap > div:last-child {
    flex: 0 0 45%;
    display: flex;
    justify-content: flex-end;
}

.hero .wrap img {
    width: 100%;
    max-width: 420px;
    height: auto;
}

/* Boutons */
.btn {
    background: #fff;
    color: #2563eb;
    padding: .8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin: .5rem .5rem .5rem 0;
}

/* Sections */
section {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

article,
table,
.panel {
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: .8rem;
    border-bottom: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}

.faq {
    width: 100%;
    text-align: left;
    padding: 1rem;
    margin-top: 1rem;
}

.panel {
    display: none;
}

#faq article > p {
    display: none;
}

#faq article.open > p {
    display: block;
}

#faq article > h3 {
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 2rem;
}

/* Formulaire */
form {
    max-width: 700px;
    margin: auto;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

button {
    margin-top: 25px;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* Publicité */
.ad-container {
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
    text-align: center;
}

/* Version mobile */
@media (max-width: 768px) {

    .hero {
        padding: 1.5rem;
    }

    .hero .wrap {
        flex-direction: column;
        flex-wrap: nowrap;
        text-align: center;
        gap: 2rem;
    }

    .hero .wrap > div:last-child {
        flex: none;
        width: 100%;
        justify-content: center;
    }

    .hero .wrap img {
        max-width: 350px;
    }

    .btn {
        margin: .4rem;
    }
}

.info-bulle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 17px;
    height: 17px;
    margin-left: 5px;
    padding: 0;

    vertical-align: 2px;

    border: none;
    border-radius: 50%;

    background: #d1d5db;
    color: white;

    font-size: 11px;
    font-weight: bold;

    cursor: pointer;
}


/* Info-bulle cachée par défaut */
.info-bulle .info-texte {
    position: absolute;

    left: 50%;
    bottom: calc(100% + 10px);

    transform: translateX(-50%);

    width: 250px;
    padding: 10px;

    background: white;
    color: #374151;

    border: 1px solid #e5e7eb;
    border-radius: 8px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);

    font-size: 13px;
    font-weight: normal;
    line-height: 1.4;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 100;
}


/* Affichage au survol */
.info-bulle:hover .info-texte {
    opacity: 1;
    visibility: visible;
}


/* Affichage après clic sur mobile */
.info-bulle.active .info-texte {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ssl-diagram {
    margin: 2rem auto;
    text-align: center;
}

.ssl-diagram img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.ssl-diagram figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}