/* =========================================================================
   STYLE CENTRALISÉ — ALEXANDRE SIMON ART
   Architecture : sidebar gauche fixe + zone contenu droite
   ========================================================================= */

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #fafafa;
    color: #1a1a1a;
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    display: flex;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================================================
   SIDEBAR GAUCHE FIXE
   ========================================================================= */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 220px;
    height: 100vh;
    background: #fff;
    border-right: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-logo {
    margin-bottom: 50px;
}
.sidebar-logo .logo-img {
    width: 100%;
    max-width: 250px;
    height: auto;
}
.sidebar-logo h1 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.4;
    color: #1a1a1a;
}
.sidebar-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4d4d4d;
    margin-top: 8px;
    text-align: center;
    width: 100%;
}

.sidebar-instagram-link { transition: color 0.2s ease, opacity 0.2s ease; }
.sidebar-instagram-link:hover { opacity: 0.6; }

.sidebar nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sidebar nav ul li a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    display: block;
    padding: 6px 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
    transition: color 0.2s, border-color 0.2s;
}
.sidebar nav ul li a:hover { color: #1a1a1a; }
.sidebar nav ul li a.active {
    color: #1a1a1a;
    font-weight: 700;
    border-left-color: #1a1a1a;
}

/* =========================================================================
   ZONE CONTENU PRINCIPALE
   ========================================================================= */
.page-wrapper {
    margin-left: 220px;
    width: calc(100% - 220px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- INTRO SECTION (toutes les pages internes) --- */
.intro-section {
    padding: 60px 50px 40px 50px;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
}
.page-title {
    font-size: 2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: #1a1a1a;
}
.page-subtitle {
    font-size: 1.1rem;
    color: #444;
    font-weight: 300;
    line-height: 1.7;
}

.main-content {
    padding: 50px;
    flex: 1;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
    color: #1a1a1a;
}
.galeries-intro-texte {
    font-size: 1rem;
    color: #444;
    line-height: 1.75;
    max-width: 780px;
    margin: -20px 0 40px 0;
}

/* --- HERO ACCUEIL --- */
.hero {
    position: relative;
    height: 60vh;
    min-height: 350px;
    background: url('images-new/digital-art/la-boutinardiere.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    background: rgba(255,255,255,0.92); padding: 35px 45px;
    border: 1px solid #eaeaea; max-width: 560px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.hero-content h2 {
    font-size: 1.8rem; font-weight: 400;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px;
}
.hero-content p { font-size: 1rem; font-weight: 300; color: #555; }

/* --- QUINCONCE --- */
.quinconce-container, .home-quinconce {
    padding: 0;
}
.quinconce-row {
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 50px;
    margin-bottom: 0;
}
.quinconce-row:nth-child(even) { flex-direction: row-reverse; }

/* Alternance de teintes de fond des blocs quinconce */
.quinconce-fond-gris { background: #ececec; }
.quinconce-fond-blanc { background: #fff; }

/* Fond gris clair réutilisable pour d'autres sections (ex: intro galeries) */
.bloc-fond-gris { background: #ececec; }

.quinconce-media-link {
    flex: 0 1 56%; display: block; position: relative;
    background: #fff; border: 1px solid #eaeaea;
    padding: 15px; overflow: hidden;
}
.quinconce-img-container {
    position: relative; width: 100%; height: 320px; overflow: hidden;
    flex: 0 1 56%;
}
.quinconce-img-container img {
    width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.4s ease;
}
.quinconce-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease; z-index: 2;
}
.quinconce-overlay-text {
    color: #fff; font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 2px; font-weight: 500;
    border: 1px solid #fff; padding: 8px 18px;
    background: rgba(0,0,0,0.2);
}
.quinconce-media-link:hover .quinconce-overlay { opacity: 1; }
.quinconce-media-link:hover .quinconce-img-container img { transform: scale(1.03); }

.quinconce-text { flex: 1 1 44%; max-width: 460px; }
.quinconce-text h3 {
    font-size: 1.2rem; text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 15px; color: #1a1a1a;
    position: relative; padding-bottom: 8px;
}
.quinconce-text h3::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 40px; height: 2px; background-color: #1a1a1a;
}
.quinconce-text p { color: #333; font-size: 1rem; text-align: justify; margin-bottom: 20px; }

.btn-readmore {
    display: inline-block; padding: 8px 20px;
    border: 1px solid #1a1a1a; font-size: 0.82rem;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
    transition: background 0.3s, color 0.3s;
}
.btn-readmore:hover { background: #1a1a1a; color: #fff; }

/* --- GRILLE ACCUEIL (4 vignettes galeries) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 50px 50px 50px;
}
.gallery-card {
    background: #fff; border: 1px solid #eaeaea;
    padding: 10px; transition: transform 0.3s ease;
}
.gallery-card:hover { transform: translateY(-4px); }
.card-image-wrapper {
    width: 100%; height: 240px;
    overflow: hidden; background: #f0f0f0; margin-bottom: 12px;
}
.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.card-title {
    font-size: 0.82rem; text-transform: uppercase;
    letter-spacing: 1px; font-weight: 600;
    color: #1a1a1a; text-align: center;
}

/* --- CONTACT --- */
.contact-section {
    background: #f5f5f5; padding: 60px 50px;
    border-top: 1px solid #eaeaea;
}
.contact-container { display: flex; gap: 40px; }
.contact-info { flex: 1; }
.contact-form-container {
    flex: 1; background: #fff; padding: 30px; border: 1px solid #eaeaea;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 5px;
    font-size: 0.82rem; font-weight: 600; text-transform: uppercase;
}
.form-group input, .form-group textarea {
    width: 100%; padding: 10px; border: 1px solid #ccc; font-family: inherit;
}
.btn-action {
    background: #1a1a1a; color: #fff; border: none;
    padding: 12px 20px; text-transform: uppercase;
    letter-spacing: 1px; width: 100%; cursor: pointer;
}

/* --- FOOTER --- */
footer {
    background: #1a1a1a; color: #888;
    padding: 30px 50px; font-size: 0.82rem;
}
footer a { color: #aaa; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

/* =========================================================================
   PAGE COURS / STAGES
   ========================================================================= */
.cours-photos-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 6px; margin-bottom: 10px;
}
.cours-photo-slot { aspect-ratio: 4/3; background: #f0f0f0; overflow: hidden; }
.cours-photo-slot img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.cours-photo-slot:hover img { transform: scale(1.03); }
.cours-photo-slot.placeholder {
    display: flex; align-items: center; justify-content: center;
}
.cours-photo-slot.placeholder span {
    font-size: 0.72rem; color: #bbb;
    letter-spacing: 0.1em; text-transform: uppercase;
}
.cours-photos-caption {
    font-size: 0.82rem; color: #888; margin-bottom: 50px; font-style: italic;
}
.cours-bloc-texte {
    margin-bottom: 40px;
}
.cours-bloc-texte .section-title {
    font-size: 1.1rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}
.cours-bloc-texte p {
    font-size: 1rem;
    color: #333;
    line-height: 1.75;
}
.cours-tarifs-simple {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 2px; margin-bottom: 5px;
}
.cours-tarif-bloc {
    padding: 28px; background: #fafafa;
    border: 1px solid #eaeaea; border-top: 2px solid #1a1a1a;
}
.cours-tarif-bloc .public {
    font-size: 0.72rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: #888; margin-bottom: 8px;
}
.cours-tarif-bloc .prix {
    font-size: 1.9rem; font-weight: 300;
    color: #1a1a1a; line-height: 1; margin-bottom: 6px;
}
.cours-tarif-bloc .prix span { font-size: 1rem; color: #888; }
.cours-tarif-bloc .prix.prix-texte { font-size: 1.2rem; }
.cours-tarif-bloc .detail {
    font-size: 0.8rem; color: #555; line-height: 1.6; margin-top: 10px;
}
.cours-cta-final {
    text-align: center;
    padding: 8px 0 20px 0;
    margin-top: 0;
}
.cours-cta-final a {
    font-size: 1.6rem;
    font-weight: 300;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 4px;
    transition: opacity 0.2s ease;
}
.cours-cta-final a:hover { opacity: 0.6; }

/* =========================================================================
   RESPONSIVE — MENU HAMBURGER MOBILE
   ========================================================================= */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px; left: 15px;
    z-index: 1100;
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    body { display: block; }

    .menu-toggle { display: block; }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 240px;
    }
    .sidebar.ouvert { transform: translateX(0); }

    .page-wrapper {
        margin-left: 0;
        width: 100%;
        padding-top: 55px;
    }

    .intro-section { padding: 30px 20px; }
    .main-content  { padding: 30px 20px; }
    .quinconce-container, .home-quinconce { padding: 0; }
    .quinconce-row, .quinconce-row:nth-child(even) {
        flex-direction: column; gap: 25px; padding: 30px 20px;
    }
    .quinconce-img-container { height: 240px; }
    .quinconce-text { max-width: 100%; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); padding: 0 20px 30px; }
    .card-image-wrapper { height: 180px; }
    .contact-section { padding: 40px 20px; }
    .contact-container { flex-direction: column; }
    footer { padding: 25px 20px; }
    .cours-photos-grid { grid-template-columns: repeat(2, 1fr); }
    .cours-tarifs-simple { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   SLIDESHOW — PAGE COURS
   ========================================================================= */
/* =========================================================================
   BANNIÈRE STANDARD — utilisée par accueil, cours-stages, bio
   Modifier la hauteur ici pour changer toutes les bannières du site
   ========================================================================= */
.banniere-standard {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #f0f0f0;
}
.banniere-standard img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
@media (max-width: 768px) {
    .banniere-standard { height: 260px; }
}

.cours-slideshow {
    position: relative;
    margin-bottom: 16px;
}

.cours-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.cours-slide.actif { opacity: 1; }

.cours-slide img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

.cours-slide-placeholder {
    width: 100%; height: 100%;
    background: #e8e8e8;
    display: flex; align-items: center; justify-content: center;
}
.cours-slide-placeholder span {
    font-size: 0.8rem; color: #bbb;
    letter-spacing: 0.12em; text-transform: uppercase;
}

/* --- PLACEHOLDER GÉNÉRIQUE (bannière bio en attente d'image) --- */
.banniere-standard .placeholder-texte {
    width: 100%; height: 100%;
    background: #e8e8e8;
    display: flex; align-items: center; justify-content: center;
}
.banniere-standard .placeholder-texte span {
    font-size: 0.8rem; color: #bbb;
    letter-spacing: 0.12em; text-transform: uppercase;
}

/* Points de navigation */
.cours-slideshow-dots {
    position: absolute;
    bottom: 16px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 8px;
    z-index: 10;
}
.cours-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid rgba(255,255,255,0.8);
}
.cours-dot.actif { background: #fff; }
.cours-dot:hover { background: rgba(255,255,255,0.8); }

/* Ajustements typographie cours */
.cours-photos-caption {
    font-size: 0.92rem;
    color: #555;
    margin-bottom: 50px;
    font-style: italic;
}
.cours-tarif-bloc .detail {
    font-size: 0.92rem;
    color: #444;
    line-height: 1.7;
    margin-top: 10px;
}
.cours-tarif-bloc .public {
    font-size: 0.78rem;
    color: #555;
}

/* =========================================================================
   SLIDESHOWS ACCUEIL (bannière + bio + démarche)
   ========================================================================= */

/* Bannière pleine largeur */
.accueil-slideshow {
    position: relative;
}

.accueil-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.9s ease;
}
.accueil-slide.actif { opacity: 1; }

.accueil-slide img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

.accueil-slide-placeholder {
    width: 100%; height: 100%;
    background: #e8e8e8;
    display: flex; align-items: center; justify-content: center;
}
.accueil-slide-placeholder span {
    font-size: 0.78rem; color: #bbb;
    letter-spacing: 0.12em; text-transform: uppercase;
}

.accueil-slideshow-dots {
    position: absolute;
    bottom: 14px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 8px;
    z-index: 10;
}
.accueil-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid rgba(255,255,255,0.8);
}
.accueil-dot.actif  { background: #fff; }
.accueil-dot:hover  { background: rgba(255,255,255,0.8); }

/* Zone slideshow dans le quinconce (remplace quinconce-media-link) */
.quinconce-slideshow-zone {
    flex: 1;
    min-width: 0;
}

.quinconce-slideshow-zone .accueil-slideshow {
    border: 1px solid #eaeaea;
    padding: 15px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

/* Le slideshow dans le quinconce doit avoir une hauteur fixe comme les images */
.quinconce-slideshow-zone .accueil-slideshow {
    height: 360px;
    aspect-ratio: unset;
    padding: 0;
}

@media (max-width: 900px) {
    .quinconce-slideshow-zone .accueil-slideshow {
        height: 240px;
    }
}

/* =========================================================================
   PAGE DÉMARCHE — BLOCS
   ========================================================================= */
.demarche-bloc {
    display: flex;
    flex-direction: row;
    gap: 55px;
    align-items: flex-start;
    margin-bottom: 80px;
    padding-bottom: 70px;
    border-bottom: 1px solid #eaeaea;
}
.demarche-bloc:last-child { border-bottom: none; margin-bottom: 0; }

/* Alterner image à gauche / à droite */
.demarche-bloc:nth-child(even) { flex-direction: row-reverse; }

.demarche-img-zone {
    flex: 1;
    min-width: 0;
    height: 320px;
    overflow: hidden;
    flex-shrink: 0;
    max-width: 50%;
}

/* Quand c'est un slideshow */
.demarche-img-zone.accueil-slideshow {
    height: 320px;
    max-width: 50%;
}

.demarche-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 1px solid #eaeaea;
}

/* Forcer les images à remplir leur conteneur dans la démarche */
.demarche-img-zone img,
.demarche-img-zone .accueil-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demarche-texte {
    flex: 1;
    min-width: 0;
}

.demarche-titre {
    font-size: 1.3rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a1a1a;
    display: inline-block;
}

.demarche-texte p {
    font-size: 1rem;
    color: #333;
    line-height: 1.85;
    text-align: justify;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .demarche-bloc,
    .demarche-bloc:nth-child(even) {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 50px;
        padding-bottom: 50px;
    }
    .demarche-img-zone,
    .demarche-img-zone.accueil-slideshow {
        height: 240px;
        max-width: 100%;
    }
}
