/* =========================================
   FICHIER : contact.css
   PROJET : Hôtel NICLIB
========================================= */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f6f9;
    color: #333333;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font-family: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.header {
    width: 100%;
    position: relative;
    z-index: 1000;
    background-color: #061a33;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.navbar {
    width: 90%;
    max-width: 1250px;
    min-height: 85px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* =========================================
   LOGO
========================================= */

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #d5a62e;
    background-color: #ffffff;
}

.logo-text h1 {
    color: #ffffff;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: 2px;
}

.logo-text span {
    display: block;
    margin-top: 4px;
    color: #d5a62e;
    font-size: 12px;
    letter-spacing: 1px;
}


/* =========================================
   NAVIGATION
========================================= */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    display: block;
    padding: 12px 13px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #061a33;
    background-color: #d5a62e;
    transform: translateY(-2px);
}


/* =========================================
   BANNIÈRE CONTACT
========================================= */

.contact-banner {
    min-height: 430px;
    background-image: url("cour_hotel.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-overlay {
    min-height: 430px;
    padding: 50px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        rgba(3, 18, 38, 0.9),
        rgba(6, 26, 51, 0.72)
    );
}

.contact-banner-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
    color: #ffffff;
}

.contact-banner-content span {
    display: block;
    margin-bottom: 10px;
    color: #d5a62e;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.contact-banner-content h2 {
    margin-bottom: 18px;
    font-size: 52px;
    line-height: 1.2;
}

.contact-banner-content p {
    max-width: 700px;
    margin: 0 auto;
    color: #e1e7ee;
    font-size: 18px;
    line-height: 1.8;
}


/* =========================================
   SECTION CONTACT
========================================= */

.contact-section {
    padding: 85px 0 100px;
    background-color: #f4f6f9;
}

.section-title {
    max-width: 850px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-title span {
    display: block;
    margin-bottom: 8px;
    color: #d5a62e;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title h2 {
    color: #061a33;
    font-size: 38px;
}

.title-line {
    width: 75px;
    height: 4px;
    margin: 18px auto 22px;
    border-radius: 10px;
    background-color: #d5a62e;
}

.section-title p {
    color: #68717d;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================
   CONTENEUR CONTACT
========================================= */

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.85fr 1.4fr;
    gap: 35px;
    align-items: stretch;
}


/* =========================================
   INFORMATIONS DE CONTACT
========================================= */

.contact-info {
    padding: 38px 32px;
    border-radius: 16px;
    background: linear-gradient(145deg, #061a33, #0a2c55);
    color: #ffffff;
    box-shadow: 0 12px 35px rgba(6, 26, 51, 0.22);
}

.contact-info h3 {
    position: relative;
    margin-bottom: 18px;
    padding-bottom: 14px;
    font-size: 26px;
}

.contact-info h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 55px;
    height: 4px;
    border-radius: 10px;
    background-color: #d5a62e;
}

.contact-info-intro {
    margin-bottom: 32px;
    color: #d6deea;
    font-size: 15px;
    line-height: 1.8;
}

.info-item {
    margin-bottom: 20px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.06);
    transition: 0.3s ease;
}

.info-item:hover {
    transform: translateX(6px);
    border-color: rgba(213, 166, 46, 0.55);
    background-color: rgba(255, 255, 255, 0.1);
}

.info-icon {
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d5a62e;
    color: #061a33;
    font-size: 21px;
}

.info-item h4 {
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 17px;
}

.info-item p {
    color: #d6deea;
    font-size: 14px;
    line-height: 1.7;
}

.info-item a {
    color: #d6deea;
    transition: 0.3s ease;
}

.info-item a:hover {
    color: #d5a62e;
}


/* =========================================
   FORMULAIRE
========================================= */

.form-container {
    padding: 38px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 12px 35px rgba(6, 26, 51, 0.14);
}

.form-container h3 {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 14px;
    color: #061a33;
    font-size: 27px;
}

.form-container h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 55px;
    height: 4px;
    border-radius: 10px;
    background-color: #d5a62e;
    
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    color: #26384c;
    font-size: 14px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #d8dee7;
    border-radius: 9px;
    outline: none;
    background-color: #f9fafc;
    color: #333333;
    font-size: 15px;
    transition: 0.3s ease;
}

.form-group input {
    height: 50px;
    padding: 0 15px;
}

.form-group textarea {
    min-height: 170px;
    padding: 15px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9aa3af;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #aeb8c5;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #d5a62e;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(213, 166, 46, 0.15);
    justify-content: center;
}


/* =========================================
   BOUTON ENVOYER
========================================= */

.btn-envoyer {
    width: 100%;
    min-height: 52px;
    padding: 13px 25px;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    background-color: #061a33;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn-envoyer:hover {
    color: #061a33;
    background-color: #d5a62e;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(6, 26, 51, 0.2);
}

.btn-envoyer:active {
    transform: translateY(0);
}


/* =========================================
   MESSAGES D’ERREUR ET DE SUCCÈS
========================================= */

.message-erreur,
.message-succes {
    margin-bottom: 25px;
    padding: 16px 18px;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.7;
}

.message-erreur {
    border-left: 5px solid #dc3545;
    background-color: #fce8ea;
    color: #8a1c26;
}

.message-erreur strong {
    display: block;
    margin-bottom: 8px;
}

.message-erreur ul {
    padding-left: 20px;
    list-style: disc;
}

.message-erreur li {
    margin-bottom: 4px;
}

.message-succes {
    border-left: 5px solid #198754;
    background-color: #e6f5ed;
    color: #146c43;
    font-weight: bold;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    background-color: #031126;
    color: #ffffff;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 0 50px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 45px;
}

.footer-column h3 {
    position: relative;
    margin-bottom: 24px;
    padding-bottom: 12px;
    color: #ffffff;
    font-size: 20px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px;
    height: 3px;
    border-radius: 8px;
    background-color: #d5a62e;
}

.footer-column p,
.footer-column li {
    margin-bottom: 12px;
    color: #bbc5d1;
    font-size: 14px;
    line-height: 1.8;
}

.footer-column li::before {
    content: "›";
    margin-right: 8px;
    color: #d5a62e;
}

.footer-column a {
    color: #bbc5d1;
    transition: 0.3s ease;
}

.footer-column a:hover {
    color: #d5a62e;
}

.footer-bottom {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background-color: #020c1a;
    text-align: center;
}

.footer-bottom p {
    color: #aeb8c4;
    font-size: 14px;
}


/* =========================================
   RESPONSIVE TABLETTE
========================================= */

@media screen and (max-width: 1050px) {

    .navbar {
        width: 95%;
    }

    .nav-menu {
        gap: 3px;
    }

    .nav-menu a {
        padding: 10px 8px;
        font-size: 14px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================
   PETITE TABLETTE
========================================= */

@media screen and (max-width: 850px) {

    .navbar {
        padding: 18px 0;
        flex-direction: column;
    }

    .nav-menu {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-banner,
    .contact-overlay {
        min-height: 380px;
    }

    .contact-banner-content h2 {
        font-size: 42px;
    }

    .contact-info,
    .form-container {
        padding: 32px 28px;
    }
}


/* =========================================
   TÉLÉPHONE
========================================= */

@media screen and (max-width: 600px) {

    .container {
        width: 92%;
    }

    .logo {
        width: 55px;
        height: 55px;
    }

    .logo-text h1 {
        font-size: 21px;
    }

    .nav-menu li {
        flex: 1 1 42%;
    }

    .nav-menu a {
        width: 100%;
        padding: 10px 6px;
        text-align: center;
        font-size: 13px;
        background-color: rgba(255, 255, 255, 0.05);
    }

    .contact-banner,
    .contact-overlay {
        min-height: 340px;
    }

    .contact-banner-content h2 {
        font-size: 34px;
    }

    .contact-banner-content p {
        font-size: 15px;
    }

    .contact-section {
        padding: 65px 0 75px;
    }

    .section-title {
        margin-bottom: 38px;
    }

    .section-title h2 {
        font-size: 29px;
    }

    .section-title p {
        font-size: 15px;
    }

    .contact-info,
    .form-container {
        padding: 26px 20px;
        border-radius: 12px;
    }

    .contact-info h3,
    .form-container h3 {
        font-size: 23px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: auto;
    }

    .info-item {
        padding: 15px;
    }

    .info-icon {
        min-width: 43px;
        height: 43px;
        font-size: 19px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 55px 0 40px;
    }
}


/* =========================================
   TRÈS PETIT ÉCRAN
========================================= */

@media screen and (max-width: 380px) {

    .nav-menu li {
        flex: 1 1 100%;
    }

    .contact-banner-content h2 {
        font-size: 29px;
    }

    .contact-info,
    .form-container {
        padding: 22px 16px;
    }

    .info-item {
        flex-direction: column;
    }
}
