:root {
    --primary-cyan: #22c7ff;
    --primary-green: #70e000;
    --dark-blue: #073b4c;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: #333;
    line-height: 1.6;
}




/* ==================== MAIN ==================== */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 500px;
}

h2 {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

h2 i, h2 svg {
    color: var(--dark-blue);
}

/* ==================== QUI SOMMES-NOUS ==================== */
.hero-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
    border-left: 6px solid var(--primary-cyan);
}

.hero-section p {
    font-size: 1.15rem;
    color: #4a5568;
    margin-bottom: 15px;
}

/* ==================== GALERIE AVANT/APRÈS ==================== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.media-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed);
}

.media-card:hover {
    transform: translateY(-5px);
}

.media-card h3 {
    padding: 15px;
    background: var(--dark-blue);
    color: white;
    font-size: 1.1rem;
    text-align: center;
}

.split-view {
    display: flex;
    background: #e2e8f0;
}

.image-container {
    width: 50%;
    position: relative;
}

.image-container img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.badge-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== PRESTATIONS ==================== */
.prest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.prest-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
    border-top: 4px solid var(--primary-cyan);
    transition: transform var(--transition-speed);
}

.prest-card:hover {
    transform: translateY(-5px);
}

.prest-card i, .prest-card svg {
    font-size: 2.5rem;
    color: var(--primary-cyan);
    margin-bottom: 15px;
}

.prest-card h4 {
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* ==================== VIDÉOS ==================== */
.video-showcase {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.video-box video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: #000;
}

.video-box p {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

/* ==================== DEVIS ==================== */
.devis-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .devis-container { grid-template-columns: 1fr; }
}

.panel-inputs, .panel-outputs {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.account-box {
    background: #edf2f7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-cyan);
}

.account-box h4 {
    margin-bottom: 12px;
    color: var(--dark-blue);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

@media(max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-blue);
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.form-group select:focus,
.form-group input:focus {
    border-color: var(--primary-cyan);
}

.options-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}

@media(max-width: 500px) {
    .options-list { grid-template-columns: 1fr; }
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

.panel-outputs {
    background: var(--dark-blue);
    color: white;
    position: sticky;
    top: 90px;
    height: fit-content;
}

.panel-outputs h3 {
    color: var(--primary-cyan);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.bill-row.discount {
    color: var(--primary-green);
    font-weight: 600;
}

.bill-total {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 2px dashed rgba(255,255,255,0.2);
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
}

.minimum-alert {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 15px;
    text-align: center;
    display: none;
}

.btn-pdf {
    width: 100%;
    background: linear-gradient(90deg, var(--primary-cyan), #0077b6);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-pdf:hover {
    opacity: 0.9;
}

.conditions-notice {
    margin-top: 20px;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* ==================== FAQ ==================== */
.faq-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
}

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: #4a5568;
    font-size: 0.95rem;
    margin-top: 0;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    margin-top: 10px;
}

.faq-trigger i {
    transition: transform 0.3s;
}

.faq-item.open .faq-trigger i {
    transform: rotate(180deg);
}

/* ==================== MENTIONS LÉGALES ==================== */
.legal-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h3 {
    color: var(--dark-blue);
    margin-bottom: 12px;
    font-size: 1.3rem;
}
.legal-section h4 {
    color: var(--dark-blue);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    border-left: 3px solid var(--primary-cyan);
    padding-left: 10px;
}
/* ==================== STYLES POUR LES CONDITIONS GÉNÉRALES ==================== */
.legal-section h4 {
    color: var(--dark-blue);
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    border-left: 4px solid var(--primary-cyan);
    padding-left: 12px;
}

.legal-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #4a5568;
    font-size: 0.95rem;
}

.legal-section p {
    margin-bottom: 12px;
    line-height: 1.6;
}
.legal-section p, .legal-section li {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 8px;
}



/* ==================== RAJOUTS ESPACE CLIENT DYNAMIQUE ==================== */
.profile-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}

.radio-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark-blue);
    cursor: pointer;
}

.radio-profile input[type="radio"] {
    accent-color: var(--primary-cyan);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#champs_professionnels {
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-cyan);
    padding-left: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Indicateur visuel pour le champ ville bloqué (remplissage automatique) */
input[readonly] {
    background-color: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}
/* ==================== FORMULAIRE ÉVOLUTIF DYNAMIQUE ==================== */
.profile-selector {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    background: #ffffff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.radio-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark-blue);
    cursor: pointer;
    flex: 1;
}

.radio-profile input[type="radio"] {
    accent-color: var(--primary-cyan);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#champs_professionnels {
    border-left: 4px solid var(--primary-cyan);
    padding-left: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
}

input[readonly] {
    background-color: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}
/* ============================================
   MODALES D'AUTHENTIFICATION
   ============================================ */

.modal-auth {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-auth-content {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    color: #333;
}

/* Modale inscription plus large */
#modalInscription .modal-auth-content {
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-auth-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
}

.modal-auth-close:hover {
    color: #333;
}

.modal-auth h3 {
    margin-top: 0;
    color: #0d47a1;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.modal-auth-form {
    margin-top: 15px;
}

.modal-auth-form > div {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.modal-auth-form label {
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 4px;
    color: #4a5568;
}

.modal-auth-form input[type="text"],
.modal-auth-form input[type="email"],
.modal-auth-form input[type="password"],
.modal-auth-form input[type="tel"] {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.95rem;
}

.btn-modal-action {
    width: 100%;
    background-color: #0091ea;
    color: white;
    border: none;
    padding: 12px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-modal-action:hover {
    background-color: #0077b6;
}

.modal-links {
    margin-top: 15px;
    font-size: 0.85rem;
    text-align: center;
}

.modal-links a {
    color: #0091ea;
    text-decoration: none;
    margin: 0 5px;
}

.modal-links a:hover {
    text-decoration: underline;
}

/* Champs professionnels */
#champs_pro_specifiques {
    display: none;
    background: #f0f4f8;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #0091ea;
}

/* Toggle mot de passe */
.toggle-password-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #0091ea;
    font-size: 0.9em;
}

/* Force du mot de passe */
#pwd_strength_msg {
    font-size: 0.85em;
    margin-top: 5px;
}

/* ============================================================
   RESPONSIVE MOBILE — Site public Hygiatex
   ============================================================ */
@media (max-width: 640px) {

    /* Titres moins gros */
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }

    /* Main moins de marge */
    main { margin: 20px auto; padding: 0 12px; }

    /* Sections moins de padding */
    .hero-section,
    .legal-box,
    .faq-section,
    .video-showcase,
    .panel-inputs,
    .panel-outputs { padding: 20px 15px; }

    /* Galerie avant/après : passage en colonne */
    .media-grid { grid-template-columns: 1fr; gap: 20px; }
    .split-view { flex-direction: column; }
    .image-container { width: 100%; }
    .image-container img { height: auto; max-height: 260px; }

    /* Services en 1 colonne */
    .prest-grid { grid-template-columns: 1fr; gap: 15px; }

    /* Devis : déjà géré par tarifs.css et style.css */

    /* FAQ */
    .faq-trigger { font-size: 0.95rem; }

    /* Modales : padding reduit */
    .modal-auth-content { padding: 20px 15px; }
}