/* =========================================================
   PAGES LÉGALES - Langres.immo
   Basé sur le style du fichier Vieux Langres
   Fichier commun pour :
   - mentions-legales.html
   - politique-confidentialite.html
   - cookies.html
   - conditions-reservation.html
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter,sans-serif;
    background: #F7F3EE;
    color: #222;
}

/* HEADER */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8%;
    z-index: 1000;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.logo img {
    height: 135px;
    max-width: 450px;
    display: block;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    position: relative;
    transition: .3s;
}

nav a:hover {
    color: #B86A4B;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #B86A4B;
    transition: .3s;
}

nav a:hover::after {
    width: 100%;
}

.header-btn {
    background: #B86A4B;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
    box-shadow: 0 10px 25px rgba(184,106,75,.25);
}

.header-btn:hover {
    transform: translateY(-2px);
    background: #a85d40;
}

/* LANGUES */

.language-menu {
    position: relative;
    z-index: 3005;
}

.language-current {
    border: none;
    background: white;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0 !important;
    line-height: 0;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.language-current::before {
    content: "";
    width: 26px;
    height: 19px;
    display: block;
    background-image: url("https://flagcdn.com/fr.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.10);
}

.language-list {
    position: absolute;
    top: 55px;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,.18);
    overflow: hidden;
    display: none;
    min-width: 210px;
    z-index: 3010;
}

.language-list.active {
    display: block;
}

.language-list a {
    display: block;
    width: 100%;
    padding: 12px 18px;
    text-align: left;
    background: white;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    color: #222;
}

.language-list a:hover {
    background: #F2E7DF;
}

.header-mail-btn {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #B86A4B;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(184,106,75,.25);
    transition: .3s;
}

.header-mail-btn:hover {
    background: #a85d40;
    transform: translateY(-2px);
}

/* PAGES LÉGALES */

.legal-main {
    padding-top: 145px;
}

.legal-hero {
    min-height: 360px;
    padding: 90px 8% 70px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.35)),
    url("images/vieuxlangres/vieuxlangres0.jpg") center/cover;
    color: white;
}

.legal-hero-content {
    max-width: 900px;
}

.legal-eyebrow {
    color: #F1C7B5;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.legal-hero h1 {
    font-family: 'Playfair Display',serif;
    font-size: 64px;
    line-height: 1;
    margin-bottom: 22px;
}

.legal-hero p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 760px;
    color: rgba(255,255,255,.88);
}

.legal-wrapper {
    padding: 80px 8% 100px;
}

.legal-layout {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    align-items: start;
}

.legal-summary {
    position: sticky;
    top: 175px;
    background: white;
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(0,0,0,.10);
    border: 1px solid rgba(184,106,75,.14);
}

.legal-summary h2 {
    font-family: 'Playfair Display',serif;
    font-size: 28px;
    margin-bottom: 18px;
}

.legal-summary p,
.legal-summary li {
    color: #555;
    line-height: 1.65;
    font-size: 15px;
}

.legal-summary ul {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.legal-summary li::before {
    content: "À compléter";
    display: inline-block;
    margin-right: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff1eb;
    color: #B86A4B;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.legal-content {
    display: grid;
    gap: 24px;
}

.legal-card {
    background: white;
    border-radius: 26px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(0,0,0,.08);
    border: 1px solid rgba(184,106,75,.10);
}

.legal-card h2 {
    font-family: 'Playfair Display',serif;
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 18px;
    color: #222;
}

.legal-card h3 {
    font-size: 20px;
    margin: 22px 0 10px;
    color: #222;
}

.legal-card p,
.legal-card li {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
}

.legal-card p + p {
    margin-top: 14px;
}

.legal-card ul,
.legal-card ol {
    padding-left: 22px;
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.legal-card a {
    color: #B86A4B;
    font-weight: 700;
    text-decoration: none;
}

.legal-card a:hover {
    text-decoration: underline;
}

.legal-update {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 11px 15px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.placeholder,
.a-completer {
    display: inline-block;
    background: #fff1eb;
    color: #8f4f36;
    padding: 2px 7px;
    border-radius: 8px;
    font-weight: 800;
}

.legal-note {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff7f3;
    border: 1px solid rgba(184,106,75,.22);
    color: #7a4a38;
    line-height: 1.7;
}

.legal-warning {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #FDECEC;
    border: 1px solid rgba(163,58,58,.18);
    color: #8b3030;
    line-height: 1.7;
}

.legal-info-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 18px;
    margin-top: 18px;
}

.legal-info-box {
    background: #F7F3EE;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(184,106,75,.12);
}

.legal-info-box strong {
    display: block;
    color: #222;
    margin-bottom: 8px;
}

.legal-info-box span {
    color: #555;
    line-height: 1.6;
}

.legal-page-links {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    margin-top: 18px;
}

.legal-page-link {
    display: block;
    background: #F7F3EE;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(184,106,75,.12);
    transition: .3s;
}

.legal-page-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0,0,0,.08);
    text-decoration: none !important;
}

.legal-page-link strong {
    display: block;
    color: #222;
    margin-bottom: 8px;
    font-size: 17px;
}

.legal-page-link span {
    color: #666;
    line-height: 1.6;
    font-weight: 500;
}

/* FOOTER */

.site-footer {
    background: #111;
    color: white;
    padding: 70px 8% 25px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.35fr .85fr .95fr .95fr;
    gap: 42px;
    align-items: start;
}

.footer-brand img {
    width: 500px;
    max-width: 100%;
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 22px;
    box-shadow: none;
}

.footer-brand p {
    max-width: 420px;
    color: #bbb;
    line-height: 1.7;
}

.site-footer h3 {
    font-size: 18px;
    margin-bottom: 18px;
}

.footer-links,
.footer-legal-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-legal-links a {
    text-decoration: none;
    color: #bbb;
    transition: .3s;
}

.footer-links a:hover,
.footer-legal-links a:hover {
    color: #B86A4B;
}

.footer-contact p {
    color: #bbb;
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.12);
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* RESPONSIVE */

@media(max-width:1150px) {
    .header {
        padding: 18px 5%;
}

    .logo img {
        height: 105px;
        max-width: 350px;
}

    nav {
        display: none;
}

    .legal-main {
        padding-top: 120px;
}

    .legal-layout {
        grid-template-columns: 1fr;
}

    .legal-summary {
        position: static;
}

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 45px;
}

    .footer-brand img {
        width: 420px;
}
}

@media(max-width:700px) {
    .header {
        padding: 12px 5%;
        gap: 10px;
}

    .logo img {
        height: 78px;
        max-width: 250px;
}

    .header-btn {
        display: none;
}

    .legal-main {
        padding-top: 95px;
}

    .legal-hero {
        min-height: 300px;
        padding: 70px 6% 56px;
}

    .legal-hero h1 {
        font-size: 42px;
}

    .legal-hero p {
        font-size: 16px;
}

    .legal-wrapper {
        padding: 55px 6% 75px;
}

    .legal-card {
        padding: 24px;
        border-radius: 22px;
}

    .legal-card h2 {
        font-size: 28px;
}

    .legal-info-grid,
    .legal-page-links,
    .footer-container {
        grid-template-columns: 1fr;
}

    .footer-brand img {
        width: 300px;
}

    .site-footer {
        padding: 55px 6% 25px;
}
}

/* =========================================================
   MENU LANGUES MULTILINGUE - drapeaux images + liens par langue
   ========================================================= */

.language-current::before {
    display: none !important;
    content: none !important;
}

.language-current .flag-img,
.language-list .flag-img {
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.12);
    flex-shrink: 0;
}

.language-current .flag-img {
    width: 28px;
    height: 20px;
}

.language-list a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.language-list a[aria-current="page"] {
    background: #F2E7DF;
}

.legal-note {
    max-width: 760px;
    margin-top: 22px;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
}

@media(max-width:700px) {
    .language-list {
        right: -52px;
}
}

/* ==============================
   BANDEAU COOKIES / GOOGLE ANALYTICS
============================== */

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  color: #1f2933;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.cookie-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 1rem;
}

.cookie-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #4b5563;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
}

.cookie-btn-primary {
  background: #1f2933;
  color: #ffffff;
}

.cookie-btn-secondary {
  background: #f3f4f6;
  color: #1f2933;
}

.cookie-btn:hover {
  opacity: 0.88;
}

.cookie-link {
  color: #1f2933;
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 700px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column-reverse;
  }

  .cookie-btn {
    width: 100%;
  }
}