/*
Theme Name: HadaBlan
Author: HadaBlan
Description: Annuaire original des bonnes adresses au Maroc.
Version: 0.3.3
Requires PHP: 8.1
Text Domain: hadablan
*/
:root{--red:#fa1745;--ink:#202722;--muted:#758078;--cream:#f5f4ed;--line:#e4e8e1;--radius:22px}*{box-sizing:border-box}body{margin:0;color:var(--ink);font:16px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#fbfcf9}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--red);outline-offset:4px}img{max-width:100%;display:block}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.16;letter-spacing:-.04em}h1{font-size:clamp(38px,5vw,72px)}h2{font-size:clamp(28px,3vw,40px)}h3{font-size:22px}.hb-container{max-width:1240px;margin:auto;padding:0 30px}.hb-header{background:#fff;border-bottom:1px solid var(--line)}.hb-header-inner{min-height:94px;display:flex;align-items:center;gap:36px}.hb-logo{font-size:31px;letter-spacing:-2px;font-weight:950;font-style:italic;line-height:1}.hb-logo span{color:var(--red)}.hb-logo small{font-size:10px;display:block;letter-spacing:2px;font-style:normal;font-weight:600;text-transform:uppercase;margin-top:9px}.hb-header nav{display:flex;gap:28px;align-items:center;margin-left:auto;font-size:14px;font-weight:600}.hb-header details{position:relative}.hb-header summary{cursor:pointer;list-style:none}.hb-header summary:after{content:' ⌄';color:var(--red)}.hb-dropdown{position:absolute;top:38px;left:-20px;min-width:250px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 15px 50px #2030201a;z-index:20}.hb-dropdown a{display:block;padding:10px;border-radius:8px}.hb-dropdown a:hover{background:var(--cream)}.hb-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:var(--red);color:#fff;border:1px solid transparent;border-radius:10px;padding:13px 22px;font-weight:650;font-size:14px;cursor:pointer;line-height:1.5}.hb-button-light{background:white;border-color:var(--line);color:var(--ink)}.hb-hero{padding:64px 0 40px}.hb-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:50px;align-items:center}.hb-eyebrow{font-size:11px;font-weight:750;letter-spacing:2px;text-transform:uppercase;color:var(--red);display:block;margin-bottom:18px}.hb-hero h1 em{font-style:normal;color:var(--red)}.hb-hero p{max-width:460px;color:var(--muted);font-size:17px}.hb-hero-art{position:relative;border-radius:130px 20px 20px 20px;overflow:hidden;background:#e6d6c9;aspect-ratio:1.12}.hb-hero-art img{width:100%;height:100%;object-fit:cover}.hb-art-caption{position:absolute;bottom:24px;left:24px;right:24px;background:#ffffffeb;backdrop-filter:blur(12px);padding:17px 22px;border-radius:15px;font-size:14px;display:flex;justify-content:space-between;align-items:center}.hb-art-caption strong{display:block}.hb-art-caption span{font-size:11px;color:var(--muted)}.hb-search{display:grid;grid-template-columns:1.35fr 1fr 1fr auto;gap:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px;box-shadow:0 12px 40px #15282008;margin-top:36px}.hb-search label{font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:750;padding:4px 18px;border-right:1px solid var(--line);color:var(--muted)}.hb-search input,.hb-search select{border:0;outline:0;display:block;width:100%;padding:8px 0;background:white;font-size:14px;color:var(--ink);letter-spacing:0;min-width:0}.hb-search input:focus-visible,.hb-search select:focus-visible{outline:2px solid var(--red)}.hb-search .hb-button{margin-left:12px}.hb-section{padding:44px 0}.hb-section-head{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:25px}.hb-section-head h2{margin:0}.hb-section-head p{color:var(--muted);margin:8px 0 0;font-size:14px}.hb-section-head>a{font-size:13px;font-weight:650;color:var(--red)}.hb-categories{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}.hb-category{display:block}.hb-category-image{aspect-ratio:1.27;border-radius:14px;background-image:url('assets/categories.jpg');background-size:300% 200%;transition:transform .2s}.hb-category:nth-child(1) .hb-category-image{background-position:0 0}.hb-category:nth-child(2) .hb-category-image{background-position:50% 0}.hb-category:nth-child(3) .hb-category-image{background-position:100% 0}.hb-category:nth-child(4) .hb-category-image{background-position:0 100%}.hb-category:nth-child(5) .hb-category-image{background-position:50% 100%}.hb-category:nth-child(6) .hb-category-image{background-position:100% 100%}.hb-category:hover .hb-category-image{transform:translateY(-4px)}.hb-category h3{font-size:14px;letter-spacing:-.02em;margin:14px 0 4px}.hb-category small{font-size:11px;color:var(--muted)}.hb-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.hb-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.hb-card-image{display:block;aspect-ratio:1.6;background:#eee8dc;overflow:hidden}.hb-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.hb-card:hover img{transform:scale(1.03)}.hb-card-body{padding:22px}.hb-card h3{font-size:20px;margin:0 0 8px}.hb-card .hb-eyebrow{font-size:9px;margin:0 0 10px}.hb-card p{font-size:13px;color:var(--muted);margin:0}.hb-image-empty{display:grid;place-items:center;height:100%;font-size:50px;color:#b2aa94}.hb-business{background:var(--ink);color:#fff;border-radius:24px;padding:46px 50px;display:flex;justify-content:space-between;gap:40px;align-items:center}.hb-business h2{font-size:34px;max-width:600px;margin-bottom:12px}.hb-business p{color:#bac5ba;max-width:640px;font-size:14px;margin:0}.hb-footer{margin-top:50px;padding:40px 0;border-top:1px solid var(--line);color:var(--muted);font-size:13px}.hb-footer .hb-container{display:flex;justify-content:space-between;gap:30px}.hb-content{padding:45px 0;min-height:60vh}.hb-panel{padding:30px;background:white;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:25px}.hb-panel h2{font-size:28px}.hb-form{display:grid;gap:20px;max-width:850px}.hb-form label{display:grid;gap:6px;font-size:13px;font-weight:650}.hb-form input,.hb-form select,.hb-form textarea{width:100%;border:1px solid #d7ddd4;border-radius:9px;padding:12px;background:#fff;color:var(--ink)}.hb-form input:focus,.hb-form textarea:focus,.hb-form select:focus{outline:2px solid #fa174550;border-color:var(--red)}.hb-form small{color:var(--muted);font-size:12px}.hb-form-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}.hb-form button{justify-self:start}.hb-notice{padding:20px 24px;border-radius:12px;background:#fff0f3;border-left:4px solid var(--red);margin-bottom:24px;font-size:14px}.hb-notice a{text-decoration:underline}.hb-list-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:18px 0;gap:20px}.hb-list-row small{display:block;color:var(--muted)}.hb-list-row a{color:var(--red);font-size:13px}.hb-plan-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:25px 0}.hb-plan-grid article{padding:24px;border:1px solid var(--line);border-radius:16px}.hb-plan-grid article:nth-child(2){border-color:var(--red);background:#fff7f8}.hb-plan-grid p{font-size:13px;margin:10px 0 0}.hb-bank{display:grid;grid-template-columns:140px 1fr;gap:8px;background:var(--cream);padding:22px;border-radius:12px;font-size:14px;overflow-wrap:anywhere}.hb-bank dt{font-weight:700}.hb-bank dd{margin:0}.hb-single-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:30px}.hb-single-photo{width:100%;max-height:500px;object-fit:cover;border-radius:20px;margin-bottom:30px}.hb-single h1{font-size:44px}.hb-single iframe{width:100%;border:0;border-radius:15px;height:280px}.hb-review{padding:18px 0;border-bottom:1px solid var(--line)}.hb-review strong{font-size:14px}.hb-review p{margin:8px 0;font-size:14px}.hb-stars{color:var(--red)}.hb-empty{padding:30px;background:var(--cream);border-radius:15px;grid-column:1/-1}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:1000px){.hb-header-inner{gap:20px;flex-wrap:wrap;padding-top:20px;padding-bottom:20px}.hb-header nav{gap:18px}.hb-header-inner>.hb-button{display:none}.hb-hero-grid{gap:28px}.hb-categories{grid-template-columns:repeat(3,1fr)}.hb-search{grid-template-columns:1fr 1fr}.hb-search label:nth-child(2){border:0}.hb-search .hb-button{margin:8px}.hb-single-grid{grid-template-columns:1fr}}@media(max-width:650px){.hb-container{padding:0 20px}.hb-header-inner{display:block}.hb-header nav{margin-top:25px;gap:20px;justify-content:space-between;font-size:12px}.hb-logo{font-size:30px}.hb-hero{padding-top:35px}.hb-hero-grid{grid-template-columns:1fr}.hb-hero h1{max-width:420px;margin-bottom:22px}.hb-hero-art{aspect-ratio:1.6;border-top-left-radius:65px}.hb-search{margin-top:24px;grid-template-columns:1fr}.hb-search label{border:0;border-bottom:1px solid var(--line);padding:8px 12px}.hb-search .hb-button{margin:8px 0 0}.hb-section{padding:28px 0}.hb-section-head{align-items:start}.hb-section-head>a{white-space:nowrap;font-size:11px;margin-top:7px}.hb-categories{grid-template-columns:repeat(2,1fr);gap:20px 14px}.hb-grid{grid-template-columns:1fr}.hb-business{display:block;padding:30px}.hb-business h2{font-size:29px}.hb-business .hb-button{margin-top:24px}.hb-footer .hb-container{display:block}.hb-panel{padding:22px}.hb-plan-grid,.hb-form-row{grid-template-columns:1fr}.hb-bank{grid-template-columns:1fr}.hb-bank dd{margin-bottom:12px}.hb-single h1{font-size:34px}.hb-dropdown{left:auto;right:-30px}.hb-list-row{align-items:start}.hb-content{padding-top:30px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.hb-hero-art{background-image:url(assets/categories.jpg);background-size:300% 200%;background-position:50% 0}


/* Accueil : établissements à la une. */
#a-la-une .hbm-featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 28px); }
#a-la-une .hb-card { border: 1px solid #e6e8ee; border-radius: 17px; box-shadow: 0 6px 20px #1118270d; }
#a-la-une .hb-card-image { aspect-ratio: 3 / 2; height: auto; border-radius: 16px 16px 0 0; }
#a-la-une .hb-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
#a-la-une .hb-card-body { padding: 14px 16px 16px; }
#a-la-une .hb-card-body h3 { font-size: clamp(16px, 1.25vw, 22px); line-height: 1.25; margin: 0 0 5px; overflow-wrap: anywhere; }
#a-la-une .hb-card-body > p { font-size: 14px; line-height: 1.4; color: #384458; }
@media (max-width: 1000px) { #a-la-une .hbm-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { #a-la-une .hbm-featured-grid { grid-template-columns: minmax(0, 1fr); } }

#a-la-une .hbm-card-details { font-size: 14px; line-height: 1.4; color: #384458; }
