/* ======================================================================
   JO-TOURISME  |  MAISON PARISIENNE
   Feuille principale : navigation, typographie, fiches, formulaires, footer
   Refonte CSS uniquement : conserve le HTML / PHP et les classes existantes.
   ====================================================================== */

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

:root {
    color-scheme: light;
    --ink: #182735;
    --ink-deep: #0c1824;
    --ink-soft: #35485a;
    --gold: #ad8650;
    --gold-light: #d9bc8c;
    --surface: #ffffff;
    --surface-warm: #f8f6f1;
    --surface-soft: #f0ede6;
    --line: #e6e0d6;
    --text: #26323d;
    --muted: #66727b;
    --radius: 18px;
    --shadow-soft: 0 12px 40px rgba(13, 26, 38, .07);
    --shadow-lift: 0 25px 55px rgba(13, 26, 38, .14);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--surface-warm);
    color: var(--text);
    font: 400 16px/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
button, input, select, textarea { font: inherit; }
button, input[type="submit"], input[type="button"] { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
main { flex: 1 0 auto; width: 100%; padding: 26px 0 90px; }
::selection { color: var(--ink-deep); background: #ead8ba; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 {
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -.025em;
}
h1, h2 { text-align: center; margin: 0; }
h1 { font-size: clamp(2.3rem, 4.5vw, 4.25rem); padding: 38px 20px 24px; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); padding: 38px 20px 22px; }
h2::after {
    content: '';
    display: block;
    width: 58px;
    height: 2px;
    margin: 20px auto 0;
    background: var(--gold);
}

/* ----------------------------------------------------------------------
   NAVIGATION  —  garde les éléments et liens déjà présents
   ---------------------------------------------------------------------- */
.navigation_navbar {
    position: relative;
    z-index: 20;
    width: 100%;
    background: var(--ink-deep);
    border-bottom: 1px solid rgba(217, 188, 140, .26);
    box-shadow: 0 7px 30px rgba(7, 16, 23, .11);
}
.navigation_navbar ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 22px;
    max-width: 1440px;
    min-height: 100px;
    margin: 0 auto;
    padding: 13px clamp(18px, 4vw, 58px);
    list-style: none;
}
.navigation_navbar li, .navigation_navbar ul li { list-style: none; padding: 0; margin: 0; }
.navigation_navbar ul li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 2px;
    color: #f5f0e8;
    text-decoration: none;
    font-size: .78rem;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: color .3s ease;
}
.navigation_navbar ul li a::after {
    content: '';
    position: absolute;
    left: 2px; right: 2px; bottom: 3px;
    height: 1px;
    background: var(--gold-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
.navigation_navbar ul li a:hover { color: var(--gold-light); }
.navigation_navbar ul li a:hover::after,
.navigation_navbar ul li a:focus-visible::after { transform: scaleX(1); }
.navigation_navbar .image-logo {
    display: block;
    width: auto;
    max-width: min(210px, 45vw);
    height: 74px;
    object-fit: contain;
}
.identification-nav {
    color: var(--gold-light);
    font: 600 .75rem/1.4 var(--font-body);
    text-transform: uppercase;
    letter-spacing: .12em;
}

/* ----------------------------------------------------------------------
   FICHES ÉTABLISSEMENTS (TABLEAU PHP inchangé)
   Chaque <tr> devient une fiche soignée sur ordinateur.
   ---------------------------------------------------------------------- */
.affiche-tab {
    width: min(1260px, calc(100% - 44px));
    margin: 20px auto 72px;
    border-collapse: separate;
    border-spacing: 0 20px;
    table-layout: fixed;
}
.affiche-tab tr { filter: drop-shadow(0 7px 18px rgba(12, 24, 36, .055)); }
.affiche-tab td {
    padding: 24px 16px;
    background: var(--surface);
    border-block: 1px solid var(--line);
    text-align: center;
    vertical-align: middle;
    transition: background .3s ease, border-color .3s ease;
}
.affiche-tab td:first-child {
    width: 29%;
    padding: 14px 10px 14px 15px;
    border-left: 1px solid var(--line);
    border-radius: var(--radius) 0 0 var(--radius);
}
.affiche-tab td:nth-child(2) { width: 39%; text-align: left; padding-left: 22px; }
.affiche-tab td:nth-child(3) {
    width: 12%;
    color: var(--ink);
    font: 700 clamp(1rem, 1.5vw, 1.35rem)/1.3 var(--font-body);
    white-space: nowrap;
}
.affiche-tab td:last-child {
    width: 20%;
    border-right: 1px solid var(--line);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.affiche-tab tr:hover td { background: #fffdf9; border-color: #d9c8ab; }
.images-hotel {
    display: block;
    width: 100%;
    max-width: 360px;
    height: 214px;
    margin: 0 auto;
    border-radius: 11px;
    object-fit: cover;
    background: var(--surface-soft);
    transition: transform .6s var(--ease), filter .5s ease;
}
.affiche-tab tr:hover .images-hotel { transform: scale(1.025); filter: saturate(1.07); }
.libelle, .adresse, .email, .tel {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 9px 0;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.libelle {
    margin: 0 0 15px;
    color: var(--ink);
    font: 600 clamp(1.22rem, 1.8vw, 1.65rem)/1.35 var(--font-display);
}
.adresse, .email, .tel { color: var(--muted); font-size: .88rem; }
/* Conserve les fichiers d'icônes existants si leurs chemins sont corrects.
   Les URL CSS sont relatives à l'emplacement du fichier style.css. */
.libelle::before, .adresse::before, .email::before, .tel::before {
    display: inline-block;
    flex: 0 0 22px;
    width: 22px;
    padding: 0;
    line-height: 1;
}
.libelle::before { content: url('images/logo-libe.png'); }
.adresse::before { content: url('images/logo-hotel.png'); }
.email::before { content: url('images/logo-email.png'); }
.tel::before { content: url('images/logo-tel.png'); }

.reservation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    max-width: 100%;
    padding: 13px 17px;
    border: 1px solid var(--ink);
    border-radius: 5px;
    background: var(--ink);
    color: #fff;
    font: 700 .69rem/1.4 var(--font-body);
    letter-spacing: .09em;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s var(--ease), box-shadow .3s ease;
}
.reservation:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(173, 134, 80, .20);
}
.reservation:active { transform: translateY(0); }

/* ----------------------------------------------------------------------
   FORMULAIRES ET TABLEAUX ADMIN
   ---------------------------------------------------------------------- */
.table-insert {
    width: min(680px, calc(100% - 32px));
    margin: 28px auto 64px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.table-insert td { padding: 12px 10px; color: var(--ink-soft); font: 500 .94rem/1.5 var(--font-body); }
.table-insert select,
.table-insert input:not([type="checkbox"]):not([type="radio"]),
.table-insert textarea {
    width: min(100%, 330px);
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d8d5ce;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font: 400 .93rem/1.4 var(--font-body);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.table-insert input:focus, .table-insert select:focus, .table-insert textarea:focus {
    background: #fff;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(173, 134, 80, .13);
    outline: none;
}
.table-insert input[type="submit"], .table-insert input[type="button"], .boutonP {
    cursor: pointer;
}
.table-insert input[type="submit"], .table-insert input[type="button"] {
    background: var(--ink) !important;
    color: white !important;
    border-color: var(--ink) !important;
    font-weight: 700 !important;
    letter-spacing: .04em;
}
.table-insert input[type="submit"]:hover, .table-insert input[type="button"]:hover { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--ink) !important; }
.img-dif { margin: 0 7px; }
.table-affiche {
    max-width: calc(100% - 30px);
    margin: 24px auto 60px;
    border-collapse: separate;
    border-spacing: 2px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}
.table-affiche td {
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    text-align: center;
    font: 400 .9rem/1.5 var(--font-body);
}
.table-affiche tr:hover td { background: #faf5eb; }

/* ----------------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------------- */
footer {
    position: relative;
    bottom: auto;
    width: 100%;
    height: auto;
    margin-top: auto;
    padding: 42px 22px;
    color: #e8e5df;
    background: var(--ink-deep);
    border-top: 2px solid var(--gold);
    font-weight: 400;
}
.responsive_footer { max-width: 1280px; margin: 0 auto; }
.responsive_footer ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.responsive_footer ul li, .responsive_footer a, .responsive_footer p {
    font: 400 .85rem/1.6 var(--font-body);
}
.responsive_footer a {
    display: inline-block;
    padding: 5px 0;
    color: #e8e5df;
    text-decoration: none;
    transition: color .25s ease;
}
.responsive_footer a:hover { color: var(--gold-light); background: none; }
.responsive_footer p { margin: 8px 0; color: #bdc3c9; text-align: center; }

/* ----------------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------------- */
@media (max-width: 1060px) {
    .navigation_navbar ul { justify-content: center; gap: 10px 26px; }
    .affiche-tab { width: calc(100% - 30px); }
    .affiche-tab td { padding: 16px 10px; }
    .affiche-tab td:nth-child(2) { padding-left: 14px; }
    .images-hotel { height: 188px; }
    .reservation { padding: 10px 12px; }
}
@media (max-width: 760px) {
    main { padding: 12px 0 60px; }
    h1 { padding: 27px 15px 18px; }
    h2 { padding: 30px 15px 20px; }
    .navigation_navbar ul { min-height: auto; gap: 5px 16px; padding: 13px 16px; }
    .navigation_navbar ul li a { font-size: .7rem; letter-spacing: .07em; }
    .navigation_navbar .image-logo { height: 60px; }
    .affiche-tab, .affiche-tab tbody, .affiche-tab tr, .affiche-tab td { display: block; width: 100%; }
    .affiche-tab { width: calc(100% - 30px); margin: 18px auto 52px; }
    .affiche-tab tr {
        overflow: hidden;
        margin-bottom: 25px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: var(--shadow-soft);
        filter: none;
    }
    .affiche-tab td,
    .affiche-tab td:first-child,
    .affiche-tab td:nth-child(2),
    .affiche-tab td:nth-child(3),
    .affiche-tab td:last-child {
        display: block;
        width: 100%;
        border: 0;
        border-radius: 0;
        padding: 10px 20px;
        text-align: left;
        white-space: normal;
    }
    .affiche-tab td:first-child { padding: 0; }
    .images-hotel { width: 100%; max-width: none; height: 260px; border-radius: 0; }
    .affiche-tab td:nth-child(2) { padding-top: 22px; }
    .affiche-tab td:nth-child(3) { font-size: 1.34rem; padding-top: 10px; }
    .affiche-tab td:last-child { padding-bottom: 24px; }
    .reservation { width: 100%; min-height: 48px; }
    .table-insert { padding: 16px 8px; }
    .table-insert td { padding: 8px 6px; }
    .table-affiche { display: block; width: max-content; overflow-x: auto; max-width: calc(100% - 30px); }
    footer { padding: 33px 20px; }
    .responsive_footer ul { flex-direction: column; gap: 8px; }
}
@media (max-width: 420px) {
    .navigation_navbar ul { gap: 3px 12px; }
    .navigation_navbar ul li a { font-size: .64rem; }
    .images-hotel { height: 210px; }
    .libelle { font-size: 1.28rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ======================================================================
   PRESTIGE V2 — FINITIONS EDITORIALES (sans changement HTML / PHP)
   Ces ajouts respectent les tailles d'images et les classes existantes.
   ====================================================================== */

:root {
    --gold: #a68150;
    --gold-light: #e4cba4;
    --surface-warm: #f9f7f3;
    --line: #e8e1d7;
    --shadow-soft: 0 14px 44px rgba(13, 26, 38, .085);
}

body {
    background-image: radial-gradient(ellipse 80% 24% at 50% 0%, rgba(226, 208, 177, .15), transparent 75%);
    background-repeat: no-repeat;
}

/* Un repère typographique discret et élégant */
h1, h2 { text-wrap: balance; }
h2::after { width: 44px; height: 1px; margin-top: 19px; }

/* Navigation : rythme, détails dorés subtils, sans changer sa structure */
.navigation_navbar {
    background: linear-gradient(115deg, #0c1824 0%, #142638 55%, #0c1824 100%);
    border-bottom-color: rgba(228, 203, 164, .34);
}
.navigation_navbar ul li a { transition: color .3s ease, opacity .3s ease; }
.navigation_navbar ul li a:hover { color: #f1d9b5; }
.navigation_navbar .image-logo { transition: opacity .35s ease; }
.navigation_navbar .image-logo:hover { opacity: .88; }

/* Fiches : soin apporté aux surfaces et à la lecture */
.affiche-tab { border-spacing: 0 22px; }
.affiche-tab tr { filter: drop-shadow(0 10px 24px rgba(12, 24, 36, .055)); }
.affiche-tab td { transition: background .35s ease, border-color .35s ease; }
.affiche-tab tr:hover td { background: #fffefa; border-color: #d2bc9c; }
.affiche-tab td:nth-child(3) { letter-spacing: -.025em; }
.affiche-tab .libelle { letter-spacing: -.02em; }
.affiche-tab .adresse, .affiche-tab .email, .affiche-tab .tel { color: #586773; }

/* Important : hauteur et object-fit explicites, même si d'autres styles existent */
.affiche-tab img.images-hotel {
    display: block;
    width: 100%;
    max-width: 360px;
    height: 214px;
    object-fit: cover;
    object-position: center;
    border-radius: 11px;
    margin: 0 auto;
    background: #eee9df;
    box-shadow: 0 6px 20px rgba(12, 24, 36, .08);
}
.affiche-tab tr:hover img.images-hotel { filter: saturate(1.04) contrast(1.02); }

/* Boutons : signature champagne, sans modifier leur action */
.reservation {
    border-radius: 4px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .04);
}
.reservation:hover { box-shadow: 0 10px 25px rgba(173, 134, 80, .17); }

/* Formulaires / tableaux : détails plus nets */
.table-insert { box-shadow: 0 18px 48px rgba(12, 24, 36, .075); }
.table-insert td { vertical-align: middle; }
.table-affiche td { transition: background-color .2s ease; }

/* Pied de page : effet de profondeur discret */
footer { background: linear-gradient(120deg, #0b1723, #142638 60%, #0b1723); }

@media (max-width: 1060px) {
    .affiche-tab img.images-hotel { height: 188px; }
}
@media (max-width: 760px) {
    .affiche-tab img.images-hotel {
        width: 100%;
        max-width: none;
        height: 260px;
        border-radius: 0;
        box-shadow: none;
    }
    .affiche-tab tr { filter: none; }
}
@media (max-width: 420px) {
    .affiche-tab img.images-hotel { height: 210px; }
}

/* Information de validation - Inscription professionnelle */

.table-insert .info-validation {
    text-align: center;
    padding: 18px 12px;
    color: #6e7982;
    font-size: 13px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
}

/* Champ SIRET et texte d'information */

.table-insert .champ-siret {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.table-insert .champ-siret input {
    width: 100%;
    box-sizing: border-box;
}

.table-insert .champ-siret .siret-info {
    display: block;
    width: 100%;
    font-size: 12px;
    font-weight: 400;
    color: #6e7982;
    line-height: 1.5;
    text-align: left;
}
