/*
Theme Name: Labo Almaz
Theme URI: https://labo-almaz.com
Author: Laboratoire d'analyses médicales Almaz
Description: Thème bloc sur-mesure du Laboratoire d'analyses médicales Almaz (Casablanca). Charte bois : brun profond #3a2e23, noyer #7a6650, taupe #a88878 — reprise des tons du logo.
Version: 1.1
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: laboalmaz
*/

/* ---------- En-tête ---------- */
.lab-header{position:sticky;top:0;z-index:100;box-shadow:0 1px 0 rgba(58,46,35,.09);}
.lab-header .wp-block-navigation a:hover{color:var(--wp--preset--color--primary);}
.lab-brand{display:inline-flex;align-items:center;gap:.65rem;text-decoration:none;}
.lab-brand img{height:46px;width:auto;display:block;}
.lab-brand-txt{display:flex;flex-direction:column;line-height:1.05;}
.lab-brand-name{font-weight:800;font-size:1.32rem;letter-spacing:.06em;color:#3a2e23;}
.lab-brand-sub{font-size:.68rem;letter-spacing:.13em;text-transform:uppercase;color:#776a5d;font-weight:600;}
@media(max-width:781px){.lab-brand img{height:38px}.lab-brand-name{font-size:1.1rem}.lab-brand-sub{font-size:.6rem}}

/* Bandeau info au-dessus de l'en-tête */
.lab-topbar{background:#3a2e23;color:#ded2c2;font-size:.86rem;}
.lab-topbar a{color:#ffffff;text-decoration:none;font-weight:600;}
.lab-topbar-inner{max-width:1440px;margin:0 auto;padding:.5rem 1.4rem;display:flex;gap:1.5rem;flex-wrap:wrap;justify-content:space-between;align-items:center;}
.lab-topbar span{display:inline-flex;align-items:center;gap:.4rem;}
@media(max-width:600px){.lab-topbar-inner{justify-content:center;gap:.6rem;font-size:.8rem}}

/* ---------- Cartes ---------- */
.lab-card{transition:transform .15s ease, box-shadow .15s ease;}
.lab-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(58,46,35,.13);}

/* Encadré "En bref" / information pratique */
.lab-tldr{background:#f3ede4;border-left:4px solid var(--wp--preset--color--primary);padding:16px 20px;margin:18px 0;border-radius:8px;}
.lab-note{background:#f0e6d6;border-left:4px solid var(--wp--preset--color--accent);padding:14px 18px;border-radius:8px;font-size:.95rem;}

/* Étapes numérotées */
.lab-step-num{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#7a6650,#5a4835);color:#fff;font-weight:800;font-size:1.2rem;box-shadow:0 8px 20px rgba(122,102,80,.32);}

/* Puces / badges d'examens */
.lab-chip{display:inline-block;background:#f3ede4;border:1px solid #ded2c2;color:#3a2e23;border-radius:999px;padding:.35rem .9rem;font-size:.92rem;font-weight:600;margin:.2rem .25rem .2rem 0;}
.lab-chip-sable{background:#fdf3e7;border-color:#dcc9ad;}

/* Tableau des horaires */
.lab-hours{width:100%;border-collapse:collapse;font-size:1rem;}
.lab-hours th,.lab-hours td{padding:.7rem .2rem;border-bottom:1px solid rgba(255,255,255,.16);text-align:left;}
.lab-hours td:last-child{text-align:right;font-weight:700;white-space:nowrap;}
.lab-hours tr:last-child th,.lab-hours tr:last-child td{border-bottom:0;}
.lab-hours--light th,.lab-hours--light td{border-bottom-color:#e5dcd0;}

/* Icônes rondes de service */
.lab-ico{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:14px;background:#f3ede4;color:#5a4835;margin-bottom:.9rem;}
.lab-ico svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}

/* Grille générique */
.lab-grid{display:grid;gap:1.4rem;grid-template-columns:1fr;}
@media(min-width:640px){.lab-grid.cols-2,.lab-grid.cols-3,.lab-grid.cols-4{grid-template-columns:repeat(2,1fr);}}
@media(min-width:960px){.lab-grid.cols-3{grid-template-columns:repeat(3,1fr);}.lab-grid.cols-4{grid-template-columns:repeat(4,1fr);}}
.lab-box{background:#fff;border:1px solid #e5dcd0;border-radius:16px;padding:1.6rem 1.5rem;}
.lab-box h3{margin:0 0 .5rem;font-size:1.14rem;}
.lab-box p{margin:0;color:#776a5d;font-size:.98rem;}

/* Carte Google Maps */
.lab-map{border:0;width:100%;height:380px;border-radius:16px;display:block;}

/* ---------- Formulaire de contact ---------- */
.lab-form{max-width:680px;display:grid;gap:1rem;}
.lab-form .row2{display:grid;gap:1rem;grid-template-columns:1fr;}
@media(min-width:600px){.lab-form .row2{grid-template-columns:1fr 1fr;}}
.lab-form label{display:block;font-weight:600;color:var(--wp--preset--color--contrast);font-size:.9rem;margin-bottom:.35rem;}
.lab-form input,.lab-form select,.lab-form textarea{width:100%;padding:.85rem 1rem;border:1.5px solid #ded2c2;border-radius:10px;font:inherit;color:var(--wp--preset--color--contrast);background:#fdfbf8;transition:border-color .15s,box-shadow .15s;}
.lab-form input:focus,.lab-form select:focus,.lab-form textarea:focus{outline:none;border-color:var(--wp--preset--color--primary);background:#fff;box-shadow:0 0 0 4px rgba(122,102,80,.14);}
.lab-form button{justify-self:start;background:var(--wp--preset--color--primary);color:#fff;border:0;border-radius:10px;padding:.9rem 2rem;font-weight:700;font-size:1rem;cursor:pointer;transition:background .15s,transform .15s;}
.lab-form button:hover{background:#5a4835;transform:translateY(-2px);}
.lab-form .lab-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
.lab-form-note{font-size:.85rem;color:var(--wp--preset--color--muted);}

/* ---------- Divers ---------- */
.lab-hero-badge{display:inline-block;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);color:#fff;border-radius:999px;padding:.35rem 1rem;font-size:.88rem;font-weight:600;letter-spacing:.02em;}
.lab-faq details{border:1px solid #e5dcd0;border-radius:12px;padding:1rem 1.2rem;margin-bottom:.8rem;background:#fff;}
.lab-faq summary{cursor:pointer;font-weight:700;color:#3a2e23;list-style:none;}
.lab-faq summary::-webkit-details-marker{display:none;}
.lab-faq summary::after{content:"+";float:right;color:#7a6650;font-weight:800;}
.lab-faq details[open] summary::after{content:"–";}
.lab-faq details p{margin:.7rem 0 0;color:#776a5d;font-size:.98rem;}
