/********* style content type *********/
.pai-type-testproduit .info, .pai-type-testproduit .img-amazon, .pai-type-comparatifproduits .info, .pai-type-comparatifproduits .img-amazon {display:flex;justify-content: space-between;margin:1vw 3vw;flex-wrap: wrap;}
.pai-type-testproduit .info svg, .pai-type-comparatifproduits .info svg {font-size: 30px; color:#000;}
.pai-type-testproduit .info-marque, .pai-type-testproduit .info-prix, .pai-type-testproduit .info-date-test, .pai-type-comparatifproduits .info-marque, .pai-type-comparatifproduits .info-prix, .pai-type-comparatifproduits .info-date-test {text-align: center;}
.pai-type-testproduit .test, .pai-type-comparatifproduits .test {display:flex;justify-content: space-between;flex-wrap: wrap;}
.pai-type-testproduit .test .avantage, .pai-type-testproduit .test .inconvenient, .pai-type-testproduit .test .fiche-technique, .pai-type-testproduit .test .note {padding:1.5vw;background-color:#f2f2f2;width:48%;margin-bottom:2vw;border-radius: 15px;}

.pai-type-comparatifproduits .test .avantage, .pai-type-comparatifproduits .test .inconvenient, .pai-type-comparatifproduits .test .fiche-technique, .pai-type-comparatifproduits .test .note {padding:1.5vw;background-color:#f2f2f2;width:100%;margin-bottom:2vw;border-radius: 15px;}


.pai-type-testproduit .astuce, .pai-type-comparatifproduits .astuce {display: inline-flex;padding:2vw;background-color:#f2f2f2;border-radius:15px;margin-bottom:2vw;}
.pai-type-testproduit .astuce .auteur, .pai-type-comparatifproduits .astuce .auteur{margin-right:2vw; border-radius:50%;height: fit-content;}

.pai-type-testproduit .svg-star, .pai-type-comparatifproduits .svg-star {display: inline-block; margin-right: 5px;}

@media (max-width:500px){
.pai-type-testproduit .info-marque, .pai-type-comparatifproduits .info-marque, .recette .info-prix, .recette .info-date-test{width:33%}
.pai-type-testproduit .test .avantage, .pai-type-testproduit .test .inconvenient, .pai-type-testproduit .test .fiche-technique, .pai-type-testproduit .test .note, .pai-type-comparatifproduits .test .avantage, .pai-type-comparatifproduits .test .inconvenient, .pai-type-comparatifproduits .test .fiche-technique, .pai-type-comparatifproduits .test .note {width:100%;padding:4vw;margin-bottom:4vw;}
.pai-type-testproduit .astuce, .pai-type-comparatifproduits .astuce{flex-wrap:wrap;padding:4vw;}
.pai-type-testproduit .astuce img, .pai-type-comparatifproduits .astuce img {height:fit-content !important; border-radius:50%;height: fit-content;}
}

/*** recette / tutos ***/
.pai-type-recette .info,.pai-type-diybeaute .info,.pai-type-diybricodeco .info,.pai-type-diymenager .info,.pai-type-diysante .info {display:flex;justify-content: space-between;margin:1vw 3vw;flex-wrap: wrap;}
.pai-type-recette .info-temps, .pai-type-recette .info-dif, .pai-type-recette .info-prix, .pai-type-recette .info-temps-cuisson,.pai-type-diybeaute .info-temps,.pai-type-diybeaute .info-prix,.pai-type-diybricodeco .info-temps,.pai-type-diybricodeco .info-prix,.pai-type-diymenager .info-temps,.pai-type-diymenager .info-prix,.pai-type-diysante .info-temps,.pai-type-diysante .info-prix{text-align: center;}
.pai-type-recette .nb-ingredient,.pai-type-diybeaute .nb-ingredient,.pai-type-diybricodeco .nb-ingredient,.pai-type-diymenager .nb-ingredient,.pai-type-diysante .nb-ingredient{display: inline-flex;border: 1px solid #e5e5e5;padding:0.25vw 1vw;align-items: center;margin-bottom:2vw;}
.pai-type-recette .count-ingredient,.pai-type-diybeaute .count-ingredient,.pai-type-diybricodeco .count-ingredient,.pai-type-diymenager .count-ingredient,.pai-type-diysante .count-ingredient{background-color:transparent;padding:10px;font-weight:700;border: 1px solid #aaa; display: inline-block; margin: 0 10px;}
.pai-type-recette .barre,.pai-type-diybeaute .barre,.pai-type-diybricodeco .barre,.pai-type-diymenager .barre,.pai-type-diysante .barre {text-decoration: line-through;}
.pai-type-recette .pers,.pai-type-diybeaute .pers,.pai-type-diybricodeco .pers,.pai-type-diymenager .pers,.pai-type-diysante .pers {padding-right:2vw;font-weight:700;}
.pai-type-recette .liste-ingredient,.pai-type-diybeaute .liste-ingredient,.pai-type-diybricodeco .liste-ingredient,.pai-type-diymenager .liste-ingredient,.pai-type-diysante .liste-ingredient{background-color:#fff;border:1px solid #E5E5E5; padding:2vw;display:table;margin-bottom:2vw;}
.pai-type-recette .chiffre-ingredient,.pai-type-diybeaute .chiffre-ingredient,.pai-type-diybricodeco .chiffre-ingredient,.pai-type-diymenager .chiffre-ingredient,.pai-type-diysante .chiffre-ingredient{font-weight:700;}
.pai-type-recette .astuce,.pai-type-diybeaute .astuce,.pai-type-diybricodeco .astuce,.pai-type-diymenager .astuce,.pai-type-diysante .astuce {display: inline-flex;padding:2vw;background-color:#f2f2f2;border-radius:15px;margin-bottom:2vw;}
.pai-type-recette .astuce .auteur,.pai-type-diybeaute .astuce .auteur,.pai-type-diybricodeco .astuce .auteur,.pai-type-diymenager .astuce .auteur,.pai-type-diysante .astuce .auteur{margin-right:2vw; border-radius:50%;}


.pai-svg svg {height:50px !important; color:#000 !important;}
.pai-stars {display: inline-block; vertical-align: middle; line-height: 18px;}
.pai-stars svg {height:20px !important;}
.pai-plus,.pai-moins {
    font-size: 2rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-block;
}
.test .pai-plus {
    font-size: 25px;
    color: green;
    display: inline-block;
    vertical-align: middle;
    cursor: default;
}

.test .pai-moins {
    font-size: 25px;
    color: red;
    display: inline-block;
    cursor: default;
}

.test p {margin:0; padding:0; line-height:normal;}


@media (max-width:500px){
.pai-type-recette .count-ingredient,.pai-type-diybeaute .count-ingredient,.pai-type-diybricodeco .count-ingredient,.pai-type-diymenager .count-ingredient,.pai-type-diysante .count-ingredient{width:50px;padding-left:4vw}
.pai-type-recette .nb-ingredient,.pai-type-diybeaute .nb-ingredient,.pai-type-diybricodeco .nb-ingredient,.pai-type-diymenager .nb-ingredient,.pai-type-diysante .nb-ingredient{padding:1vw 4vw;}
.pai-type-recette .liste-ingredient,.pai-type-diybeaute .liste-ingredient,.pai-type-diybricodeco .liste-ingredient,.pai-type-diymenager .liste-ingredient,.pai-type-diysante .liste-ingredient{padding:4vw;}
.pai-type-recette .info-temps, .pai-type-recette .info-dif, .pai-type-recette .info-prix, .pai-type-recette .info-temps-cuisson,.pai-type-diybeaute .info-temps,.pai-type-diybeaute .info-prix,.pai-type-diybricodeco .info-temps,.pai-type-diybricodeco .info-prix,.pai-type-diymenager .info-temps,.pai-type-diymenager .info-prix,.pai-type-diysante .info-temps,.pai-type-diysante .info-prix{width:50%}
.pai-type-recette .astuce,.pai-type-diybeaute .astuce,.pai-type-diybricodeco .astuce,.pai-type-diymenager .astuce,.pai-type-diysante .astuce{flex-wrap:wrap;padding:4vw;}
.pai-type-recette .astuce img,.pai-type-diybeaute .astuce img,.pai-type-diybricodeco .astuce img,.pai-type-diymenager .astuce img,.pai-type-diysante .astuce img {height:fit-content !important; border-radius:50%}
}


/***********************************/

/***** testproduit ***/
.test-produit h2{font-size:28px}
.test-produit h3{font-size:24px;font-wieght:600;}
.test-produit .info, .test-produit .img-amazon {display:flex;justify-content: space-between;margin:1vw 3vw;flex-wrap: wrap;}
.test-produit .info i{font-size: 30px; color:#000;}
.test-produit .info-marque, .test-produit .info-prix, .test-produit .info-date-test {text-align: center;}
.test-produit .test {display:flex;justify-content: space-between;flex-wrap: wrap;}
.test-produit .test .avantage, .test-produit .test .inconvenient, .test-produit .test .fiche-technique, .test-produit .test .note{padding:1.5vw;background-color:#f2f2f2;width:48%;margin-bottom:2vw;border-radius: 15px;}
.test-produit .test .avantage i{color:green}
.test-produit .test .inconvenient i{color:red}
.test-produit .note i{color:#FDC42D}
.astuce {display: inline-flex;padding:2vw;background-color:#f2f2f2;border-radius:15px;margin-bottom:2vw;}
.astuce .auteur{margin-right:2vw; border-radius:50%;height: fit-content;}
@media (max-width:500px){
.test-produit .info-marque, .recette .info-prix, .recette .info-date-test{width:33%}
.test-produit .test .avantage, .test-produit .test .inconvenient, .test-produit .test .fiche-technique, .test-produit .test .note{width:100%;padding:4vw;margin-bottom:4vw;}
.astuce{flex-wrap:wrap;padding:4vw;}
.astuce img {height:fit-content !important; border-radius:50%;height: fit-content;}
}

/*** recette / tutos ***/
.recette h2{font-size:28px}
.recette h3{font-size:20px;font-weight:600;text-transform:uppercase;}
.recette .info {display:flex;justify-content: space-between;margin:1vw 3vw;flex-wrap: wrap;}
.recette .info i{font-size: 30px; color:#000;}
.recette .info-temps, .recette .info-dif, .recette .info-prix, .recette .info-temps-cuisson{text-align: center;}
.recette .nb-ingredient{display: inline-flex;border: 1px solid #e5e5e5;padding:0.25vw 1vw;align-items: center;margin-bottom:2vw;}
.recette .count-ingredient{background-color:transparent;padding:10px;font-weight:700;}
.recette .barre {text-decoration: line-through;}
.recette .pers {padding-right:2vw;font-weight:700;}
.recette .liste-ingredient{background-color:#fff;border:1px solid #E5E5E5; padding:2vw;display:table;margin-bottom:2vw;}
.recette .chiffre-ingredient{font-weight:700;}
.recette .astuce {display: inline-flex;padding:2vw;background-color:#f2f2f2;border-radius:15px;margin-bottom:2vw;}
.recette .astuce .auteur{margin-right:2vw; border-radius:50%;}
#imprimer {display:inline-block; background:black; color:white; padding: 10px 20px;}
@media (max-width:500px){
.recette .count-ingredient{width:50px;padding-left:4vw}
.recette .nb-ingredient{padding:1vw 4vw;}
.recette .liste-ingredient{padding:4vw;}
.recette .info-temps, .recette .info-dif, .recette .info-prix, .recette .info-temps-cuisson{width:50%}
.recette .astuce{flex-wrap:wrap;padding:4vw;}
.astuce img {height:fit-content !important; border-radius:50%}
}
@media print {.ast-header-breadcrumb,.kk-star-ratings,.ast-post-social-sharing,.widget-area.secondary,.site-footer-below-section-2,.site-header-primary-section-right, .ast-single-related-posts-container,.site-header,#imprimer,.bzkshop,.code-block, .powerai-banner,.navigation,.powerai-title {display: none !important;}
.powerai-infographie img,figure img {max-width: 80%; width:80%; height: auto; margin:0 auto;}
.powerai-button {display: none !important;}
.site-footer-section {width:100% !important}
.ast-footer-copyright {display:block}
}

/* itineraire voyage */
.formulaire-voyage {width: 100%; margin: 0 auto 0 0; padding: 20px; background-color: #f7f7f7; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);}

.champ-formulaire {margin-bottom: 20px;}

.champ-formulaire label {display: block; margin-bottom: 5px; font-weight: bold; }

.champ-formulaire input[type="number"],
.select-voyage {width: 100%; padding: 10px; border-radius: 4px; border: 1px solid #ddd; box-sizing: border-box; }

.bouton-formulaire {text-align: center;}

.bouton-itineraire {padding: 10px 20px; background-color: #0073aa; color: #ffffff; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.3s;}

.bouton-itineraire:hover {background-color: #005177;}

.resultat-itineraire {margin-top: 20px; text-align: center; }

.loader {border: 6px solid #f3f3f3; border-top: 6px solid #3498db; border-radius: 50%; width: 50px; height: 50px; animation: spin 2s linear infinite; display:none; margin: 0 auto;}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/***************** nutrition ****************/
/* ====== Résumé Nutri-Score + Synthèse ====== */
.nutrition-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;  /* occupe 100% */
    gap: 16px;
    margin: 10px 0 20px;
    width: 100%;
}

.nutrition-panel {
    flex: 0 0 49%;
    max-width: 49%;
    background: #fbfbfb;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #eee;
    font-size: 13px;
    box-sizing: border-box;
}

.nutrition-panel-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}

/* Nutri-score + badges : badges en dessous */

.nutriscore-row {
    display: flex;
    flex-direction: column;   /* Nutri-score puis badges en dessous */
    align-items: flex-start;
}

.nutriscore {
    padding: 0;
    background: transparent;
}

.nutriscore-letters {
    display: flex;
    gap: 3px;
}

.nutriscore-letters .ns {
    font-size: 13px;
    font-weight: 700;
    padding: 3px 5px;
    border-radius: 3px;
    opacity: 0.4;
    color: #fff;
}

.ns-a { background:#0db14b; }
.ns-b { background:#85bb2f; }
.ns-c { background:#f9c900; }
.ns-d { background:#f78002; }
.ns-e { background:#e63e11; }

.ns.is-active {
    opacity: 1; color:#000;
}

.nutrition-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;      /* badges sous le Nutri-Score avec espace */
}

.nutri-tag {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 999px;
    font-weight: 600;
    background: #eee;
    color: #333;
}

.nutri-tag-energy { background:#ffefd5; color:#c56a00; }
.nutri-tag-fat { background:#ffe1e1; color:#c70000; }
.nutri-tag-protein { background:#e6f5ff; color:#005b9f; }

/* ====== Cards : 49% chacune, conteneur full width ====== */

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.card {
    flex: 0 0 49%;
    max-width: 49%;
    color: #ffffff;
    padding: 12px 14px;
    border-radius: 8px;
    box-sizing: border-box;
}

.card small {
    display: block;
    font-size: 11px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.card .kcal {
    font-size: 26px;
    font-weight: 700;
    margin: 4px 0 6px;
}

.card-left {background: var(--ast-global-color-0, #000000);}
.card-right {background: var(--ast-global-color-1, #000000);}

/* Responsive */

@media (max-width: 768px) {
    .nutrition-panel, .card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===== TABLEAU NUTRITIONNEL ===== */

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    font-size: 15px;
    background: #ffffff;
}

.nutrition-table thead th {
    text-align: left;
    padding: 12px 10px;
    font-weight: 700;
    background: #fafafa;
    border-bottom: 2px solid #ddd;
    color: var(--ast-global-color-1, #000000);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nutrition-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.nutrition-table tr.section td {
    background: #fafafa;
    font-weight: 700;
    padding-top: 18px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;
    color: #444;
}

.nutrition-table td.indent {
    padding-left: 28px;
    font-size: 14px;
    color: #666;
}

.nutrition-table .nut-val {
    font-weight: 600;
    color: #222;
}

/* Mobile */
@media (max-width: 600px) {
    .nutrition-table td {padding: 8px 6px;}
    .nutrition-table thead th {padding: 10px 6px;}
}

.pai-banner {cursor: pointer;}