/* ============================================================
   CONTACT.CSS - CABINET AZARKANE
   Version complète avec tous les styles
   ============================================================ */

/* ============================================
   BANNIÈRE DE PAGE
   ============================================ */
.page-banner {
    padding: 160px 0 100px;
    margin-top: 50px;
    background: linear-gradient(135deg, rgba(66, 183, 165, 0.1), rgba(200, 147, 162, 0.1));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 400px;
}

.page-banner-content {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #2c3e50;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
    padding: 0 20px;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: block;
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 20px auto 0;
    border-radius: 2px;
    animation: lineGrow 0.8s ease-out 0.3s both;
}

.page-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #4a5568 !important;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    flex-wrap: wrap;
    padding: 0 20px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb i {
    color: var(--gray-2);
    font-size: 0.8rem;
}

.breadcrumb span {
    color: var(--gray-3);
    font-weight: 500;
}

.page-banner-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    color: var(--white);
    z-index: 1;
}

/* ============================================
   SECTION WHATSAPP CONTACT
   ============================================ */
.whatsapp-contact {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(66, 183, 165, 0.05), rgba(200, 147, 162, 0.05));
}

.whatsapp-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 80px 1fr 320px;
    border: 1px solid rgba(66, 183, 165, 0.08);
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.whatsapp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    z-index: 2;
}

.whatsapp-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.whatsapp-icon i {
    font-size: 3rem;
    color: var(--white);
}

.whatsapp-content {
    padding: 30px 35px;
    border-left: 1px solid rgba(66, 183, 165, 0.08);
    border-right: 1px solid rgba(66, 183, 165, 0.08);
}

.whatsapp-content h2 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 12px;
    text-align: center;
    font-family: var(--font-heading);
}

.whatsapp-description {
    color: var(--gray-3);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.whatsapp-number {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.05), rgba(203, 150, 167, 0.05));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(66, 183, 165, 0.08);
    position: relative;
}

.whatsapp-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #25D366, #CB96A7);
}

.number-display {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(37, 211, 102, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.number-display:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.15);
}

.number-display i {
    color: #25D366;
    font-size: 1.2rem;
}

.number-display span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    font-family: var(--font-heading);
}

.number-note {
    color: var(--gray-3);
    font-size: 0.8rem;
    margin-top: 8px;
}

.whatsapp-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    margin: 15px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-3);
    font-size: 0.85rem;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.feature:hover {
    background: rgba(37, 211, 102, 0.05);
}

.feature i {
    color: #25D366;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.whatsapp-action {
    text-align: center;
    margin-top: 20px;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.25);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s;
}

.btn-whatsapp:hover::before {
    left: 100%;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.35);
    background: linear-gradient(135deg, #20c95a, #20c95a);
}

.whatsapp-info {
    padding: 30px 25px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.02), rgba(203, 150, 167, 0.02));
    display: flex;
    flex-direction: column;
}

.whatsapp-info h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 15px;
    text-align: center;
    font-family: var(--font-heading);
}

.schedule {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 15px 18px;
    margin-bottom: 20px;
    border: 1px solid rgba(66, 183, 165, 0.08);
    position: relative;
}

.schedule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #25D366, #CB96A7);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(66, 183, 165, 0.1);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item .day {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.schedule-item .hours {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.whatsapp-qr {
    text-align: center;
    margin-top: 10px;
}

.whatsapp-qr h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.qr-code-container {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(66, 183, 165, 0.08);
    position: relative;
    max-width: 200px;
    margin: 0 auto;
}

.qr-code-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #CB96A7, #25D366);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.qr-code-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.qr-code-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qr-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--gray-3);
    font-size: 0.8rem;
    gap: 8px;
    transition: opacity 0.5s ease;
}

.qr-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.qr-loading i {
    font-size: 1.5rem;
    color: var(--primary);
}

.qr-note {
    color: var(--gray-3);
    font-size: 0.75rem;
    margin-top: 8px;
}

/* ============================================
   SECTION INFORMATION PRATIQUE
   ============================================ */
.practical-info {
    padding: 80px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    font-family: var(--font-heading);
}

.section-header .section-title .highlight {
    color: var(--primary);
}

.section-header .section-description {
    color: var(--gray-3);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 10px auto 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 35px 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(66, 183, 165, 0.1);
    transition: all var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.info-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, rgba(66, 183, 165, 0.12), rgba(200, 147, 162, 0.12));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--primary);
    font-size: 1.6rem;
    transition: all var(--transition-normal);
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.info-card h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.info-content {
    color: var(--gray-3);
    line-height: 1.7;
    font-size: 0.95rem;
}

.info-content p {
    margin-bottom: 6px;
}

.info-content strong {
    color: var(--dark);
    font-weight: 600;
}

.info-list {
    list-style: none;
    text-align: left;
    margin-top: 12px;
    padding: 0;
}

.info-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    color: var(--gray-3);
    font-size: 0.9rem;
}

.info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================
   SECTION FAQ WHATSAPP
   ============================================ */
.whatsapp-faq {
    padding: 80px 0;
    background-color: var(--light-1);
}

.faq-grid {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(66, 183, 165, 0.08);
    transition: all var(--transition-normal);
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: 0.6;
}

.faq-item:hover {
    border-color: rgba(66, 183, 165, 0.2);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 20px 30px 20px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    position: relative;
}

.faq-question:hover {
    background-color: rgba(66, 183, 165, 0.04);
}

.faq-question h4 {
    font-size: 1.05rem;
    color: var(--dark);
    margin: 0;
    flex: 1;
    font-weight: 600;
    font-family: var(--font-heading);
    padding-right: 15px;
}

.faq-question i {
    color: var(--primary);
    font-size: 0.9rem;
    transition: transform var(--transition-fast);
    margin-left: 15px;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 30px 22px 35px;
    color: var(--gray-3);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

.faq-item.active .faq-question {
    background-color: rgba(66, 183, 165, 0.05);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineGrow {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100px;
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablettes */
@media (max-width: 1100px) {
    .whatsapp-card {
        grid-template-columns: 70px 1fr 280px;
    }
}

@media (max-width: 992px) {
    .whatsapp-card {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .whatsapp-icon {
        padding: 15px;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    
    .whatsapp-icon i {
        font-size: 2.5rem;
    }
    
    .whatsapp-content {
        padding: 25px;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid rgba(66, 183, 165, 0.08);
    }
    
    .whatsapp-info {
        padding: 25px;
    }
    
    .whatsapp-features {
        grid-template-columns: 1fr 1fr;
    }
    
    .qr-code-container {
        max-width: 180px;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    .page-banner {
        padding: 140px 0 80px;
        margin-top: 120px;
        min-height: 280px;
    }

    .page-title {
        margin-top: 70px;
        font-size: clamp(2rem, 4vw, 2.5rem);
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .whatsapp-contact {
        padding: 60px 0;
    }
    
    .whatsapp-content h2 {
        font-size: 1.5rem;
    }
    
    .whatsapp-description {
        font-size: 0.9rem;
    }
    
    .number-display span {
        font-size: 1.3rem;
    }
    
    .btn-whatsapp {
        padding: 12px 25px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .qr-code-container {
        max-width: 160px;
    }

    .practical-info {
        padding: 60px 0;
    }
    
    .section-header .section-title {
        font-size: 2rem;
    }
    
    .section-header .section-description {
        font-size: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
        gap: 18px;
    }
    
    .info-card {
        padding: 28px 22px;
    }
    
    .info-card h3 {
        font-size: 1.2rem;
    }
    
    .info-content {
        font-size: 0.9rem;
    }
    
    .whatsapp-faq {
        padding: 60px 0;
    }
    
    .faq-question {
        padding: 16px 20px 16px 25px;
    }
    
    .faq-question h4 {
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 0 20px 18px 25px;
        font-size: 0.9rem;
    }
}

/* Petits mobiles */
@media (max-width: 576px) {
    .page-banner {
        padding: 120px 0 60px;
        min-height: 220px;
    }
    
    .page-title {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
        margin-top: 70px;
    }
    
    .page-title::after {
        width: 80px;
        margin-top: 15px;
    }
    
    .whatsapp-content {
        padding: 20px;
    }
    
    .whatsapp-content h2 {
        font-size: 1.3rem;
    }
    
    .whatsapp-number {
        padding: 15px;
        margin: 15px 0;
    }
    
    .number-display {
        padding: 8px 16px;
        flex-direction: column;
        gap: 5px;
    }
    
    .number-display span {
        font-size: 1.1rem;
    }
    
    .whatsapp-features {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .feature {
        font-size: 0.8rem;
        padding: 4px 6px;
    }
    
    .whatsapp-info {
        padding: 20px;
    }
    
    .whatsapp-info h3 {
        font-size: 1.1rem;
    }
    
    .schedule-item {
        font-size: 0.85rem;
        padding: 6px 0;
    }
    
    .schedule-item .day,
    .schedule-item .hours {
        font-size: 0.8rem;
    }
    
    .qr-code-container {
        max-width: 140px;
        padding: 12px;
    }
    
    .qr-note {
        font-size: 0.7rem;
    }
}

/* Très petits mobiles */
@media (max-width: 400px) {
    .whatsapp-content h2 {
        font-size: 1.1rem;
    }
    
    .number-display span {
        font-size: 1rem;
    }
    
    .btn-whatsapp {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .qr-code-container {
        max-width: 120px;
    }
}

/* ============================================
   IPHONE SAFE AREA
   ============================================ */
@supports (-webkit-touch-callout: none) {
    .page-banner {
        padding-top: calc(140px + env(safe-area-inset-top)) !important;
    }
}

/* ============================================
   INPUT FIX IPHONE
   ============================================ */
input, select, textarea {
    font-size: 16px !important;
    -webkit-appearance: none;
    appearance: none;
}

/* ============================================
   MODE RÉDUCTION DES MOUVEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .page-title,
    .page-subtitle,
    .breadcrumb,
    .page-title::after {
        animation: none !important;
    }
}