/*
Theme Name: Aloudi
Theme URI: https://aloudi.fr
Author: Aloudi House
Description: Thème sur mesure et léger pour Aloudi House, maison en bois sur pilotis à Talais (Médoc). Aucun constructeur de pages, aucune dépendance externe, polices système.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aloudi
*/

/* ========== jetons ========== */
:root{
  --ah-accent:#735611;
  --ah-accent-clair:#C9A85A;
  --ah-forest:#23382B;
  --ah-sand:#EFECE3;
  --ah-ink:#1F2A22;
  --ah-muted:#3C4A40;
  --ah-line:#E4E1D8;
  --ah-page:#FFFFFF;
  --ah-sur-sombre:#D5DCD2;
  --ah-sans:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --ah-largeur:1180px;
  --ah-entete:72px;
}

/* ========== remise à zéro ========== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body{
  margin:0;background:var(--ah-page);color:var(--ah-ink);
  font-family:var(--ah-sans);font-size:16px;line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img,svg,video{max-width:100%;height:auto}
a{color:var(--ah-accent)}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--ah-accent);outline-offset:2px}
.ah-saut{position:absolute;left:-9999px}
.ah-saut:focus{left:8px;top:8px;z-index:200;background:#fff;padding:10px 16px;border-radius:8px}

/* ========== en-tête ========== */
.ah-entete{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.94);backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--ah-line);
}
.ah-entete-in{
  max-width:var(--ah-largeur);margin:0 auto;padding:0 24px;
  height:var(--ah-entete);display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.ah-logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ah-ink);flex:0 0 auto}
.ah-logo img{display:block;height:44px;width:auto}
.ah-logo b{font-size:17px;font-weight:600;letter-spacing:.01em;white-space:nowrap}

.ah-nav ul{display:flex;align-items:center;gap:4px;list-style:none;margin:0;padding:0}
.ah-nav a{
  display:block;padding:9px 13px;border-radius:8px;
  color:var(--ah-muted);text-decoration:none;font-size:15px;font-weight:500;
  transition:color .15s ease,background-color .15s ease;
}
.ah-nav a:hover{color:var(--ah-ink);background:var(--ah-sand)}
.ah-nav .current-menu-item>a,.ah-nav .current_page_item>a{color:var(--ah-accent);font-weight:600}
/* l'entrée Réservation prend l'allure d'un bouton */
.ah-nav li.ah-menu-cta a{background:var(--ah-accent);color:#fff;font-weight:600;padding:10px 18px}
.ah-nav li.ah-menu-cta a:hover{background:#4F3B0B;color:#fff}

/* bouton menu mobile */
.ah-burger{
  display:none;width:44px;height:44px;padding:0;border:1px solid var(--ah-line);
  border-radius:10px;background:#fff;cursor:pointer;align-items:center;justify-content:center;
}
.ah-burger span{display:block;width:20px;height:2px;background:var(--ah-ink);position:relative}
.ah-burger span::before,.ah-burger span::after{
  content:"";position:absolute;left:0;width:20px;height:2px;background:var(--ah-ink);
  transition:transform .2s ease,top .2s ease;
}
.ah-burger span::before{top:-6px}
.ah-burger span::after{top:6px}
.ah-burger[aria-expanded="true"] span{background:transparent}
.ah-burger[aria-expanded="true"] span::before{top:0;transform:rotate(45deg)}
.ah-burger[aria-expanded="true"] span::after{top:0;transform:rotate(-45deg)}

@media (max-width:900px){
  .ah-burger{display:inline-flex}
  .ah-nav{
    position:absolute;left:0;right:0;top:100%;
    background:#fff;border-bottom:1px solid var(--ah-line);
    padding:10px 24px 18px;display:none;
  }
  .ah-nav.ouvert{display:block}
  .ah-nav ul{flex-direction:column;align-items:stretch;gap:2px}
  .ah-nav a{padding:13px 12px;font-size:16px}
  .ah-nav li.ah-menu-cta a{text-align:center;margin-top:8px}
}

/* ========== contenu ========== */
.ah-site-main{min-height:50vh}
/* en-tête de page, affiché seulement quand la page n'a pas son propre bandeau */
.ah-titre{background:var(--ah-sand);padding:56px 0 44px}
.ah-titre-in{max-width:860px;margin:0 auto;padding:0 24px}
.ah-titre h1{margin:0;font-size:clamp(28px,4vw,42px);line-height:1.12;font-weight:700;letter-spacing:-.01em}

.ah-texte{max-width:860px;margin:0 auto;padding:48px 24px 72px}
.ah-texte h2{font-size:clamp(22px,2.6vw,30px);line-height:1.2;margin:40px 0 14px;font-weight:700}
.ah-texte h3{font-size:19px;line-height:1.3;margin:30px 0 10px;font-weight:700}
.ah-texte p,.ah-texte li{color:var(--ah-muted)}
.ah-texte p{margin:0 0 16px}
.ah-texte ul,.ah-texte ol{margin:0 0 16px;padding-left:22px}
.ah-texte li{margin-bottom:7px}
.ah-texte table{width:100%;border-collapse:collapse;margin:0 0 20px;font-size:15px}
.ah-texte th,.ah-texte td{border:1px solid var(--ah-line);padding:10px 12px;text-align:left}
.ah-texte th{background:var(--ah-sand)}
.ah-texte a{color:var(--ah-accent)}

/* ========== pied de page ========== */
.ah-pied{background:var(--ah-forest);color:var(--ah-sur-sombre);margin-top:0}
.ah-pied-in{max-width:var(--ah-largeur);margin:0 auto;padding:56px 24px 28px}
.ah-pied-cols{display:flex;flex-wrap:wrap;gap:40px}
.ah-pied-col{flex:1 1 220px;min-width:0}
.ah-pied h2{color:#fff;font-size:15px;font-weight:700;margin:0 0 14px;letter-spacing:.04em;text-transform:uppercase}
.ah-pied ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.ah-pied a{color:var(--ah-sur-sombre);text-decoration:none}
.ah-pied a:hover{color:#fff;text-decoration:underline}
.ah-pied-cta{
  display:inline-block;margin-top:4px;background:var(--ah-accent-clair);color:#23382B!important;
  padding:11px 20px;border-radius:999px;font-weight:700;text-decoration:none!important;
}
.ah-pied-cta:hover{background:#D9BC74;color:#23382B!important}

.ah-pied-labels{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:36px;
  margin-top:48px;padding-top:32px;border-top:1px solid rgba(255,255,255,.14);
}
.ah-pied-labels img{height:54px;width:auto;opacity:.9}
/* le badge EcoIndex est plus petit que les logos : il garde sa taille propre */
.ah-pied-eco{display:inline-flex;align-items:center;line-height:0}
.ah-pied-labels .ah-pied-eco img{height:32px;opacity:1}
.ah-pied-eco:focus-visible{outline:2px solid var(--ah-accent-clair);outline-offset:4px;border-radius:4px}
.ah-pied-bas{
  margin-top:28px;padding-top:20px;border-top:1px solid rgba(255,255,255,.14);
  display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;justify-content:space-between;
  font-size:13.5px;
}
.ah-pied-legal{display:flex;flex-wrap:wrap;gap:8px 16px}
.ah-pied-sep{opacity:.45;margin:0 4px}

/* ========== 404 ========== */
.ah-404{max-width:620px;margin:0 auto;padding:90px 24px 110px;text-align:center}
.ah-404 h1{font-size:clamp(28px,4vw,40px);margin:0 0 14px;line-height:1.15}
.ah-404 p{color:var(--ah-muted);margin:0 0 26px}
.ah-site-btn{
  display:inline-block;background:var(--ah-accent);color:#fff!important;
  padding:12px 22px;border-radius:999px;font-weight:700;text-decoration:none!important;
}
.ah-site-btn:hover{background:#4F3B0B}

/* ========== sélecteur de langue TranslatePress dans l'en-tête ========== */
.ah-entete .trp-language-switcher{display:inline-block}
.ah-entete .trp-language-switcher>div{
  background:var(--ah-sand);border:1px solid rgba(31,42,34,.16);border-radius:9px;
  padding:7px 12px;font-size:13px;font-weight:600;
}

/* ========== sélecteur de langue ========== */
.ah-lang{display:inline-flex;gap:6px;align-items:center;flex:0 0 auto}
.ah-lang a{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:38px;height:32px;padding:0 9px;
  border:1px solid rgba(31,42,34,.16);border-radius:9px;
  background:var(--ah-sand);color:var(--ah-muted);
  font-size:12.5px;font-weight:600;letter-spacing:.06em;line-height:1;
  text-decoration:none;
  transition:border-color .15s ease,color .15s ease,background-color .15s ease;
}
.ah-lang a:hover{border-color:rgba(31,42,34,.38);color:var(--ah-ink)}
.ah-lang a[aria-current]{
  background:transparent;border:1.5px solid var(--ah-accent);
  color:var(--ah-accent);font-weight:700;
}
@media (max-width:900px){
  .ah-lang{order:2;margin-left:auto}
  .ah-burger{order:3}
  .ah-nav{order:4}
  .ah-lang a{min-width:34px;height:30px;padding:0 7px;font-size:12px}
}
@media (max-width:380px){
  .ah-logo b{display:none}
}
