/* =========================================================
   POLICES
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zhi+Mang+Xing&display=swap');


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans", sans-serif;
    color: #2b2b2b;
    background: #a55bd4;
    overflow-x: hidden;
}


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

.portfolio-navbar {
    width: 100%;
    min-height: 38px;
    top: 0;
    left: 0;
    padding: 0 12px !important;
    background: #ba7bf2 !important;
    display: flex;
    align-items: center;
    position: fixed;
    z-index: 9999;
}


/* Conteneur Bootstrap */

.portfolio-navbar .container-fluid {
    width: 100%;

    padding: 0 !important;

    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}


/* Logo */

.portfolio-navbar .navbar-brand {
    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    align-items: center;
}


.nav-logo {
    width: 28px;
    height: 28px;

    object-fit: contain;

    display: block;
}


/* Zone des liens */

.portfolio-navbar .navbar-collapse {
    display: flex !important;

    align-items: center !important;
    justify-content: flex-end !important;

    flex-grow: 1;
    flex-basis: auto !important;
}


/* Liste */

.portfolio-navbar .navbar-nav {
    display: flex !important;

    flex-direction: row !important;

    align-items: center !important;

    justify-content: flex-end;

    gap: 35px;

    margin: 0 0 0 auto !important;
    padding: 0 !important;

    list-style: none !important;
}


.portfolio-navbar li {
    list-style: none !important;
}


/* Liens */

.portfolio-navbar .nav-link {
    color: white !important;

    font-size: 0.72rem;

    font-weight: 300;

    line-height: 1;

    padding: 0 !important;
    margin: 0 !important;

    text-decoration: none;

    white-space: nowrap;

    transition: 0.3s;
}


.portfolio-navbar .nav-link:hover,
.portfolio-navbar .nav-link.active {
    color: #f7dfaa !important;
}


/* =========================================================
   ÉCRAN 1 — HERO
   ========================================================= */

.hero-media {
    position: relative;

    width: 100%;

    /* toute la hauteur de l'écran moins la navbar */
    height: calc(100vh - 56px);

    min-height: 600px;

    overflow: hidden;
}


.hero-bg {
    width: 100%;
    height: 100%;

    object-fit: cover;

    /* change ceci si tu veux déplacer le cadrage */
    object-position: center center;

    display: block;
}


/* Petite couche sombre légère */

.hero-media::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(20, 20, 50, 0.02),
            rgba(30, 20, 60, 0.12)
        );

    pointer-events: none;
}


/* =========================================================
   CARTE DU HERO
   ========================================================= */

.hero-card {
    position: absolute;

    right: 6%;
    top: 50%;
    transform: translateY(-50%);

    z-index: 5;

    /* Vignette plus grande */
    width: min(520px, 42vw);

    padding: 40px 45px;

    background: rgba(174, 91, 220, 0.82);

    border: 3px solid #f4dc9b;
    border-radius: 8px;

    backdrop-filter: blur(5px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-card h1 {
    font-family: "Zhi Mang Xing", cursive;

    font-size: 3.2rem;
    font-weight: 400;

    color: #f4dc9b;

    margin-bottom: 12px;
}


.hero-subtitle {
    color: #f4dc9b;

    font-size: 1.1rem;

    letter-spacing: 2px;
    text-transform: uppercase;

    margin-bottom: 20px;
}


.hero-text {
    color: white;

    font-size: 1.05rem;
    line-height: 1.7;

    margin-bottom: 20px;
}


.hero-subtitle {
    margin-bottom: 8px;

    color: #f4dd9b;

    font-size: 0.7rem;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.hero-text {
    color: white;

    font-size: 0.62rem;

    line-height: 1.5;
}


/* Bouton */

.hero-card .btn {
    padding: 11px 24px;

    border: 2px solid #f4dc9b;
    border-radius: 30px;

    background: transparent;

    color: white;

    font-size: 0.95rem;

    transition: 0.3s;
}


.hero-card .btn:hover {
    background: #f4dc9b;

    color: #713aa0;
}


/* =========================================================
   BIENVENUE / ITSUKUSHIMA
   ========================================================= */

.welcome-section {
    width: 100%;

    background: #a55bd4;
}


.welcome-section .container-fluid {
    padding: 0;
}


.welcome-section .row {
    margin: 0;

    display: flex;

    min-height: 245px;
}


/* =========================================================
   IMAGE À GAUCHE
   ========================================================= */

.welcome-image {
    position: relative;

    width: 50%;
    height: 100%;

    flex: 0 0 50%;

    padding: 0 !important;

    overflow: hidden;

    background: #c49ac4;

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


.welcome-image img {
    width: 100%;
    height: 100%;

    /* Affiche l'image ENTIÈRE */
    object-fit: contain;

    object-position: center center;

    display: block;
}


.image-caption {
    position: absolute;

    top: 30px;
    left: 50%;

    transform: translateX(-50%);

    color: rgba(80, 70, 95, 0.65);

    font-family: "Playfair Display", serif;

    font-size: 0.85rem;

    white-space: nowrap;
}


/* =========================================================
   TEXTE À DROITE
   ========================================================= */

.welcome-text {
    width: 50%;

    padding: 28px 30px !important;

    background: #a55bd4;

    color: white;

    display: flex;

    flex-direction: column;

    justify-content: flex-start;
}


.welcome-text h2 {
    margin-bottom: 70px;
    margin-top: 50px;;
    color: #E8D5A3;

    font-family: "Playfair Display", serif;

    font-size: 45px;

    font-weight: 400;

    text-align: center;
}


.welcome-text p {
    
    color: white;
    font-family: "Noto Sans", sans-serif;
    font-size: 13px;

    line-height: 1.70;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
    width: 100%;
    padding: 100px 7%;
    background: #a55bd4;
}


/* CONTENEUR */

.contact-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;

    align-items: center;

    padding: 65px 70px;

    background: linear-gradient(
        135deg,
        rgba(116, 48, 157, 0.75),
        rgba(174, 91, 220, 0.55)
    );

    border: 1px solid rgba(244, 220, 155, 0.6);
    border-radius: 10px;

    box-shadow: 0 20px 50px rgba(55, 20, 80, 0.25);
}


/* =========================================================
   GAUCHE
   ========================================================= */

.contact-intro {
    color: white;
}

.contact-small-title {
    display: block;
    margin-bottom: 8px;

    color: #f4dc9b;

    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.contact-intro h2 {
    margin-bottom: 20px;

    color: #f4dc9b;

    font-family: "Zhi Mang Xing", cursive;
    font-size: 3.5rem;
    font-weight: 400;
}

.contact-description {
    margin-bottom: 40px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 0.95rem;
    line-height: 1.7;
}


/* INFOS */

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

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

    border: 1px solid #f4dc9b;
    border-radius: 50%;

    color: #f4dc9b;
}

.contact-detail span {
    display: block;

    color: #f4dc9b;

    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-detail p {
    margin: 3px 0 0;

    color: white;

    font-size: 0.9rem;
}


/* =========================================================
   FORMULAIRE
   ========================================================= */

.contact-form-wrapper {
    width: 100%;

    padding: 40px;

    background: #eee0f5;

    border-radius: 8px;

    box-shadow: 0 15px 35px rgba(50, 20, 70, 0.2);
}

.contact-form {
    width: 100%;

    display: flex;
    flex-direction: column;
}

.form-group {
    width: 100%;
    margin-bottom: 22px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #743c99;

    font-family: "Playfair Display", serif;
    font-size: 0.9rem;
}


/* CHAMPS */

.contact-form input,
.contact-form textarea {
    display: block;

    width: 100%;

    border: 1px solid rgba(116, 60, 153, 0.22);
    border-radius: 5px;

    outline: none;

    padding: 13px 15px;

    background: rgba(255, 255, 255, 0.8);

    color: #392245;

    font-family: "Noto Sans", sans-serif;
    font-size: 0.9rem;

    transition: 0.25s;
}

.contact-form input {
    height: 50px;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #a55bd4;

    background: white;

    box-shadow: 0 0 0 3px rgba(165, 91, 212, 0.12);
}


/* BOUTON */

.contact-button {
    align-self: flex-start;

    padding: 12px 24px;

    border: 1px solid #f4dc9b;
    border-radius: 25px;

    background: #9653cf;

    color: white;

    font-size: 0.85rem;

    cursor: pointer;

    transition: 0.3s;
}

.contact-button:hover {
    background: #f4dc9b;
    color: #713aa0;

    transform: translateY(-2px);
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 900px) {

    .contact-container {
        grid-template-columns: 1fr;

        gap: 45px;

        padding: 50px;
    }

}


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

@media (max-width: 600px) {

    .contact-section {
        padding: 60px 20px;
    }

    .contact-container {
        padding: 35px 25px;
    }

    .contact-intro h2 {
        font-size: 2.7rem;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .contact-button {
        width: 100%;
    }

}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 768px) {

    /* On garde volontairement les liens sur une ligne,
       comme sur ta maquette */

    .portfolio-navbar {
        min-height: 32px;

        padding: 0 6px !important;
    }


    .nav-logo {
        width: 24px;
        height: 24px;
    }


    .portfolio-navbar .navbar-nav {
        gap: 25px;
    }


    .portfolio-navbar .nav-link {
        font-size: 0.58rem;
    }


    .hero-media {
        height: 220px;
    }


    .hero-card {
        width: 220px;

        right: 4%;

        padding: 14px 16px;
    }


    .hero-card h1 {
        font-size: 1.35rem;
    }


    /* TRÈS IMPORTANT :
       Itsukushima reste à gauche,
       le texte reste à droite */

    .welcome-section .row {
        flex-wrap: nowrap;

        min-height: 220px;
    }


    .welcome-image,
    .welcome-text {
        width: 50%;
    }


    .welcome-text {
        padding: 22px 18px !important;
    }


    .welcome-text h2 {
        font-size: 0.85rem;

        margin-bottom: 18px;
    }


    .welcome-text p {
        font-size: 0.52rem;
    }


    .commentaire-box {
        width: 80%;

        padding: 35px 30px;
    }
}


/* =========================================================
   PETITS ÉCRANS
   ========================================================= */

@media (max-width: 480px) {

    .portfolio-navbar .navbar-toggler {
        display: none;
    }


    .portfolio-navbar .navbar-collapse {
        display: flex !important;
    }


    .portfolio-navbar .navbar-nav {
        flex-direction: row !important;

        gap: 18px;
    }


    .portfolio-navbar .nav-link {
        font-size: 0.48rem;
    }


    .nav-logo {
        width: 22px;
        height: 22px;
    }


    .hero-media {
        height: 180px;
    }


    .hero-card {
        width: 145px;

        right: 4%;

        padding: 9px 10px;
    }


    .hero-card h1 {
        margin-bottom: 3px;

        font-size: 1rem;
    }


    .hero-subtitle {
        margin-bottom: 4px;

        font-size: 0.43rem;
    }


    .hero-text {
        font-size: 0.4rem;

        line-height: 1.35;
    }


    .hero-card .btn {
        margin-top: 5px;

        padding: 4px 8px;

        font-size: 0.4rem;
    }


    .welcome-section .row {
        flex-wrap: nowrap !important;

        min-height: 210px;
    }


    .welcome-image,
    .welcome-text {
        width: 50% !important;
        flex: 0 0 50% !important;
    }


    .welcome-text {
        padding: 18px 13px !important;
    }


    .welcome-text h2 {
        margin-bottom: 14px;

        font-size: 0.65rem;
    }


    .welcome-text p {
        font-size: 0.38rem;

        line-height: 1.45;
    }


    .image-caption {
        top: 25px;

        font-size: 0.55rem;
    }


    .contact-section {
        min-height: 330px;

        padding-top: 95px;
    }


    .commentaire-box {
        width: 78%;

        padding: 28px 30px;
    }


    .commentaire-box label {
        font-size: 0.7rem;
    }


    .commentaire-box input {
        height: 25px;

        margin-bottom: 8px;
    }


    .commentaire-box textarea {
        height: 65px;
    }


    .commentaire-box button {
        width: 100px;

        padding: 6px;

        font-size: 0.6rem;
    }
}
