/*
Theme Name: Hello Child
Description: Thème enfant pour Hello Elementor
Template: hello-elementor
Version: 1.2
*/

/* 🛡️ PROTECTION ANTI-DISPARITION */
.wc-block-components-checkout-step .wc-block-components-address-address-wrapper.is-editing 
  .wc-block-components-address-card {
    display: none !important;
}

/* ✅ PROTECTION CSS SIMPLIFIÉE */
#fixed-address-selector,
#fixed-billing-address-selector {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 50px !important;
    position: relative !important;
    z-index: 100 !important;
}

/* Forcer l'affichage dans tous les contextes */
.wc-block-components-checkout-step #fixed-address-selector,
.wc-block-components-checkout-step #fixed-billing-address-selector,
.is-editing ~ #fixed-address-selector,
.is-editing ~ #fixed-billing-address-selector,
body #fixed-address-selector,
body #fixed-billing-address-selector {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* ✅ VARIABLES CSS OBLIGATOIRES POUR LE MODAL */
:root {
    --bg: #fefdf8;              /* Votre couleur de fond */
    --brand: #2c5530;           /* Votre couleur principale (vert) */
    --text: #333333;            /* Couleur du texte */
    --muted: #666666;           /* Couleur du texte secondaire */
}

/* ✅ FORCER LE STYLE DU MODAL SI NÉCESSAIRE */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    z-index: 10000 !important;
}

.modal-content {
    background-color: var(--bg, #fefdf8) !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3) !important;
    max-width: 500px !important;
    width: 90% !important;
    margin: auto !important;
}

.modal-header {
    background: var(--brand, #2c5530) !important;
    color: white !important;
    padding: 30px !important;
    border-radius: 15px 15px 0 0 !important;
}

/* ========== Variables & Base ========== */
:root{
  --bg: #fdf6e6;
  --text: #333;
  --muted: #666;
  --brand: #2d4a3e;
  --brand-2: #4CAF50;
  --accent: #1f3028;
  --radius: 15px;
  --shadow: 0 5px 20px rgba(0,0,0,.1);
}

*{margin:0;padding:0;box-sizing:border-box;}
body{
  font-family: 'Georgia', serif;
  background-color: #fdf6e6 !important;
  color: var(--text);
  line-height: 1.6;
}

/* ========== Header (homepage) ========== */
.custom-header{
  background:#fff;
  padding:20px 0;
  box-shadow:0 2px 10px rgba(0,0,0,.1);
}
.header-content{
  max-width:1200px;margin:0 auto;
  display:flex;justify-content:space-between;align-items:center;
  padding:0 20px;position:relative;
}
.account-icon{
  position:absolute;right:20px;top:50%;transform:translateY(-50%);
}
.account-icon a{
  display:flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:50%;
  background:#f5f5f5;color:var(--text);transition:.3s;
}
.account-icon a:hover{background:var(--brand);color:#fff;}

/* ========== Hero (homepage) ========== */
.hero-section{
  background:linear-gradient(rgba(0,0,0,.7),rgba(0,0,0,.7)),
    url('assets/images/hero-bg.jpg') center/cover;
  height:70vh;display:flex;align-items:center;justify-content:center;
  text-align:center;color:#fff;margin-bottom:80px;
}
.hero-content h2{font-size:3rem;font-weight:400;margin-bottom:20px;letter-spacing:1px;}
.hero-content p{font-size:1.2rem;margin-bottom:40px;max-width:600px;line-height:1.8;}
.hero-buttons{display:flex;gap:20px;justify-content:center;flex-wrap:wrap;}
.btn{
  padding:15px 30px;border:2px solid #fff;background:transparent;color:#fff;
  text-decoration:none;font-size:1rem;transition:.3s;border-radius:5px;
}
.btn:hover{background:#fff;color:var(--text);}
.btn-secondary{background:rgba(255,255,255,.2);}

/* ========== Process Cards (Comment commander) ========== */
.process-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
    text-align: center;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.process-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--brand);
}

.process-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #2d4a3e, #1f3028);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.process-card:hover .process-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #1f3028, #2d4a3e);
}

.process-icon svg {
    width: 35px;
    height: 35px;
    stroke: #fff;
    stroke-width: 1.5;
}

/* Supprimer les coches pour les process cards */
.process-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text);
    padding-left: 0 !important;  /* Force le padding à 0 */
    text-align: center;
    position: relative;  /* Reset position */
}

.process-card h4:before {
    display: none !important;  /* Force la suppression de la coche */
    content: none !important;
}

.process-card p {
    color: var(--muted);
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .process-card {
        padding: 30px 20px;
    }
    
    .process-icon {
        width: 70px;
        height: 70px;
    }
    
    .process-icon svg {
        width: 30px;
        height: 30px;
    }
}

/* ========== Pourquoi nous choisir (homepage) ========== */
.why-choose-us{max-width:1200px;margin:0 auto 80px;padding:0 20px;text-align:center;}
.why-choose-us h3{font-size:2.5rem;margin-bottom:60px;font-weight:400;color:var(--text);}
.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:40px;margin-bottom:60px;}
.feature{text-align:left;}
.feature h4{font-size:1.3rem;margin-bottom:15px;color:var(--text);position:relative;padding-left:30px;}
.feature h4:before{content:"✓";position:absolute;left:0;color:var(--accent);font-weight:700;}
.feature p{color:var(--muted);line-height:1.6;}

/* ========== Partenaires (homepage) ========== */
.partners-section{max-width:1200px;margin:0 auto 80px;padding:0 20px;text-align:center;}
.partners-section h3{font-size:2.5rem;margin-bottom:60px;font-weight:400;color:var(--text);}
.partners-grid{display:flex;justify-content:center;gap:60px;align-items:center;flex-wrap:wrap;}
.partner-logo{padding:30px;border:1px solid #ddd;border-radius:10px;background:#fff;transition:.3s;width:250px;height:150px;display:flex;align-items:center;justify-content:center;}
.partner-logo:hover{transform:translateY(-5px);box-shadow:0 10px 30px rgba(0,0,0,.1);}
.partner-logo img{max-width:100%;max-height:100px;height:auto;object-fit:contain;filter:grayscale(1);transition:.3s;}
.partner-logo:hover img{filter:grayscale(0);}

/* Responsive pour 2 logos */
@media (max-width:768px){
  .partners-grid{flex-direction:column;gap:30px;}
  .partner-logo{width:100%;max-width:300px;}
}

/* ========== Sélection (homepage) ========== */
.selection-section{max-width:1200px;margin:0 auto 80px;padding:0 20px;text-align:center;}
.selection-section h3{font-size:2.5rem;margin-bottom:60px;font-weight:400;color:var(--text);}
.products-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:30px;margin-bottom:40px;}
.product-card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:.3s;}
.product-card:hover{transform:translateY(-10px);}
.product-image{height:250px;background-size:cover;background-position:center;}
.product-info{padding:25px;text-align:left;}
.product-info h4{font-size:1.3rem;margin-bottom:10px;color:var(--text);}
.product-info p{color:var(--muted);margin-bottom:15px;}
.view-more-btn{display:inline-block;padding:12px 25px;background:var(--accent);color:#fff;text-decoration:none;border-radius:25px;transition:.3s;}
.view-more-btn:hover{background:#344a3f;}

/* ========== Commande (homepage) ========== */
.order-section{max-width:1200px;margin:0 auto 80px;padding:0 20px;text-align:center;}
.order-section h3{font-size:2.5rem;margin-bottom:60px;font-weight:400;color:var(--text);}
.order-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:30px;}
.order-step{background:#fff;padding:40px 30px;border-radius:var(--radius);box-shadow:var(--shadow);}
.order-step h4{font-size:1.5rem;margin-bottom:20px;color:var(--text);}
.order-step p{color:var(--muted);margin-bottom:25px;line-height:1.6;}
.order-step .btn{display:inline-block;padding:12px 25px;background:var(--accent);color:#fff;text-decoration:none;border-radius:25px;border:none;transition:.3s;}
.order-step .btn:hover{background:#344a3f;}

/* ========== Responsive (homepage) ========== */
@media (max-width:768px){
  .hero-content h2{font-size:2rem;}
  .hero-buttons{flex-direction:column;align-items:center;}
  .features-grid,.products-grid,.order-steps{grid-template-columns:1fr;}
  .partners-grid{grid-template-columns:repeat(2,1fr);}
}

/* Force background sur toutes les pages */
html, 
html body,
body.home,
body.page,
body.single {
    background-color: #fdf6e6 !important;
    background: #fdf6e6 !important;
}

/* Pour le dashboard spécifiquement */
.b2b-dashboard {
    background: #fdf6e6 !important;
}

/* Boutons modal */
.btn.open-modal,
.btn.btn-secondary.open-modal {
    background-color: #1f3028 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn.open-modal:hover,
.btn.btn-secondary.open-modal:hover {
    background-color: #344a3f !important; /* ou #2d4339 pour un hover plus subtil */
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 48, 40, 0.3);
}

/* Si vous voulez différencier le bouton secondaire */
.btn.btn-secondary.open-modal {
    background-color: #1f3028 !important;
    border: 2px solid #1f3028 !important;
}

.btn.btn-secondary.open-modal:hover {
    background-color: #344a3f !important;
    border-color: #344a3f !important;
}

/* Forcer le style du bouton compte dans le header */
.custom-header .account-icon a,
.custom-header .account-icon a.open-modal {
    background: #1f3028 !important;
    color: #ffffff !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.custom-header .account-icon a:hover,
.custom-header .account-icon a.open-modal:hover {
    background: #344a3f !important;
    color: #ffffff !important;
    transform: scale(1.1);
}

/* S'assurer que l'icône SVG reste blanche */
.custom-header .account-icon a svg,
.custom-header .account-icon a.open-modal svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
    width: 20px;
    height: 20px;
}

.custom-header .account-icon a:hover svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* ========== FEATHER ICONS HOMEPAGE ========== */
/* Icône compte dans header */
.account-icon [data-feather] {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
}

.account-icon a:hover [data-feather] {
    stroke-width: 2.5;
}

/* Features checks - remplacer le ✓ */
.feature h4:before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
}

.feature h4 [data-feather] {
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    stroke: var(--accent);
}

/* Hero avec votre nouvelle image en background */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('https://auryagroup.com/wp-content/uploads/2025/08/hero-home-scaled.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    height: 70vh !important;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 80px;
}

/* Supprimer la div hero-image du HTML car on utilise l'image en background */
.hero-image {
    display: none;
}


/* ✅ FORCE MODAL BACKGROUND - VERSION COMPLÈTE */
.modal-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    z-index: 10000 !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-overlay[style*="display: flex"] {
    display: flex !important;
}

.modal-content {
    background-color: #fefdf8 !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3) !important;
    max-width: 500px !important;
    width: 90% !important;
    margin: auto !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.modal-header {
    background: #2c5530 !important;
    color: white !important;
    padding: 30px !important;
    border-radius: 15px 15px 0 0 !important;
    text-align: center !important;
    position: relative !important;
}

.modal-header h3 {
    margin: 0 !important;
    font-size: 1.8rem !important;
    font-weight: 400 !important;
    color: white !important;
}

.modal-header .logo {
    font-size: 1.2rem !important;
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    color: white !important;
}

.close-modal {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    padding: 5px !important;
    border-radius: 50% !important;
    transition: 0.3s !important;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.modal-body {
    padding: 40px !important;
    overflow-y: auto !important;
    flex: 1 !important;
    background: #fefdf8 !important;
}

.form-group {
    margin-bottom: 20px !important;
}

.form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    color: #333333 !important;
    font-weight: 500 !important;
}

.form-group input {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    transition: border-color 0.3s !important;
    box-sizing: border-box !important;
    background: white !important;
}

.form-group input:focus {
    outline: none !important;
    border-color: #2c5530 !important;
}

.modal-btn {
    width: 100% !important;
    padding: 15px !important;
    background: #2c5530 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    margin-bottom: 15px !important;
}

.modal-btn:hover {
    background: #1f3329 !important;
}

.switch-mode {
    text-align: center !important;
    color: #666666 !important;
    font-size: 0.9rem !important;
    margin-top: 10px !important;
}

.switch-mode a {
    color: #2c5530 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.switch-mode a:hover {
    text-decoration: underline !important;
}

.error-message {
    background: #f8d7da !important;
    color: #721c24 !important;
    padding: 10px !important;
    border-radius: 5px !important;
    margin-bottom: 15px !important;
    font-size: 0.9rem !important;
}

.success-message {
    background: #d4edda !important;
    color: #155724 !important;
    padding: 10px !important;
    border-radius: 5px !important;
    margin-bottom: 15px !important;
    font-size: 0.9rem !important;
}

/* Prevent body scroll when modal open */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px !important;
        width: calc(100% - 40px) !important;
        max-height: calc(100vh - 40px) !important;
    }
    
    .modal-body {
        padding: 25px !important;
        max-height: calc(100vh - 200px) !important;
        overflow-y: auto !important;
    }
    
    .modal-header {
        padding: 20px !important;
    }
    
    .modal-header h3 {
        font-size: 1.5rem !important;
    }
}

.form-help {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}