/* =============================================================================
   site.css — tout ce qui, sur l'ancien site, était injecté par WordPress :
   personnalisations du thème enfant, CSS de l'éditeur, styles ajoutés page par
   page. Rassemblé ici pour n'avoir qu'un seul fichier à modifier.
   Les fichiers sous assets/vendor/ restent, eux, identiques aux thèmes
   d'origine (Specia / MagZee) et ne devraient pas être édités.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. Reprise du strict nécessaire de WordPress (lien d'évitement au clavier)
   -------------------------------------------------------------------------- */
.screen-reader-text {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #ddd;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* -----------------------------------------------------------------------------
   2. Options du personnalisateur du thème (boutons arrondis, infobulles off)
   -------------------------------------------------------------------------- */
.bt-primary,
a.bt-primary,
button.bt-primary,
.more-link,
a.more-link,
div.tagcloud a,
.widget .search-form input[type='search'],
input[type='submit'],
button[type='submit'],
.wp-block-search .wp-block-search__input {
    border-radius: 100px !important;
}

li [class*=tool-]:hover:before,
li [class*=tool-]:hover:after {
    opacity: 0;
}

.indexbtn {
    background:red;
    border-radius: 30px;
    padding: 15px;
    font-weight:bold;
    width: auto;
    color:#FFFFFF;
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 275px;
    font-size: 17px;
}

/* -----------------------------------------------------------------------------
   3. Personnalisations du site (ancien magzee/style.css, bloc « CUSTON »)
   -------------------------------------------------------------------------- */
.site-description {
    float: left;
    /* margin-left: 20px; */
    /* width: 320px; */
    font-size: 20px;
}

.logo a,
.mobile-logo a,
.site-title {
    float: left;
}

/* Le pied de page à widgets et le bouton « retour en haut » étaient masqués :
   ils ne sont tout simplement plus générés. La règle reste par sécurité. */
.footer-sidebar,
.top-scroll,
.more-link,
.blog-version-1 footer.entry-footer {
    display: none !important;
}

.bobos li {
    margin: 5px;
    float: left;
    background: red;
    color: #ffffff;
    margin-right: 20px;
    padding: 10px;
    width: calc(33% - 25px);
}

.bobos li a,
.bobos li a:hover {
    color: #ffffff !important;
}

.breadcrumb h2 {
    color: red;
    font-size: 24px;
}

/* -----------------------------------------------------------------------------
   4. Ajustements de gabarit (ancien <style> inséré dans chaque page)
   -------------------------------------------------------------------------- */
.features-version-one,
.features-overlay {
    height: auto !important;
}

.breadcrumb .background-overlay {
    height: 100px !important;
}

.feature-box-icon i {
    margin-top: 5px !important;
}

.call-icon-box i {
    margin-top: 10px !important;
}

.breadcrumb h2 {
    font-size: 20px;
}

@media (max-width: 991px) {
    .site-content {
        margin-top: 0 !important;
    }

    .breadcrumb .background-overlay {
        height: 100px !important;
    }

    .padding-bottom-60 {
        padding: 30px;
        padding-bottom: 60px;
        margin-top: -40px;
    }

    .padding-bottom-60 ul li {
        width: calc(100% - 30px) !important;
    }

    .breadcrumb-position,
    .headtop-mobi,
    .menu-toggle-wrap {
        display: none !important;
    }

    .headtop-mobi {
        opacity: 0 !important;
    }

    .site-description {
        width: calc(100% - 100px);
    }
}

/* -----------------------------------------------------------------------------
   5. Formulaire « Ouverture de dossier »
   Reprend au pixel près l'apparence produite auparavant par Ninja Forms
   (thème « opinions light ») : fond #f7f7f7, bordure #c4c4c4, étiquettes en
   gras au-dessus, astérisque rouge #e80000, bouton pilule sombre.
   -------------------------------------------------------------------------- */
.nf-form {
    padding: 5px;
    margin: 0 auto;
}

.f-required-note {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.f-req {
    color: #e80000;
}

.f-field {
    clear: both;
    position: relative;
    margin-bottom: 25px;
}

.f-field:after {
    clear: both;
    content: "";
    display: block;
}

.f-label {
    margin-bottom: 10px;
    padding: 0;
}

.f-label label,
.f-label .f-label-span {
    font-weight: 700;
    font-size: 18px;
    line-height: 20px;
    margin: 0;
    padding: 0;
    display: inline-block;
}

.nf-form input:not([type=submit]):not([type=checkbox]),
.nf-form select,
.nf-form textarea {
    background: #f7f7f7;
    border: 1px solid #c4c4c4;
    border-radius: 0;
    box-shadow: none;
    color: #787878;
    font-size: 16px;
    height: 50px;
    margin: 0;
    padding: 12px;
    width: 100%;
    transition: all .5s;
}

.nf-form input:not([type=submit]):not([type=checkbox]):focus,
.nf-form select:focus,
.nf-form textarea:focus {
    background: #fff;
    border-color: #919191;
    color: #919191;
    outline: none;
}

/* Liste déroulante : chevron FontAwesome, comme dans l'ancien formulaire. */
.f-select-wrap {
    position: relative;
}

.f-select-wrap select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
}

.f-select-wrap:after {
    content: "\f078";
    font-family: FontAwesome;
    font-size: 20px;
    color: #787878;
    position: absolute;
    right: 12px;
    top: 0;
    height: 50px;
    line-height: 50px;
    pointer-events: none;
}

/* Filet de séparation entre les blocs du formulaire. */
.f-hr {
    border: 0;
    border-top: 1px solid #e5e5e5;
    margin: 0 0 25px;
}

/* Blocs de texte libre. */
.f-html {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 25px;
}

.f-html p {
    margin: 0 0 10px;
}

/* Cases à cocher — carré 18 px et coche FontAwesome, sans JavaScript. */
.f-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.f-checklist li {
    margin-bottom: 12px;
    line-height: 0;
}

.nf-form input[type=checkbox] {
    position: absolute;
    opacity: 0;
    width: 18px;
    height: 18px;
    margin: 0;
}

.f-checklist label,
.f-consent-label label {
    position: relative;
    margin-left: 30px;
    font-weight: 700;
    font-size: 13px;
    line-height: 18px;
    display: inline-block;
}

.f-checklist label:after,
.f-consent-label label:after {
    content: "";
    width: 18px;
    height: 18px;
    position: absolute;
    left: -28px;
    bottom: 0;
    background: #f7f7f7;
    border: 1px solid #c4c4c4;
    transition: all .5s;
}

.f-checklist label:before,
.f-consent-label label:before {
    content: "\f00c";
    font-family: FontAwesome;
    font-size: 24px;
    position: absolute;
    left: -30px;
    bottom: 0;
    z-index: 2;
    color: #f7f7f7;
    opacity: 0;
    transition: all .5s;
}

.f-checklist input:checked + label:after,
.f-consent-label input:checked + label:after {
    border-color: #b7b7b7;
}

.f-checklist input:checked + label:before,
.f-consent-label input:checked + label:before {
    color: #333;
    opacity: 1;
}

.nf-form input[type=checkbox]:focus-visible + label:after {
    border-color: #919191;
    box-shadow: 0 0 0 2px rgba(145, 145, 145, .4);
}

/* Consentements : intitulé à gauche, explication à droite. */
.f-field--consent {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.f-consent-label {
    width: 38%;
    padding-right: 5%;
}

.f-consent-desc {
    width: 62%;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
}

.f-field--consent .f-error {
    width: 100%;
}

/* Bouton d'envoi. */
.f-field--submit {
    margin-top: 30px;
}

.nf-form input[type=submit] {
    background: #333;
    border: 0;
    color: #f7f7f7;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 100px !important;
    transition: all .5s;
    cursor: pointer;
}

.nf-form input[type=submit]:hover,
.nf-form input[type=submit]:focus {
    background: #c4c4c4;
    color: #787878;
}

/* Erreurs et messages. */
.f-error {
    color: #e80000;
    font-size: 13px;
    font-weight: 700;
    margin-top: 6px;
}

.has-error input:not([type=submit]):not([type=checkbox]),
.has-error select {
    border-color: #e80000;
}

.f-notice {
    border-left: 4px solid;
    padding: 18px 22px;
    margin-bottom: 30px;
}

.f-notice h2 {
    margin-top: 0;
    font-size: 22px;
}

.f-notice p:last-child {
    margin-bottom: 0;
}

.f-notice--ok {
    border-color: #2e7d32;
    background: #eef7ee;
}

.f-notice--error {
    border-color: #e80000;
    background: #fdecec;
    font-weight: 700;
}

/* Pot de miel : invisible à l'écran, mais rempli par les robots. */
.f-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 800px) {
    .f-consent-label,
    .f-consent-desc {
        width: 100%;
        padding-right: 0;
    }

    .f-consent-desc {
        margin-top: 8px;
    }
}

/* -----------------------------------------------------------------------------
   6. Pages secondaires (services et fiches de symptômes)
   La grille « .bobos » plus haut dans ce fichier vient du site d'origine :
   des pastilles rouges sur trois colonnes, pleine largeur sur mobile.
   -------------------------------------------------------------------------- */
.bobos {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    /* Les pastilles restent flottantes (règle d'origine plus haut) ; ce display
       flex les aligne en rangées de hauteur égale et évite les trous quand un
       libellé passe sur deux lignes. L'apparence, elle, ne change pas. */
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.bobos-title {
    margin-top: 40px;
    clear: both;
}

/* Deux colonnes : le pictogramme à gauche, le texte à droite. Volontairement
   en flex plutôt qu'en float, pour que les textes longs restent dans leur
   colonne au lieu de repasser sous l'image. */
.page-body {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.page-media {
    flex: 0 0 180px;
}

.page-illustration {
    display: block;
    width: 100%;
    height: auto;

    background: #ff0000;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.15) 0%, rgba(255, 255, 255, 1) 70%);
}

.page-text {
    flex: 1 1 auto;
    min-width: 0;
}

.page-text > :first-child {
    margin-top: 0;
}

.page-text > :last-child {
    margin-bottom: 0;
}

.page-back {
    clear: both;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

@media (max-width: 600px) {
    .page-body {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .page-media {
        flex: 0 0 auto;
        width: 160px;
    }

    .page-text {
        width: 100%;
    }
}

/* -----------------------------------------------------------------------------
   7. Débordement horizontal de l'en-tête (défaut présent sur le site d'origine)
   .brand-logo et .header-right sont tous deux en flex-shrink:0 dans le thème,
   et le bloc de coordonnées est figé à 700 px (600 px sous 1200 px). En dessous
   d'environ 1200 px de large, la somme dépassait le conteneur : la description
   du site était coupée et la page défilait horizontalement.
   On autorise simplement ces blocs à se réduire ; au-dessus de 1200 px, où tout
   tient déjà, l'affichage est inchangé.
   -------------------------------------------------------------------------- */
.header-widget-info .brand-logo,
.header-widget-info .header-right {
    flex-shrink: 1;
    min-width: 0;
}

.header-widget-info .logo {
    min-width: 0;
}

.header-widget-info .site-description {
    max-width: 100%;
    color: red;
}

/* Coordonnées de l'en-tête, à la place du carrousel du thème : deux encarts
   alignés à droite, séparés par un filet, qui se replient proprement quand la
   place manque. */
/* Le thème applique margin:0 -12px à .header-right ; ces 12 px de débordement
   étaient absorbés par le carrousel, plus maintenant. */
.header-widget-info .header-right {
    margin-right: 0;
}

.header-contacts {
    display: flex;
    /* flex-direction: column; */
    align-items: flex-start;
    gap: 8px;
    max-width: 100%;
}

.header-contacts .widget {
    margin: 0;
    margin-right: 20px;
}

.header-contacts .widget + .widget {
    /* border-top: 1px solid #e5e5e5; */
    /* padding-top: 8px; */
}

.header-contacts .contact-area {
    padding-left: 0;
}

.header-contacts .contact-info .text,
.header-contacts .contact-info .title {
    white-space: nowrap;
}

/* Sous 1200 px le titre du site reste sur une ligne et pousse le bloc de
   coordonnées hors du conteneur : on plafonne la largeur du logo pour qu'il
   passe sur deux lignes et laisse la place. */
@media (max-width: 1199px) {
    .header-widget-info .brand-logo {
        max-width: 66%;
    }
}
