/* ========================================
   Centre Kiné de Perlé - Stylesheet
   Design moderne et sobre
   ======================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs principales - tons bleu-vert santé/confiance */
    --primary-color: #2c7873;
    --primary-dark: #1f5450;
    --primary-light: #4a9b96;
    --secondary-color: #5ba199;
    --accent-color: #7ec4bc;

    /* Couleurs neutres */
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e1e8ed;

    /* Typographie */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    --font-size-base: 16px;
    --line-height: 1.6;

    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text-dark);
    background-color: var(--bg-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* === HEADER === */
.site-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    position: relative;
}

.logo {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: -0.3px;
}

.logo:hover {
    color: var(--primary-color);
}

/* === NAVIGATION === */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    align-items: center;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-nav a::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1rem;
    color: var(--primary-color);
}

.nav-home::before { content: "\f015"; } /* home */
.nav-team::before { content: "\f0c0"; } /* users */
.nav-atelier::before { content: "\f06e"; } /* eye */
.nav-contact::before { content: "\f095"; } /* phone */

.main-nav a:hover {
    background-color: var(--bg-light);
    color: var(--primary-dark);
}

/* === MENU BURGER (Mobile) === */
.menu-toggle {
    display: none;
}

.menu-burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.4rem;
    z-index: 1001;
}

.menu-burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation burger -> X */
.menu-toggle:checked + .menu-burger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle:checked + .menu-burger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle:checked + .menu-burger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === HERO SECTION === */
.hero {
    background-color: var(--bg-light);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.hero-message {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto var(--spacing-sm);
    line-height: 1.7;
}

.hero-languages {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* === SECTIONS === */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

/* === ÉQUIPE CARDS === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center 20%;
}

.team-card-content {
    padding: var(--spacing-md);
}

.team-card h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.team-specialties {
    list-style: none;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.team-specialties li {
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.team-specialties li::before {
    content: "• ";
    color: var(--primary-color);
    font-weight: bold;
}

.team-phone {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
}

/* === PROFILS DÉTAILLÉS === */
.profiles {
    background-color: var(--bg-light);
}

.profile {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 100px;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.profile-header {
    grid-column: 1 / -1;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.profile h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.profile-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.profile-left h3,
.profile-right h3 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.profile ul {
    margin-left: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.profile li {
    margin-bottom: 0.3rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.profile p {
    margin-bottom: var(--spacing-xs);
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.profile strong {
    color: var(--primary-dark);
}

.contact-info {
    background-color: var(--bg-light);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-xs);
}

.contact-info p {
    margin-bottom: 0.25rem;
}

.specialties-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
}

.specialty-tag {
    background-color: var(--bg-light);
    color: var(--primary-dark);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

/* === GALERIE === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-sm);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* === CONTACT SECTION === */
.contact-section {
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.contact-info-box {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-info-box h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    text-align: center;
}

.contact-section-block {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.contact-section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-address {
    text-align: center;
}

.contact-atelier {
    text-align: center;
}

.contact-info-box p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.contact-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.contact-list li {
    padding: var(--spacing-xs);
    color: var(--text-light);
}

.contact-list strong {
    color: var(--primary-dark);
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: var(--spacing-md);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* === FOOTER === */
.site-footer {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-content p {
    margin: 0;
}

.footer-content a {
    color: var(--accent-color);
    font-weight: 500;
}

.footer-content a:hover {
    color: var(--bg-white);
}

/* === ATELIER BEAUTÉ PAGE === */
.atelier-hero {
    background: linear-gradient(135deg, #7ff07b 0%, #c9a961 100%);
    color: var(--bg-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.atelier-hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.atelier-content {
    max-width: 800px;
    margin: 0 auto;
}

.atelier-logo {
    max-width: 400px;
    margin: var(--spacing-lg) auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.atelier-description {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-md);
}

.atelier-description p {
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
    color: var(--text-light);
}

/* === RESPONSIVE === */

/* Tablettes */
@media (max-width: 768px) {
    :root {
        --font-size-base: 15px;
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

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

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .profile-content {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .contact-list {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile UNIQUEMENT (480px et moins) */
@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
        --spacing-md: 1rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-message {
        font-size: 0.95rem;
    }

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

    /* === MENU BURGER (MOBILE UNIQUEMENT) === */

    /* Afficher le burger */
    .menu-burger {
        display: flex !important;
    }

    /* Cacher le menu par défaut */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    /* Afficher le menu quand burger cliqué */
    .menu-toggle:checked ~ .main-nav {
        max-height: 400px;
        padding: var(--spacing-sm) 0;
    }

    /* Style du menu mobile */
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

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

    .main-nav a {
        display: flex;
        justify-content: center;
        padding: var(--spacing-sm);
        width: 100%;
    }

    .main-nav a:hover {
        background-color: var(--bg-light);
    }

    /* Autres styles mobile */
    .team-grid {
        grid-template-columns: 1fr;
    }

    .profile-content {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-list {
        grid-template-columns: 1fr;
    }

    .team-card-img {
        height: 250px;
    }

    .profile {
        padding: var(--spacing-sm);
    }

    .map-container iframe {
        height: 300px;
    }
}

/* Print styles */
@media print {
    .site-header,
    .main-nav,
    .btn,
    .site-footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}
