/*
Theme Name: MesVacations V5
Theme URI: https://mesvacations.fr
Author: MesVacations
Description: Thème institutionnel MesVacations, inspiré portail service public.
Version: 5.0.0
Text Domain: mesvacations
*/

:root{
    --blue:#000091;
    --blue-dark:#00006d;
    --text:#1e1e1e;
    --muted:#666;
    --border:#ddd;
    --bg:#f6f6f6;
    --panel:#eeeeee;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
    margin:0;
    font-family:"Segoe UI",Arial,sans-serif;
    color:var(--text);
    background:white;
}

a{color:inherit}

.topbar{
    min-height:96px;
    border-bottom:1px solid #ddd;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 8%;
    background:white;
    position:sticky;
    top:0;
    z-index:1000;
}

.brand{
    display:flex;
    align-items:center;
    gap:20px;
    text-decoration:none;
}

.rf-block{
    width:72px;
    height:72px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.rf-block img{
    max-width:72px;
    max-height:72px;
    object-fit:contain;
}

.service-title{
    font-size:24px;
    font-weight:800;
    color:#1f2937;
    margin-bottom:4px;
}

.service-subtitle{
    font-size:14px;
    color:#4b5563;
}

.main-menu{
    display:flex;
    align-items:center;
    gap:18px;
}

.main-menu ul{
    display:flex;
    align-items:center;
    gap:18px;
    list-style:none;
    margin:0;
    padding:0;
}

.main-menu a{
    color:#374151;
    text-decoration:none;
    font-weight:700;
    font-size:14px;
}

.top-action{
    border:none;
    background:var(--blue);
    color:white!important;
    padding:14px 18px;
    font-size:16px;
    font-weight:800;
    cursor:pointer;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    transition:.15s;
}

.top-action:hover{
    background:var(--blue-dark);
}

.burger{
    display:none;
    border:1px solid #ddd;
    background:white;
    color:var(--blue);
    font-weight:900;
    padding:9px 13px;
    font-size:20px;
}

.breadcrumb{
    max-width:1120px;
    width:100%;
    margin:0 auto;
    padding:18px 20px;
    color:#6b7280;
    font-size:12px;
}

.breadcrumb span{
    color:#111827;
    font-weight:600;
}

.main{
    min-height:60vh;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding:35px 20px 56px;
}

.page-panel{
    width:100%;
    max-width:920px;
    background:var(--panel);
    padding:48px;
}

.page-panel.narrow{
    max-width:560px;
}

h1{
    margin:0 0 10px;
    font-size:28px;
    line-height:1.15;
    color:#1f2937;
}

h2{
    margin:0 0 22px;
    font-size:21px;
    color:#1f2937;
}

.intro{
    color:#4b5563;
    font-size:14px;
    line-height:1.45;
    margin:0 0 28px;
}

.divider{
    border-top:1px solid #d1d5db;
    margin:28px 0;
}

.wp-content{
    font-size:15px;
    line-height:1.65;
    color:#374151;
}

.wp-content p{margin:0 0 16px}

.wp-content a{
    color:var(--blue);
    font-weight:700;
}

label{
    display:block;
    font-size:15px;
    color:#1f2937;
    margin-bottom:6px;
    font-weight:500;
}

input,select,textarea{
    width:100%;
    border:none;
    border-bottom:3px solid #3f3f46;
    background:#e5e5e5;
    padding:13px 12px;
    font-size:16px;
    outline:none;
}

input:focus,select:focus,textarea:focus{
    border-bottom-color:var(--blue);
    box-shadow:inset 0 0 0 2px rgba(0,0,145,.08);
}

button,.button,.mv-button{
    border:none;
    background:var(--blue);
    color:white!important;
    padding:14px 18px;
    font-size:16px;
    font-weight:800;
    cursor:pointer;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

button:hover,.button:hover,.mv-button:hover{
    background:var(--blue-dark);
}

.secondary-link{
    display:block;
    text-align:center;
    border:1px solid var(--blue);
    color:var(--blue);
    padding:13px 18px;
    text-decoration:none;
    font-weight:800;
    background:white;
}

.footer{
    border-top:3px solid var(--blue);
    background:white;
    padding:18px 6%;
}

.footer-grid{
    max-width:1120px;
    margin:0 auto;
    display:grid;
    grid-template-columns:120px 1fr;
    gap:28px;
    align-items:center;
}

.footer-logo{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.footer-logo img{
    width:42px;
    height:auto;
    object-fit:contain;
    margin-bottom:6px;
}

.footer-title{
    font-weight:800;
    font-size:14px;
    line-height:1.2;
    color:#1f2937;
}

.footer-text{
    display:flex;
    align-items:center;
    min-height:auto;
    font-size:13px;
    line-height:1.45;
    margin-bottom:10px;
}

.footer-text{
    color:#4b5563;
    font-size:13px;
    line-height:1.55;
}

.footer-links{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
    margin-top:16px;
    font-size:13px;
}

.footer-links a{
    color:#374151;
    text-decoration:none;
    font-weight:600;
}

/* WooCommerce base */
.woocommerce .page-panel{
    max-width:760px;
}

body.woocommerce-checkout .page-panel{
    max-width:760px;
}

body.woocommerce-checkout .entry-title{
    display:none!important;
}

/* Mobile */
@media(max-width:760px){
    .topbar{
        height:auto;
        padding:18px;
        align-items:flex-start;
        gap:16px;
    }

    .brand{
        align-items:flex-start;
        gap:12px;
    }

    .rf-block{
        width:56px;
        height:56px;
    }

    .rf-block img{
        max-width:52px;
        max-height:52px;
    }

    .service-title{
        font-size:19px;
    }

    .service-subtitle{
        font-size:13px;
    }

    .burger{
        display:block;
    }

    .main-menu{
        display:none;
        position:absolute;
        left:0;
        right:0;
        top:92px;
        background:white;
        border-bottom:1px solid #ddd;
        padding:18px;
        flex-direction:column;
        align-items:stretch;
    }

    body.menu-open .main-menu{
        display:flex;
    }

    .main-menu ul{
        flex-direction:column;
        align-items:stretch;
    }

    .main-menu a,.top-action{
        display:block;
        text-align:center;
    }

    .main{
        padding:20px 12px 36px;
    }

    .page-panel{
        padding:28px 22px;
    }

    h1{
        font-size:24px;
    }

    .footer{
        padding:24px 18px;
    }

    .footer-grid{
        grid-template-columns:1fr;
        gap:18px;
    }
}


/* =====================================================
MOBILE POLISH V5
===================================================== */

@media(max-width:760px){

    /* Burger plus propre */
    .burger{
        border:none;
        background:transparent;
        color:var(--blue);
        padding:6px 10px;
        font-size:28px;
        box-shadow:none;
    }

    .burger:hover{
        background:transparent;
    }

    /* Menu mobile */
    .main-menu{
        box-shadow:0 10px 28px rgba(0,0,0,.08);
    }

    /* Footer centré */
    .footer{
        text-align:center;
    }

    .footer-grid{
        grid-template-columns:1fr;
        justify-items:center;
        text-align:center;
    }

    .footer-logo{
        align-items:center;
    }

    .footer-links{
        justify-content:center;
    }

    .footer-text{
        justify-content:center;
        text-align:center;
    }
}

/* =====================================================
HOME V5 — PORTAIL INSTITUTIONNEL MODERNE
===================================================== */

.home-v5{
    background:#f6f6f6;
}

.home-hero{
    background:linear-gradient(180deg,#fff 0%,#f6f6f6 100%);
    border-bottom:1px solid #ddd;
}

.home-hero-inner{
    max-width:1120px;
    margin:0 auto;
    padding:70px 20px 64px;
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:54px;
    align-items:center;
}

.home-kicker{
    display:inline-block;
    color:#000091;
    font-weight:800;
    border-left:4px solid #000091;
    padding-left:12px;
    margin-bottom:22px;
}

.home-hero h1{
    font-size:48px;
    line-height:1.04;
    margin:0 0 22px;
    color:#1f2937;
    letter-spacing:-1px;
}

.home-hero p{
    color:#4b5563;
    font-size:18px;
    line-height:1.65;
    max-width:660px;
}

.home-actions{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-top:30px;
}

.home-btn{
    padding:15px 20px;
    font-weight:800;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.home-btn.primary{
    background:#000091;
    color:white;
}

.home-btn.primary:hover{
    background:#00006d;
}

.home-btn.secondary{
    background:white;
    color:#000091;
    border:1px solid #000091;
}

.home-dashboard-card{
    background:#eeeeee;
    padding:34px;
    box-shadow:0 18px 45px rgba(0,0,0,.10);
}

.dash-top{
    display:flex;
    justify-content:space-between;
    gap:20px;
    border-bottom:1px solid #d1d5db;
    padding-bottom:18px;
    margin-bottom:22px;
}

.dash-top strong{
    color:#1f2937;
    font-size:22px;
}

.dash-top span{
    color:#666;
}

.dash-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
}

.dash-grid div{
    background:white;
    padding:18px;
    border-left:4px solid #000091;
}

.dash-grid small{
    display:block;
    color:#666;
    margin-bottom:8px;
}

.dash-grid strong{
    font-size:28px;
    color:#1f2937;
}

.dash-line{
    margin-top:22px;
    display:grid;
    gap:8px;
}

.dash-line span{
    height:10px;
    background:#d1d5db;
}

.dash-line span:nth-child(2){
    width:75%;
}

.dash-line span:nth-child(3){
    width:55%;
}

.home-quick{
    max-width:1120px;
    margin:0 auto;
    padding:22px 20px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:1px;
    background:#ddd;
}

.home-quick a{
    background:white;
    padding:18px;
    text-align:center;
    font-weight:800;
    color:#000091;
    text-decoration:none;
}

.home-section{
    max-width:1120px;
    margin:0 auto;
    padding:70px 20px;
}

.home-section-title{
    max-width:760px;
    margin-bottom:34px;
}

.home-section-title h2,
.home-split h2,
.home-final h2{
    font-size:34px;
    line-height:1.15;
    margin:0 0 14px;
    color:#1f2937;
}

.home-section-title p,
.home-split p,
.home-final p{
    color:#4b5563;
    font-size:16px;
    line-height:1.6;
}

.home-cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.home-cards article{
    background:white;
    border-top:4px solid #000091;
    padding:24px;
    min-height:210px;
    box-shadow:0 8px 24px rgba(0,0,0,.06);
}

.home-cards .icon{
    font-size:30px;
    margin-bottom:14px;
}

.home-cards h3{
    margin:0 0 12px;
    color:#1f2937;
}

.home-cards p{
    color:#4b5563;
    line-height:1.55;
    margin:0;
}

.home-split{
    max-width:1120px;
    margin:0 auto 70px;
    padding:50px 20px;
    display:grid;
    grid-template-columns:1fr .8fr;
    gap:48px;
    align-items:center;
    background:white;
}

.home-split ul{
    margin:24px 0 0;
    padding:0;
    list-style:none;
}

.home-split li{
    padding:12px 0;
    border-bottom:1px solid #e5e7eb;
    font-weight:700;
}

.home-split li::before{
    content:"✓";
    color:#000091;
    margin-right:10px;
    font-weight:900;
}

.home-phone{
    background:#eeeeee;
    padding:26px;
    border:1px solid #ddd;
}

.phone-header{
    font-weight:900;
    color:#000091;
    margin-bottom:16px;
}

.phone-tabs{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:6px;
    margin-bottom:18px;
}

.phone-tabs span{
    background:#000091;
    color:white;
    font-size:12px;
    padding:8px;
    text-align:center;
}

.phone-card{
    background:white;
    padding:16px;
    margin-bottom:12px;
    border-left:4px solid #000091;
}

.home-final{
    text-align:center;
    background:#1f2937;
    color:white;
    padding:58px 20px;
}

.home-final h2{
    color:white;
}

.home-final p{
    color:#d1d5db;
    max-width:720px;
    margin:0 auto 26px;
}

@media(max-width:900px){
    .home-hero-inner,
    .home-split{
        grid-template-columns:1fr;
    }

    .home-hero h1{
        font-size:36px;
    }

    .home-quick,
    .home-cards{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:620px){
    .home-hero-inner{
        padding:42px 18px;
    }

    .home-hero h1{
        font-size:30px;
    }

    .home-actions a,
    .home-btn{
        width:100%;
    }

    .home-quick,
    .home-cards{
        grid-template-columns:1fr;
    }

    .home-section{
        padding:46px 18px;
    }

    .home-split{
        margin-bottom:44px;
        padding:32px 18px;
    }
}

/* HOME VISUELS PROMOTIONNELS */

.home-visuals-section{
    max-width:1120px;
    margin:0 auto 70px;
    padding:0 20px;
}

.home-visuals-card{
    background:white;
    border:1px solid #ddd;
    padding:18px;
    box-shadow:0 12px 35px rgba(0,0,0,.08);
}

.home-visuals-card img{
    width:100%;
    height:auto;
    display:block;
}

@media(max-width:620px){
    .home-visuals-section{
        margin-bottom:44px;
        padding:0 18px;
    }

    .home-visuals-card{
        padding:10px;
    }
}

/* PAGE FONCTIONNALITES V5 */

.mv-wrap{max-width:1180px;margin:auto;padding:0 20px}

.mv-features-hero{
    background:#f6f6f6;
    padding:70px 0;
}

.mv-features-hero .mv-wrap,
.mv-feature-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:48px;
    align-items:center;
}

.mv-badge{
    display:inline-block;
    border-left:4px solid var(--blue);
    padding-left:12px;
    color:var(--blue);
    font-weight:800;
    margin-bottom:18px;
}

.mv-features-hero h1{
    font-size:48px;
    line-height:1.05;
    margin:0 0 20px;
    color:#1f2937;
}

.mv-hero-text{
    font-size:18px;
    line-height:1.65;
    color:#4b5563;
}

.mv-hero-actions{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-top:28px;
}

.mv-btn-primary,
.mv-btn-secondary{
    padding:15px 20px;
    font-weight:800;
    text-decoration:none;
}

.mv-btn-primary{
    background:var(--blue);
    color:white!important;
}

.mv-btn-primary:hover{background:var(--blue-dark)}

.mv-btn-secondary{
    background:white;
    color:var(--blue)!important;
    border:1px solid var(--blue);
}

.mv-feature-block{
    padding:72px 0;
    background:white;
}

.mv-feature-block.alt{
    background:#f6f6f6;
}

.mv-feature-grid.reverse .mv-feature-image{order:2}

.mv-feature-content{
    background:#eeeeee;
    padding:42px;
}

.mv-feature-content h2{
    font-size:34px;
    margin:0 0 16px;
    color:#1f2937;
}

.mv-feature-content p{
    color:#4b5563;
    font-size:17px;
    line-height:1.65;
}

.mv-feature-content ul{
    padding:0;
    margin:22px 0 0;
    list-style:none;
}

.mv-feature-content li{
    padding:10px 0;
    border-bottom:1px solid #d1d5db;
    font-weight:700;
}

.mv-feature-content li:before{
    content:"✓";
    color:var(--blue);
    font-weight:900;
    margin-right:10px;
}

.mv-feature-image img,
.mv-hero-image img{
    width:100%;
    display:block;
    border:1px solid #ddd;
    box-shadow:0 14px 38px rgba(0,0,0,.10);
}

.mv-final-cta{
    background:#1f2937;
    color:white;
    text-align:center;
    padding:70px 20px;
}

.mv-final-cta h2{
    color:white;
    font-size:38px;
}

.mv-final-cta p{
    color:#d1d5db;
    font-size:18px;
}

@media(max-width:850px){
    .mv-features-hero .mv-wrap,
    .mv-feature-grid{
        grid-template-columns:1fr;
    }

    .mv-feature-grid.reverse .mv-feature-image{order:0}

    .mv-features-hero h1{
        font-size:34px;
    }

    .mv-feature-content{
        padding:28px 22px;
    }

    .mv-feature-content h2{
        font-size:28px;
    }
}

/* =====================================================
CHECKOUT V5 — FINITIONS VISUELLES
===================================================== */

/* Blocs Information / Important homogènes */
body.woocommerce-checkout .mv-reg-notice,
body.woocommerce-checkout .mv-important,
body.woocommerce-checkout .woocommerce-billing-fields h3::after {
    background:#fff !important;
    border:1px solid #d1d5db !important;
    border-left:4px solid var(--blue) !important;
    color:#1f2937 !important;
    padding:14px 16px !important;
    font-size:14px !important;
    line-height:1.5 !important;
    font-weight:500 !important;
    box-shadow:none !important;
}

/* Case CGU trop grosse */
body.woocommerce-checkout input[type="checkbox"] {
    width:18px !important;
    height:18px !important;
    min-height:18px !important;
    padding:0 !important;
    margin:0 10px 0 0 !important;
    accent-color:var(--blue);
    vertical-align:middle;
}

/* Ligne CGU propre */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
body.woocommerce-checkout .form-row.validate-required {
    font-size:14px !important;
    line-height:1.55 !important;
}

body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label,
body.woocommerce-checkout .form-row.validate-required label {
    display:flex !important;
    align-items:flex-start !important;
    gap:8px !important;
    font-weight:700 !important;
    color:#1f2937 !important;
}

/* Bouton commander cohérent */
body.woocommerce-checkout #place_order {
    background:var(--blue) !important;
    border:none !important;
    border-radius:0 !important;
    box-shadow:none !important;
}

body.woocommerce-checkout #place_order:hover {
    background:var(--blue-dark) !important;
}


/* CHECKOUT — CODE PROMO */

body.woocommerce-checkout .woocommerce-form-coupon-toggle {
    max-width:760px;
    margin:0 auto 18px;
}

body.woocommerce-checkout .woocommerce-info {
    background:#fff !important;
    border:1px solid #d1d5db !important;
    border-left:4px solid var(--blue) !important;
    color:#1f2937 !important;
    padding:14px 16px !important;
    font-size:14px !important;
    line-height:1.5 !important;
}

body.woocommerce-checkout .checkout_coupon {
    max-width:760px;
    margin:0 auto 22px !important;
    background:#fff !important;
    border:1px solid #d1d5db !important;
    padding:18px !important;
}

body.woocommerce-checkout .checkout_coupon .button {
    background:var(--blue) !important;
    color:#fff !important;
}

body.woocommerce-checkout .checkout_coupon .button:hover {
    background:var(--blue-dark) !important;
}


/* HERO PRODUIT ADHÉSION */

.mv-product-hero-card h2,
.mv-product-hero-card h3,
.mv-product-hero-card p,
.mv-product-hero-card strong {
    color:#ffffff !important;
}

/* ==========================
FOOTER MENU WORDPRESS
========================== */

.footer-links ul,
.footer-menu-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;

    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--blue);
}

@media (max-width: 768px) {

    .footer-links ul,
    .footer-menu-list {
        flex-direction: column;
        gap: 10px;
    }

}

.footer-grid > div:last-child{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.footer-text{
    text-align:center;
    margin-bottom:20px;
}

.footer-links{
    width:100%;
}

/* ==========================
FOOTER 3 COLONNES
========================== */

.footer-grid-3{
    grid-template-columns:1.2fr 1fr 1fr;
    align-items:flex-start;
}

.footer-brand{
    text-align:left;
}

.footer-column{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
}

.footer-menu-list{
    align-items:flex-start;
}

.footer-column h4{
    margin:0 0 14px;
    font-size:14px;
    font-weight:800;
    color:#1f2937;
    text-transform:uppercase;
    letter-spacing:.03em;
}

.footer-menu-list{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:9px;
}

.footer-menu-list li{
    margin:0;
    padding:0;
    list-style:none;
}

.footer-menu-list a{
    color:#374151;
    text-decoration:none;
    font-weight:600;
    font-size:13px;
}

.footer-menu-list a:hover{
    color:var(--blue);
}

.footer-bottom{
    max-width:1120px;
    margin:22px auto 0;
    padding-top:14px;
    border-top:1px solid #e5e7eb;
    text-align:center;
    font-size:12px;
    color:#6b7280;
    line-height:1.5;
}

@media(max-width:760px){
    .footer-grid-3{
        grid-template-columns:1fr;
        text-align:center;
        justify-items:center;
    }

    .footer-column{
        text-align:center;
    }

    .footer-menu-list{
        align-items:center;
    }
}

.footer-column h4{
    width:100%;
    text-align:left;
}

.footer-menu-list{
    width:100%;
}

.footer-menu-list a{
    display:block;
}

/* ==========================
FOOTER MOBILE
========================== */

@media (max-width: 760px) {

    .footer-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 28px;
        text-align: center;
        justify-items: center;
    }

    .footer-brand,
    .footer-column {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .footer-column h4 {
        text-align: center;
        margin-bottom: 12px;
    }

    .footer-menu-list {
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .footer-text {
        text-align: center;
        max-width: 320px;
        margin: 10px auto 0;
    }

    .footer-bottom {
        max-width: 320px;
        margin-top: 24px;
    }
}