/* ============================================
   Les Ateliers La Joie de Créer - Global Styles
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    color: #1a4b8c;
    text-decoration: none;
}

a:hover {
    color: #cc6060;
    text-decoration: underline;
}

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

iframe {
    max-width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background-color: #fff;
    border-bottom: 3px solid #cc6060;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.header-logo img {
    max-width: 250px;
    height: auto;
}

.header-mission img {
    max-width: 350px;
    height: auto;
}

.header-phone a {
    display: block;
}

.header-phone img {
    max-width: 220px;
    height: auto;
}

/* ============================================
   MAIN NAVIGATION
   ============================================ */
.main-nav {
    background-color: #cc6060;
}

.main-nav > ul {
    max-width: 1100px;
    margin: 0 auto;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    display: block;
    color: #fff;
    padding: 12px 16px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
    background-color: #b04545;
    text-decoration: none;
    color: #fff;
}

/* Main nav dropdown */
.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #b04545;
    min-width: 220px;
    z-index: 100;
    list-style: none;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.main-nav > ul > li:hover > .dropdown-menu {
    display: block;
}

.main-nav .dropdown-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.main-nav .dropdown-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s;
}

.main-nav .dropdown-menu a:hover {
    background-color: #993c3c;
    text-decoration: none;
    color: #fff;
}

/* ============================================
   SUB NAVIGATION - Simple (enfants)
   ============================================ */
.sub-nav {
    background-color: #f5f0eb;
    border-bottom: 2px solid #e0d5c9;
}

.sub-nav > ul {
    max-width: 1100px;
    margin: 0 auto;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

.sub-nav > ul > li > a {
    display: block;
    color: #1a4b8c;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
}

.sub-nav > ul > li > a:hover,
.sub-nav > ul > li > a.active {
    background-color: #e0d5c9;
    color: #333;
    text-decoration: none;
}

/* ============================================
   SUB NAVIGATION - Dropdown (ados, adultes)
   ============================================ */
.sub-nav-dropdown > ul {
    max-width: 1100px;
    margin: 0 auto;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

.sub-nav-dropdown > ul > li {
    position: relative;
}

.sub-nav-trigger {
    display: block;
    color: #cc6060;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.sub-nav-trigger:hover {
    background-color: #e0d5c9;
}

.sub-nav-dropdown .sub-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    z-index: 99;
    list-style: none;
    padding: 0;
    border: 1px solid #e0d5c9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sub-nav-dropdown > ul > li:hover > .sub-dropdown {
    display: block;
}

.sub-nav-dropdown .sub-dropdown li {
    border-bottom: 1px solid #f0ebe5;
}

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

.sub-nav-dropdown .sub-dropdown a {
    display: block;
    padding: 9px 18px;
    font-size: 13px;
    color: #1a4b8c;
    text-decoration: none;
    transition: background-color 0.2s;
}

.sub-nav-dropdown .sub-dropdown a:hover {
    background-color: #f5f0eb;
    color: #333;
    text-decoration: none;
}

/* ============================================
   PAGE LAYOUT
   ============================================ */
.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
}

/* Single column */
.content-single {
    max-width: 800px;
    margin: 0 auto;
}

/* Two columns */
.content-two-col {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.content-main {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.content-sidebar {
    width: 280px;
    flex-shrink: 0;
    overflow: hidden;
    padding: 20px;
    border-radius: 5px;
}

/* ============================================
   COULEURS DE FOND - BARRE LATÉRALE
   Utilisation: ajouter la classe sur le div
   Ex: <div class="content-sidebar fond-beige">
   ============================================ */

/* Défaut: pas de fond */

/* Beige doux */
.fond-beige {
    background-color: #f5f0eb;
    border: 1px solid #e0d5c9;
}

/* Bleu pâle */
.fond-bleu {
    background-color: #eaf2fb;
    border: 1px solid #ccdeed;
}

/* Vert pâle */
.fond-vert {
    background-color: #eef6ee;
    border: 1px solid #c8dec8;
}

/* Rose pâle */
.fond-rose {
    background-color: #fdf0f0;
    border: 1px solid #f0d5d5;
}

/* Jaune pâle */
.fond-jaune {
    background-color: #fdf8eb;
    border: 1px solid #efe0b8;
}

/* Gris clair */
.fond-gris {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
}

/* ============================================
   CONTENT STYLES
   ============================================ */
h1 {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 28px;
    color: #1a4b8c;
    margin-bottom: 15px;
    word-wrap: break-word;
}

h2 {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 22px;
    color: #cc6060;
    margin-bottom: 12px;
    word-wrap: break-word;
}

h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

p {
    margin-bottom: 12px;
    word-wrap: break-word;
}

.highlight {
    color: #cc6060;
    font-weight: bold;
}

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

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: #2c2c2c;
    color: #ccc;
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.site-footer a {
    color: #f0c040;
}

.site-footer a:hover {
    color: #fff;
}

.footer-phone {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.footer-email {
    margin-bottom: 15px;
}

.footer-social img {
    width: 40px;
    margin: 0 5px;
}

.footer-copyright {
    margin-top: 15px;
    font-size: 12px;
    color: #888;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }

    .header-logo img {
        max-width: 200px;
    }

    .header-mission {
        width: 100%;
    }

    .header-mission img {
        max-width: 100%;
        width: 100%;
    }

    .header-phone img {
        max-width: 180px;
    }

    /* Main nav mobile */
    .main-nav > ul {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav > ul > li > a {
        padding: 10px 20px;
        text-align: center;
        font-size: 13px;
    }

    .main-nav .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #993c3c;
    }

    .main-nav > ul > li:hover > .dropdown-menu {
        display: block;
    }

    .main-nav .dropdown-menu a {
        padding-left: 30px;
        text-align: center;
    }

    /* Page content mobile */
    .page-wrapper {
        padding: 15px;
    }

    .content-single {
        max-width: 100%;
    }

    /* Two col stacks */
    .content-two-col {
        flex-direction: column;
    }

    .content-sidebar {
        width: 100%;
    }

    /* Force all images to respect container */
    .content-main img,
    .content-sidebar img {
        max-width: 100% !important;
        height: auto !important;
        width: auto;
    }

    /* Responsive iframes */
    iframe {
        max-width: 100% !important;
        height: auto;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }

    /* Sub-nav dropdown mobile */
    .sub-nav-dropdown > ul {
        flex-direction: column;
        align-items: stretch;
    }

    .sub-nav-trigger {
        text-align: center;
    }

    .sub-nav-dropdown .sub-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid #e0d5c9;
    }

    .sub-nav-dropdown .sub-dropdown a {
        text-align: center;
    }

    /* Simple sub-nav stacks */
    .sub-nav > ul {
        flex-direction: column;
        align-items: center;
    }
}
