/* Masque les phrases au chargement */
.phrase-hidden {
  opacity: 0;
}

/* Animation d'apparition des phrases */
.phrase-visible {
  animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0.3;
  }
}

@keyframes titleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  50% {
    opacity: 0.5;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menuSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
h1{
    text-align: center;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    font-size: clamp(1.5rem, 5vw, 250%);
    opacity: 0;
    animation: titleFadeIn 1.5s ease-out forwards;
    margin-top: 8px;
}

h3{
    text-align: center;
    font-size: clamp(1rem, 3vw, x-large);
    margin: 0;
    margin-top: -20px;
}

.stage-announcement {
    text-align: center;
    padding: 8px 0;
    margin: 10px auto;
}

.stage-announcement p {
    color: red;
    animation: blink 1.5s infinite;
    font-size: clamp(1.1rem, 2.3vw, 1.7rem);
    line-height: 1.4;
    margin: 8px 0 0;
}

.next-session-banner {
    display: none;
}

.next-session-detail {
    color: red;
    font-weight: bold;
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    margin: 18px auto 10px;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    background: rgba(255, 245, 245, 0.92);
    border: 2px solid rgba(216, 35, 35, 0.5);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    padding: 14px 18px;
    text-align: center;
    width: min(980px, calc(100% - 32px));
    animation: blink 1.5s infinite;
}

.next-session-banner strong,
.next-session-detail strong {
    color: #d82323;
}

body{
    padding-bottom: 140px;
    margin: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img{
    height: clamp(150px, 20vw, 250px);
    width: clamp(150px, 20vw, 250px);
    max-width: 100%;
}

.header{
    position: relative;
    min-height: 220px;
    padding-top: 40px;
}

.header img{
    position: absolute;
    left: 60px;
    top: 40px;
    transform: translateY(0);
}

.page-layout {
    display: flex;
    align-items: flex-start;
    padding: 20px;
}

.page-layout main {
    flex: 1;
    min-width: 320px;
    max-width: calc(100% - 320px);
}

.right-panel {
    position: relative;
    display: grid;
    grid-template-columns: 180px 60px 180px;
    grid-template-rows: auto auto auto;
    gap: 0;
    width: 420px;
    align-items: center;
    justify-items: center;
    row-gap: 0;
    column-gap: 80px;
    margin-right: 255px;
    margin-top: 0;
}

.rect-row {
    display: contents;
}

.top-row .rect-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.top-row .rect-card:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
}

.center-row .rect-card {
    grid-column: 2;
    grid-row: 2;
    transform: translateY(-35%);
}

.bottom-row .rect-card:nth-child(1) {
    grid-column: 1;
    grid-row: 3;
    transform: translateY(-90%);
}

.bottom-row .rect-card:nth-child(2) {
    grid-column: 3;
    grid-row: 3;
    transform: translateY(-90%);
}

.rect-card {
    display: flex;
    flex-direction: column;
    width: 180px;
    min-height: 320px;
    background: whitesmoke;
    border: 2px solid rgba(0, 0, 0, 0.16);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    position: relative;
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
}


/* Décorations clownesques */
.virginie::before {
    content: "🖩​​";
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 65px;
    z-index: 10;
}

.ophelie::before {
    content: "📝​​";
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 24px;
    z-index: 10;
}

.philippe::before {
    content: "👑​";
    position: absolute;
    top: 0px;
    left: 22px;
    transform: translateX(-50%);
    font-size: 24px;
    z-index: 10;
}

.elodie::before {
    content: "🤡";
    position: absolute;
    top: 0px;
    left: 10px;
    font-size: 24px;
    z-index: 10;
}

.sabine::before {
    content: "🤡";
    position: absolute;
    top: 0px;
    right: 10px;
    font-size: 24px;
    z-index: 10;
}

.rect-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

.rect-content {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rect-content h4 {
    margin: 0 0 2px 0;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.subtitle {
    margin: 0 0 8px 0;
    font-size: 10px;
    color: #464444;
    font-style: italic;
    text-align: center;
}


.scrolling-text {
    width: 100%;
    height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.scrolling-text p {
    margin: 0;
    font-size: 13px;
    color: #666;
    text-align: center;
    line-height: 1.4;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    padding: 6px;
}

.scrolling-text p.is-visible {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 900px) {
    .page-layout {
        flex-direction: column;
        padding: 16px;
    }
    .right-panel {
        width: 100%;
        order: -1;
        align-items: center;
    }
    .page-layout main {
        max-width: 100%;
    }
    .rect-row {
        justify-content: center;
    }
}

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
    .page-layout {
        flex-direction: column;
        padding: clamp(12px, 3vw, 16px);
    }
    
    .right-panel {
        width: 100%;
        margin: 0 auto;
        margin-right: 0;
    }
    
    .page-layout main {
        max-width: 100%;
    }
}

/* Mobiles et petits écrans */
@media (max-width: 768px) {
    body {
        padding-bottom: 100px;
    }
    
    h1 {
        font-size: clamp(1.6rem, 6vw, 2.3rem);
        margin-top: 0;
    }
    
    .header {
        min-height: auto;
        padding: clamp(12px, 3vh, 20px) 12px 12px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }
    
    .header img {
        position: static;
        margin: 0;
        left: auto;
        top: auto;
        transform: none;
        height: clamp(100px, 18vw, 160px);
        width: auto;
    }
    
    .header h1 {
        flex: 1 1 1px;
        min-width: 0;
        text-align: left;
        margin: 0;
    }
    
    .header h3 {
        width: 100%;
        margin: 0;
        padding-top: 10px;
    }
    
    .page-layout {
        flex-direction: column;
        padding: clamp(8px, 2vw, 12px);
        gap: 15px;
    }
    
    .page-layout main {
        max-width: 100%;
        min-width: 0;
        margin-right: 0;
    }
    
    .right-panel {
        width: 100%;
        grid-template-columns: 1fr;
        row-gap: 18px;
        column-gap: 0;
        margin: 0;
        margin-bottom: 20px;
        margin-right: 0;
        justify-items: center;
    }

    .top-row {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
        align-items: center;
    }

    .top-row .team-heading {
        order: -1;
        width: 100%;
    }

    .top-row .rect-card:nth-child(1),
    .top-row .rect-card:nth-child(2),
    .center-row .rect-card,
    .bottom-row .rect-card:nth-child(1),
    .bottom-row .rect-card:nth-child(2),
    .team-heading {
        grid-column: auto !important;
        grid-row: auto !important;
        transform: none !important;
    }

    .team-heading {
        font-size: clamp(1.3rem, 4vw, 2rem);
        margin: 0 auto;
        text-align: center;
        order: 0;
    }

    .rect-card {
        width: min(100%, 320px);
        max-width: 100%;
        min-height: auto;
    }

    .page-layout {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .right-panel {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: 1fr !important;
        margin: 0 auto !important;
        gap: 0 !important;
    }

    .rect-row,
    .top-row,
    .center-row,
    .bottom-row {
        display: block !important;
        width: 100% !important;
    }

    .team-heading {
        order: -1 !important;
        width: 100% !important;
        margin: 0 0 10px 0 !important;
        text-align: center !important;
    }

    .rect-card {
        width: min(100%, 320px) !important;
        max-width: 100% !important;
        min-height: auto !important;
        margin: 0 auto 16px !important;
        transform: none !important;
    }
    
    .welcome-panel {
        font-size: clamp(1rem, 2.5vw, 1.6em);
        padding: clamp(10px, 2vw, 20px);
        max-width: 100% !important;
    }
}

/* Très petits mobiles */
@media (max-width: 480px) {
    body {
        padding-bottom: 80px;
    }
    
    h1 {
        font-size: clamp(1rem, 3.5vw, 1.5rem);
        margin-top: 3px;
    }
    
    h3 {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    }
    
    .header {
        min-height: auto;
        padding: clamp(10px, 2.5vh, 18px) 10px 10px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
    }
    
    .header img {
        position: static;
        margin: 0;
        left: auto;
        top: auto;
        transform: none;
        height: clamp(90px, 20vw, 140px);
        width: auto;
    }
    
    .header h1 {
        flex: 1 1 1px;
        min-width: 0;
        text-align: left;
        margin: 0;
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
    
    .header h3 {
        width: 100%;
        margin: 0;
        padding-top: 8px;
    }
    
    .page-layout {
        flex-direction: column;
        padding: clamp(5px, 1.2vw, 8px);
        gap: 10px;
    }
    
    .welcome-panel {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        padding: clamp(8px, 1.5vw, 12px);
        min-width: 100%;
        max-width: 100% !important;
        max-width: calc(100% - 0px) !important;
    }
    
    .right-panel {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: 1fr !important;
        row-gap: 12px !important;
        column-gap: 0 !important;
        margin: 0 !important;
        margin-right: 0 !important;
        justify-items: center !important;
    }
    
    .rect-row,
    .top-row,
    .center-row,
    .bottom-row {
        display: block !important;
        width: 100% !important;
    }

    .top-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        align-items: center !important;
    }

    .top-row .team-heading {
        order: -1 !important;
        width: 100% !important;
    }
    
    .top-row .rect-card:nth-child(1),
    .top-row .rect-card:nth-child(2),
    .center-row .rect-card,
    .bottom-row .rect-card:nth-child(1),
    .bottom-row .rect-card:nth-child(2),
    .team-heading {
        grid-column: auto !important;
        grid-row: auto !important;
        transform: none !important;
    }

    .team-heading {
        font-size: clamp(1.1rem, 4vw, 1.6rem);
        margin: 0 auto;
        text-align: center;
        order: 0;
    }
    
    .rect-card {
        width: min(100%, 260px);
        max-width: 100%;
        min-height: auto;
    }
    
    .rect-image {
        height: 140px;
    }
    
    .rect-content h4 {
        font-size: 11px;
    }
    
    .subtitle {
        font-size: 9px;
    }

    .gallery {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .gallery-item {
        width: min(100%, 320px);
        max-width: 100%;
    }

    .gallery-item img {
        width: 100%;
        height: auto;
    }
}

/* Ultra petits écrans (< 360px) */
@media (max-width: 360px) {
    .right-panel {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 12px;
        column-gap: 0;
        margin: 0;
        justify-items: center;
    }

    .top-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
    }

    .top-row .team-heading {
        order: -1;
        width: 100%;
    }

    .top-row .rect-card:nth-child(1),
    .top-row .rect-card:nth-child(2),
    .center-row .rect-card,
    .bottom-row .rect-card:nth-child(1),
    .bottom-row .rect-card:nth-child(2),
    .team-heading {
        grid-column: auto !important;
        grid-row: auto !important;
        transform: none !important;
    }

    .rect-card {
        width: min(100%, 260px);
        max-width: 100%;
        min-height: auto;
    }
    
    .rect-image {
        height: 120px;
    }
    
    .welcome-panel {
        font-size: clamp(0.85rem, 1.8vw, 1rem);
    }
}

.header-nav{
    position: static;
    left: auto;
    right: auto;
    margin: 0;
    display: block;
    font-size: large;
    text-align: left;
}

.header-nav a{
    margin: 0 10px;
}

/* Gallery for elo3 */
.page-elo3 main{
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(5px, 1vh, 10px);
}

.gallery{
    display: flex;
    gap: clamp(15px, 5vw, 110px);
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: clamp(15px, 3vh, 22px) clamp(8px, 2vw, 11px) clamp(25px, 5vh, 44px);
}

.gallery-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: clamp(200px, 80vw, 286px);
}

.gallery .img-link{ 
    display: inline-block; 
    position: relative;
}

.gallery img{
    width: auto;
    height: clamp(120px, 20vh, 286px);
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 8px;
    display: block;
}

/* Décoration clownesque sur les images de la galerie */
.gelinote .img-link::before {
    content: "🤡";
    position: absolute;
    top: 0;
    left: 0;
    font-size: clamp(18px, 3vw, 22px);
    z-index: 10;
}

.petronie .img-link::before {
    content: "🤡";
    position: absolute;
    top: 0;
    left: 0;
    font-size: clamp(18px, 3vw, 22px);
    z-index: 10;
}

.celeste .img-link::before {
    content: "🤡";
    position: absolute;
    top: 0;
    right: 0;
    font-size: clamp(18px, 3vw, 22px);
    z-index: 10;
}

.frankie .img-link::before {
    content: "🤡";
    position: absolute;
    top: 0;
    right: 0;
    font-size: clamp(18px, 3vw, 22px);
    z-index: 10;
}

.gallery .meta{
    text-align: center;
    margin-top: clamp(8px, 1.5vw, 11px);
}

.gallery .name{
    font-weight: 700;
    margin-bottom: clamp(5px, 1vw, 6.6px);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.gallery .tagline{
    color: #555;
    font-size: clamp(0.9rem, 1.8vw, 1.045rem);
    margin-bottom: clamp(6px, 1.5vw, 8.8px);
}

.cv-btn{
    display: inline-block;
    padding: clamp(4px, 1vw, 6px) clamp(8px, 2vw, 12px);
    background: rgba(216, 35, 35, 0.7);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

.cv-btn:hover { 
    background: rgba(116, 191, 216, 0.95);
}

/* Galerie responsive */
@media (max-width: 768px){
    .gallery{
        gap: clamp(12px, 3vw, 30px);
        transform: translateY(0);
    }
    
    .gallery img { 
        height: clamp(100px, 18vh, 200px); 
    }
    
    .gallery-item {
        max-width: clamp(150px, 70vw, 220px);
    }
}

@media (max-width: 520px){
    .gallery{
        gap: clamp(10px, 2vw, 20px);
        transform: translateY(-10vh);
    }
    
    .gallery img { 
        height: clamp(80px, 15vh, 150px);
        width: 100%;
    }
    
    .page-elo3 main {
        min-height: calc(100vh - 100px);
    }
}

@media (max-width: 360px) {
    .gallery {
        gap: clamp(8px, 1.5vw, 15px);
        transform: translateY(-8vh);
    }
    
    .gallery img {
        height: clamp(70px, 12vh, 120px);
    }
    
    .gallery-item {
        max-width: clamp(120px, 90vw, 180px);
    }
}
.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    gap: clamp(4px, 1vw, 8px);
    width: 100%;
    max-width: 900px;
}

.menu li {
    position: relative;
    text-align: center;
    list-style: none;
}

.menu li a:link, .menu li a:visited, .menu li span.link1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgb(216, 35, 35);
    padding: clamp(4px, 1vw, 6px) clamp(6px, 1.5vw, 10px);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    text-align: center;
    text-decoration: none;
    position: relative;
    z-index: 1;
    /* border retirée — le contour est assuré par le pseudo-élément ::after */
    border-radius: 12px;
    background: transparent;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
    opacity: 0;
    animation: menuSlideIn 0.6s ease-out forwards;
}

.menu li a:hover, .menu li span.link1:hover {
    border-color: rgba(116, 191, 216, 0.95);
    box-shadow: 0 0 8px rgba(116, 191, 216, 0.28);
    color: rgb(216, 35, 35);
}


.menu li a::after, .menu li span.link1::after {
    content: "";
    position: absolute;
    left: -3px;
    right: -3px;
    top: -3px;
    bottom: -3px;
    border-radius: 12px;
    border: 3px solid rgba(216, 35, 35, 0.7);
    background: rgba(255, 150, 150, 0.08);
    pointer-events: none;
    z-index: 0;
    transform-origin: center;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.menu li:nth-child(odd) a::after, .menu li:nth-child(odd) span.link1::after { transform: rotate(-5deg); }
.menu li:nth-child(even) a::after, .menu li:nth-child(even) span.link1::after { transform: rotate(5deg); }

.menu li:nth-child(1) a, .menu li:nth-child(1) span.link1 { animation-delay: 0.1s; }
.menu li:nth-child(2) a, .menu li:nth-child(2) span.link1 { animation-delay: 0.2s; }
.menu li:nth-child(3) a, .menu li:nth-child(3) span.link1 { animation-delay: 0.3s; }
.menu li:nth-child(4) a, .menu li:nth-child(4) span.link1 { animation-delay: 0.4s; }
.menu li:nth-child(5) a, .menu li:nth-child(5) span.link1 { animation-delay: 0.5s; }
.menu li:nth-child(6) a, .menu li:nth-child(6) span.link1 { animation-delay: 0.6s; }
.menu li:nth-child(7) a, .menu li:nth-child(7) span.link1 { animation-delay: 0.7s; }

.menu li:nth-child(odd) a:hover::after, .menu li:nth-child(odd) span.link1:hover::after {
    border-color: black;
    box-shadow: 0 0 8px rgba(116, 191, 216, 0.22);
    transform: rotate(0deg) scale(1.03);
}

.menu li:nth-child(even) a:hover::after, .menu li:nth-child(even) span.link1:hover::after {
    border-color: black;
    box-shadow: 0 0 8px rgba(116, 191, 216, 0.22);
    transform: rotate(0deg) scale(1.03);
}

.page-elo3 .menu li a:hover::after {
    border-color: black;
    box-shadow: 0 0 8px rgba(116, 191, 216, 0.22);
    transform: rotate(0deg) scale(1.03);
}

.menu li a:active {background-color: #808080;}

.menu li:hover  {
    display: block;
}


.menu .sousmenu {
    list-style-type: none;
    display: none;
    padding: 0;
    margin: 0;
    position: absolute;
    z-index: 1001;
}
.menu .sousmenu li {
    float: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid transparent;
    border-right: 1px solid transparent;
}

.menu .sousmenu li a:link, .menu li a:visited {
    display: block;
    color: rgb(216, 35, 35);
    text-decoration: none;
}

/* Style spécifique pour le sousmenu de "Les Activités" */
.menu li:nth-child(2) .sousmenu li:nth-child(1) {
    transform: rotate(5deg);
}

.menu li:nth-child(2) .sousmenu li:nth-child(2) {
    transform: rotate(-5deg);
}

.menu li:nth-child(2) .sousmenu li:nth-child(3)  {
    transform: rotate(5deg);
}

.menu li:nth-child(2) .sousmenu li:nth-child(4) {
    transform: rotate(-5deg);
}

/* Style spécifique pour le sousmenu de "Les Clowns qu'on aime" */
.menu li:nth-child(3) .sousmenu li a:link,
.menu li:nth-child(3) .sousmenu li a:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    padding: 8px 14px;
    white-space: nowrap;
}


.menu li:hover .sousmenu {
    display: block;
}

.menu li:nth-child(2) .sousmenu li:nth-child(1) a:hover::after {
    transform: rotate(-5deg);
}
.menu li:nth-child(2) .sousmenu li:nth-child(2) a:hover::before {
    transform: rotate(5deg);
}
.menu li:nth-child(2) .sousmenu li:nth-child(3) a:hover::after {
    transform: rotate(-5deg);
}
.menu li:nth-child(2) .sousmenu li:nth-child(4) a:hover::before {
    transform: rotate(5deg);
}

/* Styles pour le formulaire de contact (elo7) */
.contact-container{
    display:flex;
    gap:24px;
    align-items:flex-start;
    justify-content: center;
    padding: 24px;
    flex-wrap: nowrap; /* garder 2 colonnes côte à côte */
    margin: 15px auto 0; /* descendre et centrer horizontalement */
    width: min(1100px, 96%);
    box-sizing: border-box;
}

.info-box, .contact-form{
    background: linear-gradient(180deg, rgba(249,248,242,0.98), rgba(245,244,238,0.98));
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border: 3px dashed rgba(255,102,153,0.22);
}

.info-box{
    flex: 0 0 40%;
    max-width: 40%;
    min-width: 0;
    order: 1; /* garder les infos à gauche */
}

.contact-form{
    flex: 0 0 60%;
    max-width: 60%;
    min-width: 0;
    order: 2; /* garder le formulaire à droite */
    position: relative; /* pour que ::before se place correctement */
}


.info-box h2, .contact-form h2{ margin: 0 0 12px 0; font-family: 'Comic Sans MS', 'Comic Sans', cursive; color: #e64a7b; }
.info-line{ display:flex; align-items:center; gap:10px; margin:14px 0; }
.info-line .label{ width:140px; font-weight:800; font-size: 1.2rem; color: #7a2b4a; font-family: 'Comic Sans MS', cursive; }
.info-line .dots{
    flex:1;
    min-height:20px;
    border-bottom: 3px dashed rgba(122,43,74,0.6);
    font-size: 1rem;
    line-height: 1.2;
    font-family: Arial, sans-serif;
}

.social-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top: 18px;
}

.social-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration:none;
    font-weight:700;
    font-size: 0.95rem;
    color:#fff;
    transition: opacity 0.2s ease;
}

.social-button:hover{
    opacity:0.9;
}

.social-button.facebook{
    background: #1877F2;
}

.social-button.instagram{
    background: #E1306C;
}

.social-button svg{
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.contact-form form{ display:flex; flex-direction:column; gap:14px; font-family: 'Comic Sans MS', cursive; }
.contact-form .form-row{ display:flex; gap:14px; }
.contact-form .form-row label{ flex:1; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea{
    width:100%;
    padding:10px 3px;
    border-radius:12px;
    border:2px solid rgba(255,102,153,0.25);
    background: rgba(255,255,255,0.95);
    resize: vertical;
    box-shadow: 0 2px 6px rgba(255,102,153,0.06) inset;
    font-size: 16px;
}
.contact-form textarea{ min-height:140px; }
.contact-form button{
    align-self:flex-start;
    padding:10px 20px;
    border-radius:18px;
    border:3px solid #ffcc00;
    background: linear-gradient(90deg,#ff66cc,#ffcc00);
    color:#2b1a2b;
    font-weight:700;
    cursor:pointer;
    transform: rotate(-4deg);
}

/* Décorations clownesques */
.contact-form::before{
    content: "🤡";
    position: absolute;
    left: 10px;
    top: -26px;
    font-size: 36px;
    transform: rotate(-12deg);
}

@media (max-width:900px){
    .contact-container{ flex-direction:column; margin-top: 30px; }
    .info-box, .contact-form{ max-width:100%; flex-basis:100%; min-height: auto; }
    .contact-form::before{ left: auto; right: 12px; top: -20px; }
}

/* Footer banner */
.site-footer{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: white;
    z-index: 60;
    display: none;
}
.site-footer.visible {
    display: block;
}
.site-footer .footer-inner{
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 16px;
}
.footer-support {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 16px;
    text-align: center;
}
.footer-logo{ height:50px; width:auto; display:block }
.footer-sep{ width:1px; height:28px; background:#e0e0e0; margin:0 8px }
.footer-links{ display:flex; gap:12px; align-items:center }
.footer-link{ color:#444; text-decoration: none; font-weight:600 }
.footer-link:hover{ text-decoration:underline }
.legal a{ color:#444; text-decoration:none; font-size:0.95rem }

.modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}
.modal-overlay.active{
    opacity: 1;
    pointer-events: auto;
}
.modal-card{
    width: min(420px, 90%);
    background: #fff;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 18px 34px rgba(0,0,0,0.2);
    text-align: center;
}
.modal-card h2{
    margin: 0 0 12px;
    font-size: 1.1rem;
}
.modal-card p{
    margin: 0;
    color: #222;
    word-break: break-word;
    font-size: 1rem;
}
.modal-card button{
    margin-top: 16px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: rgb(216, 35, 35);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width:680px){
    .site-footer .footer-inner{ flex-direction:column; gap:6px; align-items:center }
    .footer-sep{ display:none }
}

/* Responsive global adjustments for all pages */
@media (max-width: 900px) {
    body {
        min-height: 100vh;
        overflow-x: hidden;
    }

    .header {
        min-height: auto;
        padding-top: 16px;
    }

    .header img {
        position: static;
        margin: 0 auto 12px auto;
        left: auto;
        top: auto;
        transform: none;
        height: clamp(100px, 18vw, 180px);
        width: auto;
    }

    .header h1,
    .header h3 {
        padding: 0 16px;
        text-align: center;
    }

    .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        max-width: 100%;
        width: 100%;
    }

    .menu li {
        width: 100%;
    }

    .menu li a:link,
    .menu li a:visited,
    .menu li span.link1 {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        padding: 10px 16px;
    }

    .menu .sousmenu {
        position: static;
        display: block;
        width: 100%;
        background: transparent;
        padding-left: 16px;
        margin-top: 4px;
        border: none;
    }

    .menu .sousmenu li {
        width: 100%;
    }

    .menu .sousmenu li a:link,
    .menu .sousmenu li a:visited {
        white-space: normal;
        padding: 8px 12px;
    }

    .menu li {
        position: relative;
    }

    .menu li a:link,
    .menu li a:visited,
    .menu li span.link1 {
        box-sizing: border-box;
        min-height: 50px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.96);
        border: 2px solid rgba(216, 35, 35, 0.18);
        justify-content: flex-start;
    }

    .menu li a::after,
    .menu li span.link1::after {
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        border-radius: 14px;
        transform: none;
        border-width: 2px;
        background: rgba(255, 150, 150, 0.08);
    }

    .menu .sousmenu {
        position: static;
        display: block;
        width: 100%;
        background: transparent;
        padding-left: 16px;
        margin-top: 4px;
        border: none;
    }

    .menu .sousmenu li a:link,
    .menu .sousmenu li a:visited {
        padding: 10px 16px;
        display: inline-flex;
        justify-content: flex-start;
    }

    .menu li:hover .sousmenu,
    .menu li:focus-within .sousmenu {
        display: block;
    }

    .page-layout {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 18px;
    }

    .page-layout main {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .menu {
        width: 100%;
        max-width: 100%;
    }

    .menu li a:link,
    .menu li a:visited,
    .menu li span.link1 {
        width: 100%;
        font-size: 1.05rem;
        padding: 12px 18px;
    }

    .menu .sousmenu {
        padding-left: 18px;
    }

    .menu .sousmenu li a:link,
    .menu .sousmenu li a:visited {
        padding: 12px 18px;
    }

    .welcome-panel {
        width: 100%;
        max-width: 100%;
        padding: 16px;
    }

    .right-panel {
        width: 100%;
        margin: 0;
        grid-template-columns: 1fr;
        row-gap: 18px;
        column-gap: 0;
        justify-items: center;
    }

    .rect-card {
        width: min(100%, 420px);
        max-width: 100%;
        min-height: auto;
        margin: 0 auto;
    }

    .rect-image {
        height: clamp(180px, 24vw, 220px);
    }

    .next-stage-box {
        position: static;
        margin: 0 auto 18px auto;
        max-width: 92%;
        right: auto;
        top: auto;
    }

    .presentation-card {
        width: 100%;
        max-width: 100%;
    }

    .presentation-image {
        height: auto;
    }

    .carousel-section,
    .gallery-section {
        width: min(100%, 98vw);
        padding: 10px;
        margin: 12px auto;
    }
}

@media (max-width: 520px) {
    .menu {
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }

    .menu li a:link,
    .menu li a:visited,
    .menu li span.link1 {
        width: 100%;
        padding: 14px 18px;
        font-size: 1.1rem;
    }

    .menu .sousmenu {
        padding-left: 14px;
    }

    .menu .sousmenu li a:link,
    .menu .sousmenu li a:visited {
        padding: 12px 16px;
    }
}

.support-section {
    background: lightsteelblue;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.support-logo {
    height: 30px;
    width: auto;
}

.support-section p {
    margin: 0;
    font-size: 1rem;
    color: #333;
    max-width: 600px;
}

.footer-support p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}

/* Animations for elo3 gallery and elo7 contact */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(0);
    }
}


/* Gallery items: subtle staggered fade-up */
.page-elo3 .gallery .gallery-item{
    opacity: 0;
    transform: translateY(12px);
    animation-name: fadeUp;
    animation-duration: 600ms;
    animation-timing-function: cubic-bezier(.2,.9,.2,1);
    animation-fill-mode: both;
}
.page-elo3 .gallery .gallery-item:nth-child(1){ animation-delay: 0ms; }
.page-elo3 .gallery .gallery-item:nth-child(2){ animation-delay: 90ms; }
.page-elo3 .gallery .gallery-item:nth-child(3){ animation-delay: 180ms; }
.page-elo3 .gallery .gallery-item:nth-child(4){ animation-delay: 270ms; }

/* Slight pop on hover for images */
.gallery .img-link img{ transition: transform 220ms ease, box-shadow 220ms ease; }
.gallery .img-link:hover img{ transform: scale(1.04); box-shadow: 0 8px 22px rgba(0,0,0,0.12); }

/* Contact page: slide in the panels */
.contact-container .info-box,
.contact-container .contact-form{
    opacity: 0;
    transform: translateX(14px);
    animation-name: slideInRight;
    animation-duration: 560ms;
    animation-timing-function: cubic-bezier(.2,.9,.2,1);
    animation-fill-mode: both;
}
.contact-container .info-box{ animation-delay: 70ms; }
.contact-container .contact-form{ animation-delay: 170ms; }

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce){
    .page-elo3 .gallery .gallery-item,
    .contact-container .info-box,
    .contact-container .contact-form,
    .gallery .img-link img{
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
p8{
    display: block;
    text-align: center;
    font-size: 0.95rem;
    color: #252222;
    margin-top: 40px;
}
p4{
    display: block;
    text-align: center;
    font-size: 4rem;
    color: rgba(255, 0, 0, 0.7);
    margin-top: 220px;
}

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#scrollTopBtn:hover {
    background-color: darkslateblue;
    transform: scale(1.1);
}

#scrollTopBtn:active {
    transform: scale(0.95);
}

.boutique-link {
    display: none;
}

.next-stage-box {
    position: absolute;
    top: 16px;
    right: 24px;
    background-color: white;
    border: 5px solid red;
    border-radius: 16px;
    padding: 28px 34px;
    color: black;
    font-family: Arial, sans-serif;
    font-size: 17px;
    text-align: center;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
    z-index: 100;
    max-width: 340px;
    animation: blink-border 0.45s infinite alternate;
}

.next-stage-box h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    opacity: 0.95;
}

.next-stage-box .date {
    font-size: 22px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .next-stage-box {
        top: 10px;
        right: 10px;
        padding: 10px 15px;
        font-size: 12px;
        max-width: 180px;
    }
}

@keyframes blink-border {
    from { box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.08), 0 6px 14px rgba(0, 0, 0, 0.16); }
    to { box-shadow: 0 0 0 6px rgba(255, 0, 0, 0.35), 0 6px 14px rgba(0, 0, 0, 0.16); }
}

/* Masque le lien 'Avis' dans le menu sur toutes les pages */
.menu li a[href="elo6.html"] {
    display: none !important;
}

/* Presentation section for Élodie and Sabine */
.presentation-section {
    background: transparent;
    padding: 150px 0;
    margin: -150px 0;
}

.presentation-container {
    display: flex;
    gap: 80px;
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 40px;
}

.presentation-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 600px;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(255, 102, 153, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.presentation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.presentation-card.left::before {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 28px;
    z-index: 10;
}

.presentation-card.right::before {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 28px;
    z-index: 10;
}

.presentation-image {
    width: 100%;
    height: 420px;
    overflow: hidden;
    position: relative;
}

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

.presentation-content {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.presentation-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: #333;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    font-weight: 700;
}

.presentation-role {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    color: #e64a7b;
    font-style: italic;
    font-weight: 600;
    font-family: 'Comic Sans MS', cursive;
}

.presentation-text {
    margin: 0;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

@media (max-width: 768px) {
    .presentation-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .presentation-card {
        width: 100%;
        max-width: 320px;
    }

    .presentation-section {
        padding: 40px 15px;
        margin: 20px 0;
    }
}

/* Photos/Vidéos page - elo4 */
.carousel-section {
    width: clamp(200px, 90vw, calc(100% - 100px));
    max-width: 1200px;
    height: clamp(120px, 20vw, 220px);
    background: transparent;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(8px, 2vw, 14px);
    margin: clamp(30px, 5vh, 60px) auto 12px;
    padding: 0 clamp(5px, 2vw, 10px);
}

.carousel-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    height: 100%;
    animation: scroll-carousel 24s linear infinite;
}

.carousel-image {
    flex: 0 0 20%;
    width: 20%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-image.landscape {
    object-position: center center;
}

.carousel-image.portrait {
    object-position: center top;
}

@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-160%);
    }
}

.gallery-section {
    width: clamp(200px, 90vw, calc(100% - 100px));
    height: clamp(200px, 40vh, 38vh);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 16px);
    padding: clamp(16px, 3vh, 24px) clamp(15px, 5vw, 50px);
    box-sizing: border-box;
    position: relative;
    margin: 0 auto;
}

.gallery-container {
    display: flex;
    gap: clamp(8px, 1.5vw, 14px);
    max-width: 1080px;
    width: 100%;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
}

.gallery-image {
    width: clamp(140px, 25vw, 220px);
    height: clamp(140px, 25vw, 220px);
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.gallery-image.landscape {
    width: clamp(160px, 28vw, 260px);
    height: clamp(120px, 18vw, 180px);
}

.gallery-image.portrait {
    width: clamp(120px, 18vw, 180px);
    height: clamp(160px, 28vw, 260px);
}

.gallery-image:hover {
    transform: scale(1.04);
}

.gallery-arrow,
.carousel-arrow {
    width: clamp(35px, 8vw, 50px);
    height: clamp(35px, 8vw, 50px);
    border: none;
    background-color: red;
    color: white;
    font-size: clamp(16px, 4vw, 24px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 10;
    flex-shrink: 0;
}

.gallery-arrow:hover,
.carousel-arrow:hover {
    background-color: darkred;
    transform: scale(1.1);
}

.gallery-arrow:active {
    transform: scale(0.95);
}

.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 999;
}

.video-modal.visible {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: min(100%, 980px);
    max-height: 90vh;
    background: rgba(0, 0, 0, 0.92);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

#videoPlayer {
    width: 100%;
    max-height: calc(90vh - 72px);
    border-radius: 12px;
    background: #000;
}

.video-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.left-arrow {
    order: 1;
}

.right-arrow {
    order: 3;
}

@media (max-width: 768px) {
    .carousel-section {
        height: clamp(120px, 25vh, 40vh);
        margin-top: clamp(30px, 5vh, 60px);
        width: clamp(200px, 85vw, calc(100% - 50px));
    }
    
    .carousel-image {
        flex: 0 0 25%;
        width: 25%;
    }
    
    .gallery-section {
        height: auto;
        flex-direction: column;
        padding: clamp(12px, 2.5vh, 20px) clamp(8px, 2vw, 10px);
        gap: clamp(10px, 2vw, 15px);
    }
    
    .gallery-container {
        gap: clamp(6px, 1.5vw, 10px);
    }
    
    .gallery-image {
        width: clamp(130px, 20vw, 180px);
        height: clamp(130px, 20vw, 180px);
    }
    
    .gallery-image.landscape {
        width: clamp(160px, 22vw, 200px);
        height: clamp(110px, 15vw, 130px);
    }
    
    .gallery-image.portrait {
        width: clamp(110px, 15vw, 130px);
        height: clamp(160px, 22vw, 200px);
    }
    
    .gallery-arrow {
        width: clamp(32px, 7vw, 40px);
        height: clamp(32px, 7vw, 40px);
        font-size: clamp(16px, 3.5vw, 20px);
    }
}

@media (max-width: 480px) {
    .carousel-section {
        height: clamp(100px, 20vh, 30vh);
        margin-top: clamp(20px, 3vh, 40px);
        gap: clamp(6px, 1.5vw, 10px);
    }
    
    .carousel-image {
        flex: 0 0 30%;
        width: 30%;
    }
    
    .carousel-arrow {
        width: clamp(28px, 6vw, 35px);
        height: clamp(28px, 6vw, 35px);
        font-size: clamp(14px, 3vw, 18px);
    }
    
    .gallery-section {
        height: auto;
        flex-direction: column;
        padding: clamp(10px, 2vh, 15px) clamp(6px, 1.5vw, 8px);
        gap: clamp(8px, 1.5vw, 12px);
    }
    
    .gallery-container {
        gap: clamp(5px, 1vw, 8px);
    }
    
    .gallery-image {
        width: clamp(100px, 18vw, 140px);
        height: clamp(100px, 18vw, 140px);
    }
    
    .gallery-image.landscape {
        width: clamp(130px, 20vw, 160px);
        height: clamp(90px, 13vw, 110px);
    }
    
    .gallery-image.portrait {
        width: clamp(90px, 13vw, 110px);
        height: clamp(130px, 20vw, 160px);
    }
    
    .gallery-arrow {
        width: clamp(28px, 6vw, 35px);
        height: clamp(28px, 6vw, 35px);
        font-size: clamp(14px, 3vw, 18px);
    }
}