/* responsive.css - IKAOA - Corrections globales & responsive */

/* ===== GLOBAL FIXES ===== */

/* Text justify for paragraphs */
p {
    text-align: justify;
}

/* Center titles globally */
.section-title,
h2.section-title {
    text-align: center;
}

/* Card content text stays left-aligned for readability */
.card-content p,
.service-card p {
    text-align: justify;
}

/* Body scroll lock when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* ===== HOMEPAGE: Center filiale logos ===== */
.card-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== HOMEPAGE: Align "Découvrir" buttons ===== */
.filiale-card {
    display: flex;
    flex-direction: column;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content p {
    flex: 1;
}

.card-link {
    margin-top: auto;
}

/* ===== FILIALE PAGES: Intro Text spacing ===== */

.filiale-intro .intro-text p {
    text-align: justify;
}

/* ===== ABOUT: "Voir plus" Collapsed Text ===== */
.expandable-text {
    max-height: 120px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

.expandable-text.expanded {
    max-height: 2000px;
}

.expandable-text:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

.btn-voir-plus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    margin-top: 15px;
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 3px;
}

.btn-voir-plus:hover {
    background: var(--gold);
    color: var(--white);
}

.btn-voir-plus .arrow-icon {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.btn-voir-plus.expanded .arrow-icon {
    transform: rotate(180deg);
}

/* ===== CONTACT PAGE: Base + Responsive ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-section input,
.contact-section textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.contact-section input:focus,
.contact-section textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* ===== HAMBURGER MENU BASE STYLES ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 24px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--black);
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu-toggle span:nth-child(1) {
    top: 2px;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 2px;
}

/* Hamburger animation to X */
.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .section-padding {
        padding: 100px 0;
    }

    /* Homepage */
    .hero-title {
        font-size: 4rem;
    }

    .hero-filiale {
        height: 60vh;
    }

    .hero-filiale .hero-content img {
        max-width: 320px;
    }

    .filiales-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Vision section */
    .vision-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vision-image {
        order: -1;
    }

    /* Filiale detail */
    .filiale-detail .filiale-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .filiale-intro .intro-image {
        order: -1;
    }

    .filiale-intro .intro-image img {
        max-width: 250px;
    }

    /* Process steps */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact page grid */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 30px;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Locations */
    .locations-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section-padding {
        padding: 80px 0;
    }

    /* ===== MOBILE NAVIGATION ===== */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        padding: 100px 30px 40px;
        gap: 0;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Overlay behind the menu */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        z-index: -1;
    }

    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu>li>a {
        color: var(--black) !important;
        font-size: 1rem;
        font-weight: 500;
        padding: 16px 0;
        display: block;
        letter-spacing: 1px;
    }

    .nav-menu>li>a::after {
        display: none !important;
    }

    .nav-menu>li>a:hover,
    .nav-menu>li>a.active {
        color: var(--gold) !important;
    }

    /* Mobile dropdown */
    .dropdown .dropdown-menu {
        display: none;
        /* Changé : au lieu de opacity/visibility/max-height */
        position: static;
        transform: none;
        box-shadow: none;
        min-width: auto;
        padding: 0;
        background: transparent;
    }

    .dropdown.open .dropdown-menu {
        display: block;
        /* Affiché */
        padding: 5px 0 10px 15px;
    }

    .dropdown .dropdown-menu li {
        border-bottom: none;
    }

    .dropdown .dropdown-menu li a {
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
        color: var(--gray) !important;
    }

    .dropdown .dropdown-menu li a:hover,
    .dropdown .dropdown-menu li a.active {
        color: var(--gold) !important;
        padding-left: 20px !important;
    }

    .dropdown-arrow {
        float: right;
        transition: transform 0.3s ease;
    }

    .dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* ===== MOBILE LAYOUT FIXES ===== */

    /* Hero */
    .hero {
        height: auto;
        min-height: 80vh;
        margin-bottom: 0;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 3px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        text-align: center;
        width: 100%;
    }

    /* Page header */
    .page-header {
        padding: 120px 0 50px;
    }

    .page-header h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 20px;
        gap: 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Filiales grid */
    .filiales-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .filiale-card {
        max-width: 100%;
    }

    .card-image {
        height: 200px;
    }

    .card-content {
        padding: 25px 20px;
    }

    .card-content h3 {
        font-size: 1.2rem;
    }

    /* Section headers */
    .section-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .section-subtitle {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    /* Vision */
    .vision-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .vision-text h2 {
        font-size: 1.8rem;
    }

    .vision-stats {
        flex-wrap: wrap;
        gap: 25px;
    }

    /* Contact CTA */
    .contact-cta {
        padding: 80px 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Filiale detail intro */
    .filiale-detail .filiale-intro {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .filiale-intro .intro-image img {
        max-width: 200px;
    }

    .filiale-intro h2 {
        font-size: 1.6rem;
    }

    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .service-card h3 {
        font-size: 1.15rem;
    }

    /* Process steps */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Contact page */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .contact-info h2 {
        font-size: 1.6rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
        /* Prevents iOS zoom */
    }

    /* About: Geographic section */
    .geographic-presence {
        padding: 40px 20px !important;
        margin-top: 50px !important;
    }

    .geographic-presence h2 {
        font-size: 1.6rem;
    }

    .geo-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* About: Expandable text adjustments */
    .expandable-text {
        max-height: 100px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }

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

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .footer-column h4 {
        font-size: 0.9rem;
    }

    /* Locations */
    .locations-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .location-card {
        padding: 25px !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-content {
        padding: 0 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .filiale-intro h2 {
        font-size: 1.3rem;
    }

    .filiale-intro p {
        font-size: 1rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .contact-cta {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    /* Contact form */
    .contact-form .btn {
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    /* Vision stats */
    .vision-stats {
        justify-content: center;
    }

    .vision-stat {
        text-align: center;
    }

    /* Location cards */
    .location-card h3 {
        font-size: 1.2rem !important;
    }
}