/*
Theme Name: Cabinet Orlane Fagnoni
Theme URI: https://www.hypnose-nutritionniste-fagnoni.fr/
Author: Orlane Fagnoni
Author URI: https://www.hypnose-nutritionniste-fagnoni.fr/
Description: Thème sur-mesure.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: health, wellness, medical, tailwind, modern, clean
Text Domain: fagnoni-theme
*/

/* ==========================================================================
   1. IMPORTS ET RÉGLAGES GLOBAUX
   ========================================================================== */
/* Import des polices (Fallback si le CDN dans le header échoue) */
/* @import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;700&display=swap'); */

:root {
    --color-primary: #2c7a7b;
    --color-secondary: #2d3748;
    --color-accent: #38b2ac;
    --color-soft: #f8fafc;

    /* --swiper-theme-color: var(--color-primary);
    --swiper-pagination-color: var(--color-primary);
    --swiper-navigation-color: var(--color-primary); */

    --font-sans: 'Lato', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

.fade-in-up {
    animation: fadeInUp 0.3s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-secondary);
    /* Secondary Color */
    background-color: var(--color-soft);
    /* Soft Color */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* overflow-x: hidden; */
    /* Empêche le scroll horizontal indésirable sur mobile */
    min-width: 350px;
}

/* Titres */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700 !important;
}

/* ==========================================================================
   2. CLASSES STANDARDS WORDPRESS (OBLIGATOIRE)
   ========================================================================== */
/* Ces classes sont générées par l'éditeur Gutenberg ou Classique. 
   Sans elles, vos images dans les articles seront mal alignées. */

.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 20px auto;
    clear: both;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* ==========================================================================
   3. PAGINATION (BLOG)
   ========================================================================== */
/* Style pour matcher les boutons ronds du design React */

.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination-wrapper .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-wrapper .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    /* w-10 */
    height: 2.5rem;
    /* h-10 */
    border-radius: 9999px;
    background-color: white;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    line-height: 1;
}

/* Page active */
.pagination-wrapper .page-numbers.current {
    background-color: var(--color-primary);
    /* Primary */
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 6px -1px rgba(44, 122, 123, 0.4);
    transform: scale(1.05);
}

/* Hover */
.pagination-wrapper .page-numbers:hover:not(.current) {
    background-color: #f9fafb;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Flèches Précédent / Suivant (si texte) */
.pagination-wrapper .prev,
.pagination-wrapper .next {
    font-family: 'Playfair Display', serif;
}

/* ==========================================================================
   4. ANIMATIONS
   ========================================================================== */
/* Effet d'apparition vers le haut */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ==========================================================================
   5. CONTENU DES ARTICLES (TYPOGRAPHIE)
   ========================================================================== */
/* Si vous n'utilisez pas le plugin Tailwind Typography, ces styles 
   assurent que vos articles de blog sont lisibles */

.prose h2 {
    font-size: 1.875rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--color-secondary);
    font-family: 'Playfair Display', serif;
}

.prose h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    font-family: 'Playfair Display', serif;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: #4a5568;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
    font-style: italic;
    color: var(--color-secondary);
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin-bottom: 1.5rem;
}

.prose a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
}

.prose a:hover {
    color: #285e61;
}

/* ==========================================================================
   6. WIDGETS (SIDEBAR & FOOTER)
   ========================================================================== */

/* Liste des catégories dans la sidebar */
.widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #edf2f7;
}

.widget_categories li a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}

.widget_categories li a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   7. FORMULAIRE CONTACT (CONTACT FORM 7)
   ========================================================================== */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 0.75rem;
    /* p-3 */
    background-color: #f9fafb;
    /* bg-gray-50 */
    color: #6b7280;
    /* text-gray-500 */
    border-radius: 0.5rem;
    /* rounded-lg */
    border: 1px solid #e5e7eb;
    /* border-gray-200 */
    outline: none;
    transition: border-color 0.2s;
    /*appearance: none; */
    /* enlève le style natif */
    cursor: pointer;
    font-size: 1rem;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: #17796a;
    background-color: #fff;
    /* box-shadow: 0 0 0 3px rgba(44, 122, 123, 0.1); */
}

/* .wpcf7 input[type="submit"] {
    background-color: #17796a;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
} */

/* .wpcf7 input[type="submit"]:hover {
    background-color: #17796a;
} */

.wpcf7-form p {
    margin-bottom: 1rem;
    /* Ou la valeur souhaitée, ex : 2rem, 24px, etc. */
}

.wpcf7-form p:last-child {
    margin-bottom: 0;
    /* Pas d’espace sous le bouton */
}

.wpcf7-spinner {
    display: none !important;
}

.wpcf7-submit {
    background-color: #17796a;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.wpcf7-submit:hover {
    background-color: #145c53;
}

.wpcf7-form.submitting .wpcf7-submit.has-spinner::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 0.7em;
    border: 2px solid #14b8a6;
    border-top-color: transparent;
    border-radius: 50%;
    vertical-align: middle;
    animation: spin 0.7s linear infinite;
}

.wpcf7-submit.has-spinner {
    position: relative;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.wpcf7-response-output {
    width: 100%;
    font-size: 0.9em;
    margin: 0 !important;
    background-color: #eafeef;
    /* vert très clair ou ta couleur thème */
    color: #16796b;
    /* couleur texte principale du site */
    font-weight: bold;
    border-radius: 0.5rem;
    border: 1px solid #14b8a6;
    padding: 1em;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    /* font-size: 1rem; */
    transition: background-color 0.2s, color 0.2s;
}

/* Optionnel : styles pour erreur et succès */
.wpcf7-form.sent .wpcf7-response-output {
    background-color: #eafeef;
    color: #16796b;
    border-color: #14b8a6;
}

/* Si erreur : rouge pâle, adaptez selon votre charte couleur */
.wpcf7-form.invalid .wpcf7-response-output {
    background-color: #fdecea;
    color: #c0392b;
    border-color: #e74c3c;
}

.wpcf7-not-valid-tip {
    font-size: 0.9em;
}

.wpcf7-form-control-wrap.recaptcha {
    /* margin-bottom: 5px; */
    position: relative;
    top: -5px;
}

/* 
.wpcf7-form-control-wrap.recaptcha .wpcf7-not-valid-tip {
    display: none !important; 
} */


/* ==========================================================================
   8. page single blog category list 
   Style spécifique pour la liste des catégories
   ========================================================================== */

.category-list-custom li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 0.2rem 0; */
    cursor: pointer;
}

.category-list-custom li a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}

.category-list-custom li .count {
    font-size: 0.75rem;
    background-color: #f3f4f6;
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    color: #9ca3af;
}

.category-list-custom li:hover a {
    color: var(--color-primary);
}

.category-list-custom li:hover .count {
    background-color: var(--color-primary);
    color: #ffffff;
}


/* ==========================================================================
   9. SECTION CONTACT (PAGE ACCUEIL)
   ========================================================================== */
#contact {
    background: #1c2636;
}

#contact:after {
    content: "";
    display: block;
    /* border-top: 12vw solid transparent;
    border-right: 100vw solid #fff; */
}

/* ¨P */
p {
    /* margin: revert; */
}

/* .mentions-legales h2:not(:first-of-type),
.politique h2:not(:first-of-type),
.cgv h2:not(:first-of-type) {
    margin-top: 1.5rem;
} */

/* ==========================================================================
   10. FIX MOBILE WP ADMIN BAR
   ========================================================================== */
@media screen and (max-width: 600px) {
    #wpadminbar {
        position: fixed !important;
    }
}

/* ==========================================================================
   11. TESTIMONIALS SWIPER CUSTOMISÉ
   ========================================================================== */

/* 1) Boutons précédent / suivant */
.testimonials-swiper .swiper-button-prev,
.testimonials-swiper .swiper-button-next {
    position: static;
    width: auto;
    height: auto;
    margin-top: 0;
    color: inherit;
    fill: none;
}

.testimonials-swiper .swiper-button-prev::after,
.testimonials-swiper .swiper-button-next::after {
    content: '';
}

.testimonials-swiper .swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.testimonials-swiper .swiper-pagination {
    position: static;
    width: auto;
}

.testimonials-swiper .swiper-pagination{
    position: static;
    width: auto;
}

.testimonials-swiper .swiper-pagination-bullet {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: #d1d5db;
    opacity: 1;
    transition: background-color 0.2s ease;
    margin: 0 !important;
}

.testimonials-swiper .swiper-pagination-bullet.swiper-pagination-bullet-active {
    width: 1rem;
    background-color: var(--color-primary) !important;
}

/* 3) HAUTEUR UNIFORME : forcer les slides à 100% de hauteur */

.testimonials-swiper .swiper-wrapper {
    align-items: stretch;
}

/* Toutes les slides (visible ou pas) prennent 100% hauteur */
.testimonials-swiper .swiper-slide {
    height: auto !important;
    /* annule les hauteurs inline de Swiper */
    display: flex;
}

/* La carte remplit la slide */
.testimonials-swiper .swiper-slide>div {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
}

/* 4) Hover sur les cartes */
.testimonials-swiper .swiper-slide>div {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* .testimonials-swiper .swiper-slide>div:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
} */

/* 5) Responsive des boutons */
@media (max-width: 640px) {

    .testimonials-swiper .swiper-button-prev,
    .testimonials-swiper .swiper-button-next {
        padding: 0.5rem;
    }

    .testimonials-swiper .swiper-button-prev svg,
    .testimonials-swiper .swiper-button-next svg {
        width: 16px;
        height: 16px;
    }
}