/* ==========================================================
   YAO 2027 - RESPONSIVE GLOBAL STYLE
   ========================================================== */


/* =========================
   VARIABLES
   ========================= */

:root {

    --primary: #6a6dfa;
    --primary-light: #b1a3e0;
    --primary-dark: #5b4b8a;

    --background: #f8f4fa;
    --white: #ffffff;
    --black: #000000;

    --text-light: #4b3f63;

    --shadow:
        0 6px 20px rgba(90,70,120,0.15);

}


/* =========================
   GLOBAL
   ========================= */

html {
    scroll-behavior: smooth;
}


body {

    background-color: var(--background);

    color: var(--black);

    font-family:
        "Libre Baskerville",
        Georgia,
        serif;

    overflow-x: hidden;

}


img {

    max-width:100%;

    height:auto;

    display:block;

}


/* =========================
   NAVBAR
   ========================= */


.navbar {

    background-color:
        var(--white) !important;

    padding-top:.5rem;

    padding-bottom:.5rem;

}


.navbar-brand img {

    height:50px;

    width:auto;

}


.navbar-dark .navbar-nav .nav-link {

    color:
        var(--black) !important;

    font-weight:500;

}


.navbar-dark .navbar-nav .nav-link:hover {

    color:
        var(--primary-dark) !important;

}


.navbar-dark .navbar-toggler {

    border-color:
        rgba(0,0,0,.2);

}


.navbar-dark .navbar-toggler-icon {

    filter:
        invert(1);

}



/* =========================
   HERO SECTION
   ========================= */


.hero {

    min-height:90vh;

    display:flex;

    justify-content:center;

    align-items:center;

    flex-direction:column;

    text-align:center;

    position:relative;

    padding:
        120px 20px 60px;


    background-image:
        url("../img/paris3.jpg");

    background-size:
        cover;

    background-position:
        center center;

    overflow:hidden;

}



.hero-overlay {

    position:absolute;

    inset:0;

    background:
        rgba(255,255,255,.35);

}



.hero-content {

    position:relative;

    z-index:2;

    max-width:900px;

    padding:20px;

}


.hero h1 {

    font-size:
        clamp(2rem,5vw,4rem);

    font-weight:700;

    text-shadow:
        1px 1px 6px rgba(0,0,0,.4);

}

.hero-content h1 {
    font-size: 2em;
}

.hero-content h3 {
    font-size: 1.8rem;
}

.hero h4 {

    font-size:
        clamp(1rem,2vw,1.5rem);

    text-shadow:
        1px 1px 5px rgba(0,0,0,.3);

}


/* premier hero après navbar */

.hero:first-of-type {

    margin-top:
        70px;

}

.home-logo{
    max-width:275px;
    margin:auto;
}

/* =========================
   BUTTONS
   ========================= */


.btn-pink {

    background-color:
        var(--primary);

    color:white;

    border:none;

}


.btn-pink:hover {

    background-color:
        #92a2ff;

    color:white;

}


/* =========================
   GENERAL SECTIONS
   ========================= */


section {

    position:relative;

}


.container {

    max-width:
        1200px;

}


.about p {

    font-size:
        clamp(1rem,1.5vw,1.2rem);

    line-height:
        1.8;

}



/* =========================
   LOGOS PARTNERS
   ========================= */


.logo {

    max-width:
        150px;

    width:
        100%;

    height:auto;

    object-fit:contain;

}



/* =========================
   PROGRAM TABLE
   ========================= */


.table {

    border-radius:
        14px;

    overflow:hidden;

    box-shadow:
        var(--shadow);

    border:none;

}


.table thead {

    background:
        linear-gradient(
            90deg,
            #5b4b8a,
            #7b68b3
        );

    color:white;

}


.table th,
.table td {

    vertical-align:
        middle;

    text-align:center;

}


.table td,
.table th {

    min-width:
        110px;

}


th[scope="row"] {

    background-color:
        #f4f0fa;

    color:
        #4b3f63;

    font-weight:
        600;

    white-space:
        nowrap;

}


.session {

    background-color:
        #dcd6f7 !important;

}


.invited {

    background-color:
        #b8b5ff !important;
    
    font-weight:
        600;

}


.breaktime {

    background-color:
        #f3e8ff !important;

}


.company {

    background-color:
        #8ea9f8 !important;

}


.special {

    background-color:
        #8393fa !important;

}


.evening {

    background-color:
        #e2d4ff !important;

}


.special-conference {

    background-color:
        #b79ad8 !important;

    color:white;

}


.table-hover tbody tr:hover td {

    background-color:
        rgba(123,104,179,.08);

}


td:empty {

    background-color:
        #fafafa;

}

/* =========================
   SPEAKERS
   ========================= */


.speaker {

    text-align:center;

}


.speaker img {

    width:200px;

    height:200px;

    object-fit:cover;

    margin:auto;

}


.speaker h4 {

    margin-top:1rem;

    font-size:
        clamp(1.1rem,2vw,1.4rem);

}


.speaker p {

    font-size:.95rem;

}



/* =========================
   CONTACT TEAM CARDS
   ========================= */


.card {

    border:none;

    border-radius:15px;

    overflow:hidden;

    box-shadow:
        0 4px 15px rgba(0,0,0,.08);

    height:100%;

}


.card img {

    width:100%;

    height:250px;

    object-fit:cover;

}


.card-body {

    display:flex;

    flex-direction:column;

    justify-content:center;

}


.card-title {

    font-size:
        1.2rem;

}



/* =========================
   FORMS
   ========================= */


form {

    width:100%;

}


.form-control {

    border-radius:10px;

    padding:.8rem;

}


.form-control:focus {

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 .2rem rgba(106,109,250,.25);

}



/* =========================
   MAPS
   ========================= */


iframe {

    max-width:100%;

    border-radius:10px;

}


.map iframe {

    width:100%;

    min-height:400px;

}



/* =========================
   FOOTER
   ========================= */


footer {

    background-color:
        #212529;

}


footer p {

    margin-bottom:.3rem;

}



/* =========================
   RESPONSIVE TABLETS
   ========================= */


@media (max-width:992px){


    .navbar-brand img {

        height:45px;

    }


    .hero {

        min-height:75vh;

    }


    .speaker img {

        width:180px;

        height:180px;

    }


}



/* =========================
   RESPONSIVE MOBILE
   ========================= */


@media (max-width:768px){


    .navbar-brand img {

        height:40px;

    }


    .hero {

        min-height:65vh;

        padding:
            110px 15px 40px;

    }


    .hero-content {

        padding:
            10px;

    }


    .hero h1 {

        line-height:
            1.25;

    }


    .logo {

        max-width:
            120px;

    }


    .speaker img {

        width:150px;

        height:150px;

    }


    .table td,
    .table th {

        min-width:
            90px;

        font-size:
            .8rem;

        padding:
            .4rem;

    }

    .map iframe {

        min-height:
            300px;

    }


}

.about p {
    text-align: justify;
}


/* =========================
   SMALL PHONES
   ========================= */


@media (max-width:576px){


    .hero {

        min-height:
            55vh;

    }


    .hero h1 {

        font-size:
            1.7rem;

    }


    .hero h4 {

        font-size:
            1rem;

    }


    .btn-lg {

        width:
            100%;

    }


    .speaker img {

        width:
            130px;

        height:
            130px;

    }


    footer {

        font-size:
            .85rem;

    }


}


.research-area {
    font-size: 0.8rem;
    font-style: italic;
}


@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #212529;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
}


@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #212529;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
}

.sponsor {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsor img {
    max-width: 180px;
    max-height: 100px;
    width: auto;
    height: auto;
}



/* Galerie photos YAO */
.yao-gallery {
    width: 100%;
    max-width: 420px;
    margin: 40px auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
    background-color: #fff;
}

/* Images : conserver leurs proportions naturelles */
.yao-gallery .carousel-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Légendes */
.yao-gallery .yao-caption {
    text-align: center;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #555;
    background-color: #fff;
    font-style: italic;
}

/* Flèches */
.yao-gallery .carousel-control-prev,
.yao-gallery .carousel-control-next {
    width: 12%;
}

/* Téléphones */
@media (max-width: 768px) {
    .yao-gallery {
        max-width: 340px;
        width: 90%;
    }
}


/* ========================================
   SECOND HERO - NYMPHEAS
   ======================================== */

.register-hero {
    position: relative;

    min-height: 75vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background-image: url("../img/nympheas.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    padding: 100px 20px;
}

/* Voile par-dessus l'image pour garder le texte lisible */
.register-hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(255, 255, 255, 0.5);
}

/* Contenu au-dessus de l'image */
.register-content {
    position: relative;
    z-index: 1;

    text-align: center;
}

/* Texte Paris / date */
.register-content p {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Logo */
.register-content .home-logo {
    max-width: 500px;
    width: 80%;
    height: auto;
}

/* Bouton */
.register-content .btn {
    margin-top: 1rem;
}

/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 768px) {

    .register-hero {
        min-height: 70vh;

        padding: 80px 20px;

        background-position: center center;
    }

    .register-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .register-content .home-logo {
        width: 85%;
        max-width: 350px;
        margin-bottom: 1rem !important;
    }

    .register-content .btn {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }
}


