/* 
    Rire En Breizh - Design System 
    Modern, Clean, and Optimized for Performance
*/

:root {
    --color-primary: #D69038; /* Nouveau Orange titres */
    --color-primary-hover: #bf7329;
    --color-secondary: #000000; /* Noir pour les titres hors accueil si besoin */
    --color-secondary-light: #34495e;
    --bg-cream: #fcf4e4; /* Nouveau fond derrière motif */
    --bg-white: #ffffff;
    --text-main: #2c3e50;
    --text-light: #7f8c8d;
    --text-white: #ffffff;
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

button, .btn-submit, .btn-placeholder, .btn-dark, .main-nav a {
    font-family: var(--font-title);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Header */
header {
    background-color: var(--bg-white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #f4f4f4;
}

.nav-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 80px;
}

.logo img {
    height: 65px;
    z-index: 1001; /* Pour rester au-dessus du menu mobile */
    position: relative;
}

/* Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.main-nav ul {
    display: flex;
    gap: 60px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 700;
    color: #95a5a6;
    letter-spacing: 1px;
}

.main-nav a.active, .main-nav a:hover {
    color: #7f8c8d;
}

/* Button Unification */
.btn-dark, .btn-submit, .btn-placeholder {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    text-align: center;
}

.btn-dark {
    background-color: #333;
    color: white;
}

.btn-dark:hover {
    background-color: #555;
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px; /* Rapprochement du titre */
    color: var(--color-primary);
}

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

/* Program Section */
.program-section {
    background-color: var(--bg-cream);
    background-image: url('moTIF_edited_edited.webp');
    background-size: 1600px;
    background-repeat: repeat;
    padding: 60px 0; /* Padding réduit pour remonter le tout */
}

.program-card {
    background-color: #1B2548;
    max-width: 480px; /* Un peu plus petit */
    margin: 0 auto;
    padding: 30px;
    border-radius: 50px; /* Légèrement réduit aussi */
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.poster-container {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.poster-container img {
    width: 100%;
}

.reservation-area {
    margin-top: 40px; /* Beaucoup plus d'espace pour le bouton */
    display: flex;
    justify-content: center;
}

.btn-placeholder {
    padding: 12px 28px; /* Taille réduite et proportionnée */
    background-color: var(--color-primary);
    color: white;
    font-size: 1rem; /* Typo plus standard */
    font-weight: 700; /* Epaisseur adoucie */
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Ombre plus délicate */
    transition: var(--transition);
}

.btn-placeholder:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Humorists Section */
.humorists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.humorist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.portrait {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 5px solid var(--bg-cream);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.humorists-section h3 {
    font-size: 1.2rem;
    color: var(--color-secondary);
}

/* Bio Section */
.bg-light {
    background-color: #f9f9f9;
}

.bio-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.bio-visual {
    flex: 1;
    max-width: 400px;
}

.bio-visual img {
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.bio-content {
    flex: 1.5;
}

.bio-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

.bio-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Contact Form */
.contact-form-card {
    background-color: var(--bg-white); /* Fond blanc plus propre */
    padding: 50px;
    border-radius: 20px;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); /* Ombre douce */
    border: 1px solid #eee;
}

.contact-form-card h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary); /* Titre en orange */
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    padding: 15px; /* Plus d'espace intérieur */
    border-radius: 8px;
    border: 1px solid #ddd; /* Bordure fine */
    font-size: 1rem;
    background-color: #f9f9f9;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group textarea {
    resize: none; /* Empêche le redimensionnement du champ Message */
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary); /* Bordure orange au clic */
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(214, 144, 56, 0.1); /* Halo orange */
}

.form-group:nth-child(4) { /* Message takes 1 col on mobile, let's span it on grid */
    grid-column: 2;
    grid-row: 2 / span 2;
}

.form-group:nth-child(5) {
    grid-column: 1;
    grid-row: 3;
}

.btn-submit {
    display: block;
    width: 200px;
    margin: 40px auto 0;
    /* Hérite du padding, font-weight, etc. des styles unifiés plus haut */
    background-color: var(--color-primary);
    color: white;
}

.btn-submit:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Footer Styling */
footer {
    padding: 60px 0 20px;
    background-color: white;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 80px;
}

.footer-info p {
    margin-bottom: 5px;
    color: var(--text-light);
}

.social-links {
    margin-top: 15px;
}

.facebook-icon {
    color: #1877F2;
    transition: transform 0.3s ease;
    display: inline-block;
}

.facebook-icon:hover {
    transform: scale(1.2);
}

.mentions {
    text-align: center;
    font-size: 0.8rem;
}

.mentions a {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 5px 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .bio-container {
        flex-direction: column;
        text-align: center;
    }
    
    .bio-visual {
        max-width: 100%;
    }
}

/* Humorist Bubbles (Home Page Bottom) */
.bubbles-section {
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.bubbles-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.bubble-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 200px;
}

.bubble-portrait {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.bubble-portrait:hover {
    transform: scale(1.05);
}

.bubble-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rectangular Gallery (Humoristes Page) */
.rect-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px 0;
}

.rect-card {
    border: 1px solid #000;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.rect-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.85); /* Navy transparent plus élégant */
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.rect-card:hover .rect-overlay {
    transform: translateY(0);
}

.overlay-content {
    text-align: center;
}

.overlay-content h3 {
    font-size: 1.3rem;
    margin: 0;
    color: white;
    font-family: var(--font-title);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
}

.rect-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.rect-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

/* Artist Individual Page Layout */
.artist-hero {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding: 60px 0;
}

.artist-visual {
    flex: 1;
}

.artist-visual img {
    width: 100%;
    border-radius: 5px;
}

.artist-info {
    flex: 1.2;
}

.artist-info h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: #000;
}

.artist-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Video Section for Artist Page */
.video-placeholder-container {
    display: none !important; /* Masqué temporairement */
    margin: 60px 0;
    background-color: #0d2c33;
    padding: 40px;
    border-radius: 10px;
    /* display: flex; a été retiré par le none */
    justify-content: center;
}

.video-placeholder-img {
    max-width: 600px;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.video-placeholder-img:hover {
    filter: brightness(1.2);
}

/* Contact Page specific */
.contact-page-main {
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 80px 0; /* Espacement rajouté ici */
}

/* Responsive fixes */
@media (max-width: 992px) {
    .artist-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .rect-gallery {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile (Smartphones) */
@media (max-width: 768px) {
    /* Header & Burger Menu */
    .nav-container {
        justify-content: space-between;
    }

    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-white);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
    }

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

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .main-nav a {
        font-size: 1.5rem;
    }

    /* Typography */
    .section-title {
        font-size: 2rem;
    }

    .artist-info h1 {
        font-size: 2.2rem;
    }

    /* Program Card */
    .program-section {
        padding: 40px 0;
    }

    .program-card {
        padding: 20px;
        border-radius: 30px;
    }

    /* Contact Form */
    .contact-form-card {
        padding: 30px 20px;
    }

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

    .form-group:nth-child(4), .form-group:nth-child(5) {
        grid-column: 1;
        grid-row: auto;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}
