@charset "UTF-8";

/* ============================================================
   LES ANTIQUITÉS DE ROMY - Styles communs
   Palette : vert olive / sable / or (méditerranéen)
   ============================================================ */

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

:root {
    --olive: #3f4a32;
    --olive-clair: #5b6747;
    --olive-fonce: #2c331f;
    --sable: #f7f4ec;
    --sable-fonce: #ece5d6;
    --creme: #fffdf8;
    --or: #bfa15a;
    --or-clair: #d4bd82;
    --texte: #2e2c26;
    --texte-doux: #5f5b50;
    --blanc: #ffffff;

    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Jost', 'Segoe UI', system-ui, sans-serif;

    --max: 1280px;
    --ombre: 0 18px 45px rgba(44, 51, 31, 0.14);
    --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

html {
    scroll-behavior: smooth;
    background-color: var(--sable);
}

body {
    font-family: var(--sans);
    color: var(--texte);
    background-color: var(--sable);
    line-height: 1.7;
    font-size: 17px;
    overflow-x: hidden;
}

a {
    color: var(--olive);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--or);
}

img {
    max-width: 100%;
    display: block;
}

strong {
    font-weight: 600;
    color: var(--texte);
}

/* ---------- Titres ---------- */
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--olive);
}

.suptitre {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--or);
    margin-bottom: 0.8rem;
}

.suptitre-center {
    text-align: center;
}

.section-titre {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 1.4rem;
    position: relative;
}

.section-intro {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--texte-doux);
    font-size: 1.1rem;
}

/* ---------- Boutons ---------- */
.bouton {
    display: inline-block;
    align-self: flex-start;
    margin-top: 0.6rem;
    padding: 0.95rem 2.4rem;
    background-color: var(--olive);
    color: var(--creme);
    font-family: var(--sans);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1px solid var(--olive);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.bouton:hover {
    background-color: var(--or);
    border-color: var(--or);
    color: var(--blanc);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(191, 161, 90, 0.35);
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sable-fonce);
}

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.7rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.header-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.header-logo-nom {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--olive);
    letter-spacing: 0.02em;
}

#menu ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

#menu a {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--texte);
    position: relative;
    padding-bottom: 4px;
}

#menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--or);
    transition: width var(--transition);
}

#menu a:hover {
    color: var(--olive);
}

#menu a:hover::after {
    width: 100%;
}

.header-tel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--olive);
    white-space: nowrap;
}

.header-tel img {
    width: 18px;
    height: 18px;
}

@media screen and (max-width: 980px) {
    #menu, .header-tel {
        display: none;
    }
    .header-inner {
        justify-content: flex-start;
        padding: 0.5rem 1rem;
        padding-right: 4rem; /* place pour le bouton burger */
    }
    .header-logo-nom {
        font-size: 1.15rem;
    }
    .header-logo img {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 400px) {
    .header-logo-nom {
        font-size: 1rem;
        letter-spacing: 0;
    }
    .header-logo {
        gap: 0.5rem;
    }
    .header-logo img {
        width: 36px;
        height: 36px;
    }
}

/* ============================================================
   MENU RESPONSIVE (burger)
   ============================================================ */
.menu-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 60;
    font-size: 1.6rem;
    color: var(--olive);
    cursor: pointer;
    background: var(--creme);
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(44, 51, 31, 0.18);
}

@media screen and (max-width: 980px) {
    .menu-btn {
        display: flex;
    }
}

.side-bar {
    background: var(--olive-fonce);
    width: 270px;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -270px;
    overflow-y: auto;
    transition: right 0.5s ease;
    z-index: 99;
}

.side-bar.active {
    right: 0;
}

.side-bar header {
    height: 60px;
    position: relative;
}

.close-btn {
    position: absolute;
    color: var(--or-clair);
    font-size: 1.5rem;
    left: 1.2rem;
    top: 1rem;
    cursor: pointer;
}

.side-bar .menu {
    margin-top: 1rem;
}

.side-bar .menu .item a {
    color: var(--creme);
    font-family: var(--sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: block;
    padding: 1rem 1.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.side-bar .menu .item a:hover {
    background: var(--olive);
    color: var(--or-clair);
}

/* ============================================================
   BLOCS texte + image (accueil & intérieur)
   ============================================================ */
.bloc {
    max-width: var(--max);
    margin: 0 auto;
    padding: 5rem 2rem;
}

.bloc-image {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.bloc-inverse {
    flex-direction: row-reverse;
}

.bloc-texte {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bloc-texte p {
    margin-bottom: 1.1rem;
    color: var(--texte-doux);
}

.bloc-figure {
    flex: 1;
    position: relative;
}

.bloc-figure img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 2px;
}

.bloc-figure::after {
    content: "";
    position: absolute;
    inset: 14px -14px -14px 14px;
    border: 1px solid var(--or);
    z-index: -1;
    border-radius: 2px;
}

.bloc-inverse .bloc-figure::after {
    inset: 14px 14px -14px -14px;
}

@media screen and (max-width: 900px) {
    .bloc {
        padding: 3rem 1.3rem;
    }
    .bloc-image, .bloc-inverse {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    /* Sur mobile : titre au-dessus de la photo, texte et bouton en dessous */
    .bloc-texte {
        display: contents;
    }
    .bloc-entete {
        order: 1;
        margin-bottom: 0;
    }
    .bloc-image .bloc-figure {
        order: 2;
    }
    .bloc-corps {
        order: 3;
        display: flex;
        flex-direction: column;
    }
    .bloc-corps .bouton {
        align-self: center;
    }

    .bloc-figure img {
        height: 300px;
    }
    .bloc-figure::after,
    .bloc-inverse .bloc-figure::after {
        inset: 10px -10px -10px 10px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    background-color: var(--olive-fonce);
    color: var(--sable-fonce);
    margin-top: 4rem;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 4rem 2rem 2.5rem;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 2.5rem;
}

.footer-nom {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--or-clair);
    display: block;
    margin-bottom: 1rem;
}

.footer-baseline {
    color: rgba(247, 244, 236, 0.7);
    font-size: 0.95rem;
}

.footer-titre {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--or-clair);
    margin-bottom: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    color: rgba(247, 244, 236, 0.8);
}

.footer-col ul li a {
    color: rgba(247, 244, 236, 0.8);
}

.footer-col ul li a:hover {
    color: var(--or-clair);
}

.footer-cta {
    margin-top: 1.3rem;
    background-color: var(--or);
    border-color: var(--or);
}

.footer-bas {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.4rem 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: var(--max);
    margin: 0 auto;
    font-size: 0.82rem;
    color: rgba(247, 244, 236, 0.6);
}

.footer-bas a {
    color: rgba(247, 244, 236, 0.75);
}

.footer-bas a:hover {
    color: var(--or-clair);
}

@media screen and (max-width: 800px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-cta {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-bas {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   FORMULAIRE DE CONTACT
   ============================================================ */
.contact-section {
    background-color: var(--sable-fonce);
    padding: 5rem 2rem;
}

.contact-section .section-titre,
.contact-section .section-intro {
    text-align: center;
}

.contact-section .section-titre {
    margin-bottom: 1rem;
}

.contact-grille {
    width: 100%;
    max-width: var(--max);
    margin: 2.5rem auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 3rem;
    align-items: start;
}

.contact-coords,
.contact-form {
    min-width: 0; /* empêche le débordement des items de grille */
}

.contact-coords {
    background-color: var(--creme);
    padding: 2.2rem;
    border-radius: 2px;
    box-shadow: var(--ombre);
}

.contact-nom {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--olive);
    display: block;
    margin-bottom: 1.2rem;
}

.contact-coords p {
    margin-bottom: 0.8rem;
    color: var(--texte-doux);
}

.contact-dispo {
    color: var(--or) !important;
    font-weight: 500;
    margin-top: 1rem;
}

.contact-coords iframe {
    width: 100%;
    max-width: 100%;
    height: 280px;
    border: 0;
    border-radius: 2px;
    margin-top: 1.5rem;
    display: block;
}

.contact-form {
    background-color: var(--creme);
    padding: 2.2rem;
    border-radius: 2px;
    box-shadow: var(--ombre);
}

.form-titre {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--olive);
    margin-bottom: 1.2rem;
}

.contact-form label {
    display: block;
    margin: 1rem 0 0.4rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--texte-doux);
}

.inputedit {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--sable-fonce);
    background-color: var(--sable);
    color: var(--texte);
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.inputedit:focus {
    outline: none;
    border-color: var(--or);
    box-shadow: 0 0 0 3px rgba(191, 161, 90, 0.15);
}

#message {
    min-height: 9rem;
    resize: vertical;
}

.form-antirobot {
    font-style: italic;
    color: var(--olive);
    margin: 0.3rem 0;
}

.asterisque {
    color: #b03a2e;
}

#valider {
    margin-top: 1.6rem;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    background-color: var(--olive);
    color: var(--creme);
    border: none;
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
}

#valider:hover {
    background-color: var(--or);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(191, 161, 90, 0.3);
}

.form-erreurs {
    background-color: rgba(176, 58, 46, 0.08);
    border-left: 3px solid #b03a2e;
    padding: 1rem 1.2rem;
    border-radius: 2px;
    margin-bottom: 1rem;
}

#notifications {
    font-weight: 600;
    color: #b03a2e;
}

.form-erreurs ul {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.error {
    color: #b03a2e;
    font-size: 0.92rem;
}

@media screen and (max-width: 900px) {
    .contact-grille {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
    .contact-section {
        padding: 3rem 1.3rem;
    }
    .contact-coords,
    .contact-form {
        padding: 1.1rem;
    }
}

@media screen and (max-width: 400px) {
    #valider {
        letter-spacing: 0.1em;
        padding: 0.9rem 0.5rem;
    }
}
