
/* ============================================================
   1. VARIABLES GLOBALES (palette, typographie, espacements)
   ============================================================ */
:root {
    /* --- Couleurs principales --- */
    --color-primary:       #CCCCFF;          /* bleu-lavande clair : titres, boutons, accents */
    --color-primary-dark:  #9999FF;          /* lavande foncé : hover boutons et items menu */
    --color-secondary:     #333333;          /* texte sombre sur fonds clairs */
    --color-link:          #020E4C;          /* liens normaux */
    --color-visited-link:  #213CCC;          /* liens visités */

    /* --- Couleurs de fonds --- */
    --color-dark-bg:       rgba(0, 0, 0, 0.60);        /* fonds sombres (bandeaux, menu burger) */
    --color-content-bg:    rgba(0, 0, 0, 0.60);        /* conteneurs de contenu par défaut */
    --color-blue-bg:       rgba(128, 128, 158, 0.80);  /* conteneurs secondaires (cartes) */

    /* --- Couleur du texte courant dans les sections --- */
    --section-text-color:  #87CEEB;          /* bleu ciel : texte des sections sur fond photo */
    --section-text-light:  #FFFFCC;          /* jaune pâle : .section-text */

    /* --- Typographie --- */
    --font-main:   Montserrat, Arial, Helvetica, sans-serif;
    --font-impact: 'Impact', 'Arial Black', sans-serif;

    /* --- Mise en page --- */
    --max-width:   1200px;
}


/* ============================================================
   2. RESET ET BASE
   ============================================================ */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-main);
    font-size: 17px;
    line-height: 1.2;
}


/* ============================================================
   3. TYPOGRAPHIE GLOBALE
   ============================================================ */

/* Titres principaux */
h1 {
    font-family: var(--font-impact);
    color: var(--color-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Sous-titres — même famille qu'Impact pour cohérence avec h1 */
h2, h3 {
    font-family: var(--font-impact);
    color: var(--color-primary);
}


/* ============================================================
   4. LIENS
   ============================================================ */
a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.3s;
}
a:visited { color: var(--color-visited-link); }
a:hover   { color: orange; text-decoration: underline; }


/* ============================================================
   5. BOUTON GÉNÉRIQUE
   ============================================================ */
.button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-secondary) !important;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    font-family: var(--font-main);
    text-decoration: none;
    transition: background-color 0.3s;
}
.button:hover {
    background-color: var(--color-primary-dark);
    text-decoration: none;
}


/* ============================================================
   6. ENCART INTRO PROJET
   ============================================================ */
.intro-projet-box {
    align-items: flex-start;
    background: var(--color-primary);
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.intro-icon {
    font-size: 1.3em;
    line-height: 1;
}

.intro-content h3 {
    display: flex;
    margin: 0 0 5px 0;
    font-size: 1.0em;
    color: var(--color-secondary);
}

.intro-content p {
    margin: 0;
    font-size: 0.85em;
    line-height: 1.4;
}


/* ============================================================
   7. PAGE WRAPPER ET SECTIONS
   ============================================================ */
.page-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Conteneur de section commun */
.section {
    padding-top: 20px;
    padding-bottom: 50px;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 10vh;
    position: relative;
}

/* Couleur de texte commune à toutes les sections sur fond photo */
.section-home,
.section-presse,
.section-imagination,
.section-animation,
.section-creation,
.section-atelier,
.section-liens,
.section-apropos,
.section-newcv,
.section-cielvolant,
.section-portfolio,
.section-galerie,
.section-mecenat,
.section-live,
.section-recyclage {
    color: var(--section-text-color);
}

/* Fonds d'image par section */
.section-home        { background-image: url('images/icare2.webp');  }
.section-imagination { background-image: url('images/icare13.webp'); }
.section-animation   { background-image: url('images/icare14.webp'); }
.section-creation    { background-image: url('images/icare12.webp'); }
.section-atelier     { background-image: url('images/icare8.webp');  }
.section-presse      { background-image: url('images/icare7.webp');  }
.section-liens       { background-image: url('images/icare6.webp');  }
.section-mecenat     { background-image: url('images/icare22.png');  }
.section-apropos     { background-image: url('images/icare14.webp'); }
.section-recyclage   { background-image: url('images/icare17.webp'); }
.section-newcv       { background-image: url('images/icare11.webp'); }
.section-cielvolant  { background-image: url('images/icare21.webp'); }
.section-portfolio   { background-image: url('images/icare5.webp');  }
.section-galerie     { background-image: url('images/icare5.webp');  }


/* ============================================================
   8. CONTENEURS DE CONTENU (boîtes)
   ============================================================ */
.main-column, .links-column, .content-box {
    padding: 20px;
    background-color: var(--color-content-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-height: 300px;
}

/* Sections à fond sombre : légère variation de la boîte */
.section-animation .main-column,
.section-recyclage .main-column,
.section-cielvolant .main-column,
.section-newcv .main-column {
    background-color: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Sections mécenat / à-propos : boîte plus compacte */
.section-mecenat .main-column,
.section-apropos .main-column {
    background-color: rgba(0, 0, 0, 0.50);
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-height: auto;
}

/* Layout flex pour les pages à deux colonnes */
.layout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.main-column  { flex: 1 1 730px; }
.links-column { flex: 1 1 300px; }


/* ============================================================
   9. EN-TÊTE DE PAGE
   ============================================================ */
.header-title h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
}


/* ============================================================
   10. MENU BURGER (fixe)
   ============================================================ */
#menuToggle {
    display: block;
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 100;
    user-select: none;
}

#menuToggle a {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-family: var(--font-impact);
}

#menuToggle input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    left: -5px;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
}

#menuToggle span {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    background: white;
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
                background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
                opacity 0.55s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#menuToggle input:checked ~ span                   { opacity: 1; transform: rotate(45deg) translate(0px, -2px); background: white; }
#menuToggle input:checked ~ span:nth-last-child(3) { opacity: 0; transform: rotate(0deg) scale(0.2, 0.2); }
#menuToggle input:checked ~ span:nth-last-child(2) { transform: rotate(-45deg) translate(-1px, 2px); }

#menu {
    position: absolute;
    width: 200px;
    margin: -100px 0 0 -150px;
    padding: 50px;
    padding-top: 125px;
    background: var(--color-dark-bg);
    list-style-type: none;
    transform-origin: 0% 0%;
    transform: translate(100%, 0);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    border-radius: 10px;
}

#menu li {
    padding: 10px 0;
    font-size: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#menuToggle input:checked ~ ul { transform: none; }


/* ============================================================
   11. MENU ICARE (accueil)
   ============================================================ */
.icare-title {
    text-align: center;
    color: white;
    text-shadow: 3px 3px 6px black;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 15px;
}

.icare-menu-container {
    display: flex;
    justify-content: left;
    width: 100%;
    margin-top: 10px;
}

.icare-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    list-style: none;
    padding: 30px;
    margin: 0 0 0 40px;
    width: 100%;
    max-width: 250px;
}

/* Item du menu ICARE */
.icare-item {
    position: relative;
    background-color: rgba(204, 204, 255, 0.9);
    padding: 8px 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    width: calc(100% - 20px);
    box-sizing: border-box;
    transition: background-color 0.3s;
    text-align: left;
}

.icare-item:hover { background-color: var(--color-primary-dark); }

/* Icônes I, C, A, R, E */
.icare-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-100%, -50%);
    height: 40px;
    width: 40px;
    z-index: 10;
}

/* Lien texte dans les items */
.icare-item a {
    font-family: var(--font-impact);
    font-size: clamp(1rem, 3.5vw, 1.5rem);
    color: var(--color-secondary);
    text-shadow: none;
    display: block;
    text-transform: uppercase;
    text-decoration: none;
    padding-left: 5px;
}

/* Zone image (masquée sur mobile) */
.image-display { display: none; }


/* ============================================================
   12. FOOTER / LIENS SOCIAUX
   ============================================================ */
.footer-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 0;
    width: 90%;
    max-width: var(--max-width);
    margin: 40px auto 0;
}

.footer-links a { margin: 0 10px; }

.footer-links img {
    height: 50px;
    width: auto;
    border: none;
    transition: transform 0.3s;
}

/* Icône Facebook dans le menu */
.menu-icon-facebook {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}


/* ============================================================
   13. GALERIE
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-grid li {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.gallery-grid li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.7);
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: none;
    transition: transform 0.4s ease;
}

.gallery-grid li:hover img { transform: scale(1.05); }

/* Limiter la hauteur des vignettes dans Ateliers et Presse */
#ateliers .gallery-grid li img,
#presse .gallery-grid li img {
    max-height: 160px;
    margin: 0 auto;
}

/* Overlay titre au survol */
.gallery-grid li a::after {
    content: attr(data-content);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    color: white;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    font-family: var(--font-impact);
    font-size: 1.2rem;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.gallery-grid li:hover a::after { opacity: 1; }

.article-caption { display: none; }


/* ============================================================
   14. VIDÉOS RESPONSIVES (16:9)
   ============================================================ */
.video-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
}

.video-wrapper {
    flex: 1 1 300px;
    max-width: 450px;
}

/* Imagination : vidéo pleine largeur */
.section-imagination .video-wrapper {
    flex: 1 1 100%;
    max-width: 100%;
}

.video-responsive-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: black;
    border: 2px solid var(--color-primary);
}

.video-responsive-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ============================================================
   15. LIENS / PARTENAIRES (colonne latérale)
   ============================================================ */
.link-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(215, 215, 255, 0.7);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
}

.link-item:hover { background-color: rgba(0, 0, 0, 0.1); }

.link-item img {
    margin-right: 20px;
    max-width: 30px;
    height: auto;
}

.links-column h2 {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.link-list {
    list-style: none;
    padding-left: 0;
}

/* Liens blancs dans la section Liens (fond sombre) */
.section-liens .link-item a { color: white; }


/* ============================================================
   16. TEXTE DE SECTION (paragraphe mis en avant)
   ============================================================ */
.section-text {
    color: var(--section-text-light);
    text-align: left;
    font-size: 1.2em;
    margin-bottom: 25px;
}


/* ============================================================
   17. SLOGAN FABRICATION
   ============================================================ */
.fabrication-slogan {
    text-align: center;
    margin-top: 20px;
}

.fabrication-slogan strong {
    font-size: clamp(3rem, 10vw, 4rem);
    color: var(--color-link);
    font-family: var(--font-impact);
    font-weight: bold;
    line-height: 1;
    display: block;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.8), -2px -2px 0 rgba(0, 0, 0, 0.5);
}


/* ============================================================
   18. CARTES D'ACCUEIL
   ============================================================ */
.card-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0;
    list-style: none;
}

.card-item {
    background-color: var(--color-blue-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

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

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

.card-content h3 {
    font-family: var(--font-impact);
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}


/* ============================================================
   19. PIED DE SECTION CRÉATION
   ============================================================ */
.creation-footer {
    background-color: var(--color-dark-bg);
    padding: 10px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;

}


/* ============================================================
   20. MODALE (pop-up images)
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    object-fit: contain;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* ============================================================
   21. RESPONSIVE — DESKTOP/TABLETTE (≥ 768 px)
   ============================================================ */
@media (min-width: 768px) {

    .icare-title { margin-top: 50px; }

    .icare-menu-container {
        margin-top: 30px;
        flex-direction: row;
        justify-content: space-around;
    }

    .icare-menu {
        width: auto;
        max-width: none;
        flex-direction: column;
        align-items: flex-start;
        margin-right: 50px;
        margin-left: 40px;
    }

    .icare-item {
        width: 300px;
        padding: 8px 20px;
    }

    .icare-icon {
        transform: translate(-120%, -50%);
        height: 50px;
        width: 50px;
    }

    .image-display {
        display: block;
        flex-grow: 1;
        margin-top: 0;
        text-align: right;
    }
}


/* ============================================================
   22. RESPONSIVE — MOBILE (≤ 768 px)
   ============================================================ */
@media (max-width: 768px) {
    .page-wrapper  { padding: 0 10px; }
    .section       { min-height: auto; }
    .header-title h1 { margin-bottom: 15px; }
    .main-column,
    .links-column  { min-height: auto; }
}


/* ============================================================
   23. INTEGRATION ACTUALITE
   ============================================================ */
	
.section-live {
	  margin-top: 20px;
	}

	.live-grid {
	  display: grid;
	  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	  gap: 15px;
	  margin-top: 30px;
	}

	.live-item {
	  position: relative;
	  border-radius: 10px;
	  overflow: hidden;
	}

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

	.live-caption {
	  position: absolute;
	  bottom: 0;
	  width: 100%;
	  padding: 10px;
	  font-size: 0.85rem;
	  background: rgba(0,0,0,0.6);
	  color: white;
	}

	.live-cta {
	  text-align: center;
	  margin-top: 25px;
	}

	.live-cta a {
	  text-decoration: none;
	  font-weight: bold;
	  border-bottom: 1px solid currentColor;
	}