/* PSY-MASSAGE - STYLE GUIDE 
    Palette : Prune (#773D7A), Gris (#7A7A7A), Texte (#2C2C2C), Fond (#F9F9F9), Blanc (#FFFFFF)
*/

/* =========================================
   1. IMPORT DES POLICES (LOCAL)
========================================= */

/* Lora (Uniquement pour la Marque/Signature) */
@font-face {
    font-family: 'Lora';
    src: url('fonts/Lora-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lora';
    src: url('fonts/Lora-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

/* Polices locales (Titres, Texte courant et Boutons) */
@font-face {
    font-family: 'Nunito';
    src: url('fonts/Nunito-VariableFont_wght.woff2') format('woff2'),
         url('fonts/Nunito-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Nunito';
    src: url('fonts/Nunito-Italic-VariableFont_wght.woff2') format('woff2'),
         url('fonts/Nunito-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-VariableFont_wght.woff2') format('woff2'),
         url('fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Italic-VariableFont_wght.woff2') format('woff2'),
         url('fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: italic;
    font-display: swap;
}

:root {
    --prune: #773D7A;
    --gris: #7A7A7A;
    --texte: #2C2C2C;
    --fond: #F9F9F9;
    --blanc: #FFFFFF;
    --transition: all 0.3s ease;
}

/* =========================================
   2. RESET & BASE
========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', 'Montserrat', sans-serif;
    background-color: var(--fond);
    color: var(--texte);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   3. TYPOGRAPHIE
========================================= */
h1, h2, h3, h4, h5, h6, .card-title, .section-title h2, .section-title h3 {
    font-family: 'Montserrat', sans-serif !important;
    color: var(--prune);
    margin-bottom: 1.5rem;
}

/* Style spécifique pour la marque "Psy-Massage" et "YOANN FONTE" */
.brand-font {
    font-family: 'Lora', serif !important;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--prune);
    letter-spacing: 0.5px;
}

.section-title {
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin-top: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--prune);
}

/* =========================================
   4. COMPOSANTS (BOUTONS)
========================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--prune);
    color: var(--blanc);
}

.btn-primary:hover {
    background-color: var(--gris);
    color: var(--blanc);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--prune);
    color: var(--prune);
}

.btn-secondary:hover {
    background-color: var(--prune);
    color: var(--blanc);
}

/* =========================================
   5. CARTES DE PRESTATIONS (GRID)
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card-prestation, .card-testimonial, .content-box {
    background-color: var(--blanc);
    border: 1px solid rgba(122, 122, 122, 0.2);
    border-radius: 15px;
    transition: var(--transition);
}

.card-prestation:hover, .card-testimonial:hover {
    border-color: var(--prune);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(119, 61, 122, 0.1);
}

.card-prestation {
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--prune);
    font-weight: 700;
}

.card-price {
    font-weight: 700;
    color: var(--prune);
    margin-bottom: 15px;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   6. FORMULAIRES (Contact, Back-office)
========================================= */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--texte);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    background-color: var(--blanc);
    color: var(--texte);
}

.form-control:focus {
    outline: none;
    border-color: var(--prune);
    box-shadow: 0 0 5px rgba(119, 61, 122, 0.3);
}

/* =========================================
   7. UTILITAIRES & STRUCTURES
========================================= */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

.content-box {
    padding: 25px;
}
@media (min-width: 768px) {
    .content-box {
        padding: 40px;
    }
}

.dynamic-pos {
    object-fit: cover; 
    object-position: var(--pos-mob, center center);
}
@media (min-width: 768px) {
    .dynamic-pos {
        object-position: var(--pos-pc, center center);
    }
}

/* ========================================= */
/* ASCENSEUR PERSONNALISÉ (SCROLLBAR)        */
/* ========================================= */
::-webkit-scrollbar { 
    width: 14px; 
}
::-webkit-scrollbar-track { 
    background: var(--fond); 
}
::-webkit-scrollbar-thumb {
    background-color: var(--gris);
    border-radius: 10px;
    border: 3px solid var(--fond);
}
::-webkit-scrollbar-thumb:hover { 
    background-color: var(--prune); 
}
@supports (-moz-appearance:none) {
    html { 
        scrollbar-width: auto; 
        scrollbar-color: var(--gris) var(--fond); 
    }
}

/* =========================================
   8. HEADER & MENU BURGER (SIDEBAR)
========================================= */
.main-header {
    background-color: var(--blanc);
    border-bottom: 2px solid var(--prune);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
    transition: transform 0.3s ease-in-out;
}

.main-header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-header {
    font-size: 1.8rem;
    color: var(--prune);
    text-decoration: none;
}

.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 5px;
    transition: transform 0.3s ease;
    transform: perspective(1px) translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.burger-btn span {
    display: block;
    width: 35px;
    height: 4px;
    background-color: var(--prune);
    border-radius: 4px;
    transition: var(--transition);
}

.burger-btn:hover {
    transform: perspective(1px) scale(1.05) translateZ(0);
}

.burger-btn:hover span {
    background-color: var(--gris);
}

.burger-btn:hover .burger-text {
    color: var(--gris) !important;
}

.burger-text {
    transition: color 0.3s ease;
}

.logo-link {
    transition: transform 0.3s ease;
    transform: perspective(1px) translateZ(0); 
    backface-visibility: hidden;
    will-change: transform;
}

.logo-link:hover {
    transform: perspective(1px) scale(1.05) translateZ(0);
}

/* La Sidebar (Panneau latéral menu) */
.sidebar {
    position: fixed;
    top: 0;
    right: -320px; 
    width: 320px;
    height: 100vh;
    background-color: var(--blanc);
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0; 
}

@media (max-width: 767px) {
    .sidebar {
        width: 100%;
        right: -100%;
    }
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--prune);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--prune);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
    transform: perspective(1px) translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.close-btn:hover {
    color: var(--gris);
    transform: perspective(1px) scale(1.1) translateZ(0);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--texte);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.sidebar-menu li a:hover {
    color: var(--prune);
    background-color: var(--fond);
    padding-left: 35px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 990; 
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   9. FOOTER
========================================= */
.main-footer {
    background-color: var(--blanc);
    color: var(--texte);
    margin-top: 80px;
    border-top: 2px solid var(--prune);
}

.footer-main-grid {
    text-align: center;
}

.footer-brand .brand-font {
    font-size: 2.2rem;
    color: var(--prune);
    margin-bottom: 5px;
}

.footer-contact h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--prune);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-contact p {
    margin-bottom: 5px;
    color: var(--texte);
}

.footer-legal {
    font-size: 0.85rem;
    background-color: var(--prune);
    color: var(--blanc);
}

.legal-links a {
    color: var(--blanc);
    text-decoration: none;
    margin: 0 10px;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--gris);
    text-decoration: underline;
}

/* =========================================
   10. BOUTON REMONTER (BACK TO TOP)
========================================= */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--prune);
    color: var(--blanc);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--gris);
    transform: translateY(-5px); 
}

/* =========================================
   11. BANNIÈRE COOKIES (RGPD) & RECAPTCHA
========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--fond);
    color: var(--texte);
    border-top: 2px solid var(--prune);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-btns {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 20px 40px;
    }
}

.cookie-banner .btn-secondary {
    border-color: var(--gris);
    color: var(--gris);
}

.cookie-banner .btn-secondary:hover {
    background-color: var(--gris);
    color: var(--blanc);
}

.grecaptcha-badge {
    visibility: hidden !important;
}

.card-testimonial {
    background: var(--blanc);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.card-testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(119, 61, 122, 0.1);
}

/* =========================================
   12. ADAPTATION MOBILE (TYPOGRAPHIE)
========================================= */
@media (max-width: 768px) {
    
    h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    
    .brand-font {
        font-size: 2.4rem !important;
    }

    .logo-header.brand-font {
        font-size: 1.5rem !important;
    }
    
    h2, .section-title {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }
    
    h3 {
        font-size: 1.3rem !important;
    }
    
    body {
        font-size: 0.95rem !important;
    }
    
    p {
        line-height: 1.6 !important;
    }

    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

.legal-container {
    background-color: var(--blanc);
    border: 1px solid rgba(122, 122, 122, 0.2);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
    margin-bottom: 60px;
}
.legal-container h2 {
    font-family: 'Montserrat', sans-serif !important;
    color: var(--prune);
    border-bottom: 2px solid var(--prune);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}
.legal-container h3 {
    font-family: 'Montserrat', sans-serif !important;
    color: var(--prune);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}
.legal-container p, .legal-container ul {
    color: var(--texte);
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 15px;
}
.legal-container ul {
    padding-left: 20px;
}
.legal-container a {
    color: var(--prune);
    text-decoration: none;
    font-weight: bold;
}
.legal-container a:hover {
    text-decoration: underline;
}

/* =========================================
   13. SURCHARGE DESIGN SWEETALERT (PSY-MASSAGE)
========================================= */
.swal-modal {
    background-color: var(--blanc);
    border: 1px solid rgba(122, 122, 122, 0.2);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.swal-title {
    color: var(--prune);
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.6rem;
}
.swal-text {
    color: var(--texte);
    font-family: 'Nunito', sans-serif;
    opacity: 0.9;
    font-size: 1rem;
}
.swal-button {
    background-color: var(--prune);
    color: var(--blanc);
    font-family: 'Montserrat', sans-serif;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.swal-button:hover {
    background-color: var(--gris) !important;
    color: var(--blanc) !important;
}

.swal-icon--success {
    border-color: var(--prune);
}
.swal-icon--success::before, 
.swal-icon--success::after, 
.swal-icon--success .swal-icon--success__hide-corners {
    background-color: var(--blanc) !important;
}
.swal-icon--success .swal-icon--success__line {
    background-color: var(--prune);
}
.swal-icon--success .swal-icon--success__ring {
    border-color: rgba(119, 61, 122, 0.2);
}
.swal-icon--error {
    border-color: var(--gris);
}
.swal-icon--error .swal-icon--error__line {
    background-color: var(--gris);
}