/*
Theme Name: Tey Resort
Description: Thème léger, rapide et responsive pour l'hôtel Tey Resort. Conçu pour VikBooking et le plugin Tey Resort Suite.
Version: 1.0.0
Author: Tey Resort
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: tey-resort
*/

:root{
  --ink:#0b1538; --muted:#4f5670; --bg:#fff; --soft:#fcf8ec; --line:#e8e0cc;
  --accent:#0b1538; --accent-dark:#1c2a5e; --gold:#cba564; --radius:12px; --max:1160px;
  --font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --serif:Georgia,"Times New Roman",serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--bg);line-height:1.65;font-size:17px;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent-dark)}
h1,h2,h3{font-family:var(--serif);font-weight:500;line-height:1.2;margin:0 0 .6em}
h1{font-size:clamp(2rem,4.5vw,3.4rem)} h2{font-size:clamp(1.6rem,3vw,2.3rem)} h3{font-size:1.3rem}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-999px}.skip:focus{left:10px;top:10px;background:#fff;padding:8px;z-index:99}

/* En-tête */
.site-header{position:sticky;top:0;z-index:50;background:rgba(252,248,236,.97);backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px}
.brand{font-family:var(--serif);font-size:1.35rem;text-decoration:none;color:var(--ink)}
.brand img{max-height:56px;width:auto}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:22px;align-items:center}
.nav a{text-decoration:none;color:var(--ink);font-size:.95rem}
.nav a:hover,.nav .current-menu-item>a{color:var(--accent)}
.nav-toggle{display:none;background:none;border:1px solid var(--line);border-radius:8px;padding:8px 12px;font-size:1rem;cursor:pointer}

/* Sélecteur de langue */
.lang-switch{display:flex;gap:6px}
.lang-switch a{font-size:.82rem;font-weight:700;letter-spacing:.05em;padding:4px 7px;border-radius:6px;border:1px solid var(--line)}
.lang-switch a.current{background:var(--ink);color:#fff!important;border-color:var(--ink)}

/* Boutons */
.btn,.tey-form button,.wp-block-button__link{display:inline-block;background:var(--accent);color:#fff!important;text-decoration:none;border:0;border-radius:999px;padding:.8em 1.6em;font-size:1rem;font-weight:600;cursor:pointer;transition:background .2s}
.btn:hover,.tey-form button:hover{background:var(--accent-dark)}
.btn-ghost{background:transparent;border:1.5px solid #fff}
.btn-gold{background:var(--gold);color:var(--ink)!important}.btn-gold:hover{background:#b8904f}
.hotel-stars{color:var(--gold);letter-spacing:3px}

/* Accueil */
.hero{position:relative;min-height:78vh;display:flex;align-items:flex-end;color:#fff;background:#0b1538 center/cover no-repeat}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.1) 30%,rgba(0,0,0,.6))}
.hero .wrap{position:relative;padding-bottom:10vh;width:100%}
.hero p{font-size:1.2rem;max-width:620px;margin:0 0 1.6em}
.hero .actions{display:flex;gap:12px;flex-wrap:wrap}
.section{padding:72px 0}
.section.soft{background:var(--soft)}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:28px;flex-wrap:wrap}
.content>*:first-child{margin-top:0}
.page-hero{background:var(--soft);padding:56px 0 36px;border-bottom:1px solid var(--line)}
.page-content{padding:48px 0 72px}
.page-content .wrap>*{max-width:860px}
.page-content .wrap>.alignwide,.page-content .wrap>.wp-block-gallery,.page-content .wrap>.tey-offers,.page-content .wrap>.tey-reviews,.page-content .wrap>.tey-room,.page-content .wrap>[class*="vikbooking"],.page-content .wrap>.vbo-wrapper{max-width:none}

/* Galerie */
.wp-block-gallery{gap:10px!important}
.wp-block-gallery img{border-radius:8px}

/* Avis et offres (plugin) */
.tey-reviews{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.tey-review{margin:0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.tey-review blockquote{margin:.6em 0;font-style:italic}
.tey-review figcaption{color:var(--muted);font-size:.9rem}
.tey-reply{margin-top:12px;padding-top:12px;border-top:1px dashed var(--line);font-size:.92rem;color:var(--muted)}
.tey-stars{color:var(--gold);letter-spacing:2px}
.tey-rating{font-size:1.05rem}
.tey-offers{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:22px}
.tey-offer{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.tey-offer img{aspect-ratio:16/10;object-fit:cover;width:100%}
.tey-offer-body{padding:20px;display:flex;flex-direction:column;gap:4px;flex:1}
.tey-offer-body .btn{margin-top:auto;align-self:flex-start}
.tey-offer-price{font-size:1.4rem;font-weight:700;color:var(--accent-dark);margin:0}
.tey-offer-end{font-size:.88rem;color:var(--muted)}

/* Chambres (import Wix) */
.tey-room{display:grid;grid-template-columns:minmax(220px,340px) 1fr;gap:24px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin:0 0 22px}
.tey-room-img img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3}
.tey-room-body{padding:20px 22px 22px 0}
.tey-room-meta{color:var(--muted);margin:0 0 6px}
.tey-duo{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tey-duo img{border-radius:8px}
@media (max-width:700px){.tey-room{grid-template-columns:1fr}.tey-room-body{padding:0 18px 20px}}

/* Formulaire de contact */
.tey-form{display:grid;gap:4px;max-width:620px}
.tey-form label{display:block;font-weight:600;font-size:.92rem;margin-bottom:4px}
.tey-form input,.tey-form select,.tey-form textarea{width:100%;padding:12px 14px;border:1px solid #cfc8bb;border-radius:8px;font:inherit;background:#fff}
.tey-form .tey-rgpd label{font-weight:400}
.tey-form .tey-rgpd input{width:auto;margin-right:8px}
.tey-hp{position:absolute!important;left:-9999px!important}
.tey-notice{background:#e8f5e9;border:1px solid #a5d6a7;padding:12px 16px;border-radius:8px}
.contact-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:40px;align-items:start}
.contact-grid iframe{width:100%;height:320px;border:0;border-radius:var(--radius)}
.services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;padding:0;list-style:none}
.services-grid li{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px}

/* Pied de page */
.site-footer{background:var(--ink);border-top:3px solid var(--gold);color:#d9d3c7;padding:48px 0 90px;font-size:.95rem}
.site-footer a{color:#fff}
.site-footer .cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:28px}
.site-footer h3{color:#fff;font-size:1.1rem}
.site-footer ul{list-style:none;padding:0;margin:0}
.copyright{margin-top:28px;font-size:.85rem;color:#a39b8d}

/* Bouton Réserver fixe sur mobile */
.book-bar{display:none}
.admin-hint{background:#fff8e1;border:1px dashed #d4a017;padding:14px 18px;border-radius:8px;font-size:.92rem}

@media (max-width:860px){
  .nav-toggle{display:block}
  .nav{position:absolute;top:68px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);display:none}
  .nav.open{display:block}
  .nav ul{flex-direction:column;align-items:flex-start;padding:16px 20px;gap:14px}
  .contact-grid{grid-template-columns:1fr}
  .book-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;padding:10px 14px;background:#fff;border-top:1px solid var(--line);gap:10px}
  .book-bar a{flex:1;text-align:center}
  .section{padding:52px 0}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
