/*
Theme Name: RoboCreator
Theme URI: https://robocreator.tn
Author: RoboCreator
Description: Thème sur mesure pour centre de formation en robotique. Logo, coordonnées, formations et produits 100% modifiables depuis le tableau de bord WordPress (Apparence > Personnaliser + Formations/Produits).
Version: 1.4.1
Text Domain: robocreator
*/

:root{
  --navy:#0e1e4d;
  --navy-2:#132a63;
  --gold:#f5b301;
  --gold-dark:#e0a300;
  --blue:#2e7fe8;
  --ink:#1c2340;
  --muted:#6b7280;
  --bg:#f6f7fb;
  --card:#ffffff;
  --line:#e7e9f2;
  --radius:14px;
}
*{box-sizing:border-box; margin:0; padding:0;}
body{
  font-family:'Inter','Segoe UI',Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
}
a{text-decoration:none; color:inherit;}
ul{list-style:none;}
img{max-width:100%; display:block;}
h1,h2,h3,h4{font-family:'Poppins','Segoe UI',Arial,sans-serif;}
.wrap{max-width:1180px; margin:0 auto; padding:0 32px;}

.btn{display:inline-flex; align-items:center; gap:8px; padding:13px 26px; border-radius:8px; font-weight:700; font-size:14.5px; border:2px solid transparent; cursor:pointer;}
.btn-gold{background:var(--gold); color:var(--navy); box-shadow:0 8px 18px rgba(245,179,1,.35);}
.btn-gold:hover{background:var(--gold-dark);}
.btn-outline{background:#fff; color:var(--navy); border-color:var(--navy);}
.btn-navy{background:var(--navy); color:#fff;}
.eyebrow-line{width:46px; height:3px; background:var(--gold); border-radius:2px; margin:10px auto 0;}

/* HEADER */
.site-header{background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50;}
.nav{display:flex; align-items:center; justify-content:space-between; padding:16px 32px; max-width:1180px; margin:0 auto;}
.logo{display:flex; align-items:center; gap:10px;}
.logo img, .logo .site-logo-img{width:42px !important; height:42px !important; max-width:42px !important; object-fit:cover; border-radius:50%; flex-shrink:0;}
.logo .mark{width:42px; height:42px; border-radius:50%; background:var(--navy); display:flex; align-items:center; justify-content:center; font-size:20px; color:#fff;}
.logo-text .name{font-size:19px; font-weight:800; color:var(--navy);}
.logo-text .name span{color:var(--gold);}
.logo-text .tag{font-size:9.5px; letter-spacing:1.5px; color:var(--muted); text-transform:uppercase; font-weight:600;}
.main-menu{display:flex; gap:34px; font-size:14.5px; font-weight:600;}
.main-menu a{position:relative; padding-bottom:6px;}
.main-menu li.current-menu-item > a{color:var(--navy);}
.main-menu li.current-menu-item > a::after{content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--gold);}
.menu-toggle{display:none; flex-direction:column; justify-content:center; gap:5px; width:38px; height:38px; background:none; border:1px solid var(--line); border-radius:8px; cursor:pointer;}
.menu-toggle span{display:block; width:18px; height:2px; background:var(--navy); margin:0 auto;}
.cart-icon-btn{position:relative; background:none; border:1.5px solid var(--line); border-radius:8px; width:42px; height:42px; font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center;}
.cart-count{position:absolute; top:-6px; right:-6px; background:var(--gold); color:var(--navy); font-size:11px; font-weight:800; min-width:18px; height:18px; border-radius:9px; display:flex; align-items:center; justify-content:center; padding:0 4px;}

/* ===== CART DRAWER ===== */
.cart-overlay{display:none; position:fixed; inset:0; background:rgba(14,30,77,.5); z-index:1000;}
.cart-overlay.is-open{display:block;}
.cart-drawer{position:fixed; top:0; right:-380px; width:360px; max-width:90vw; height:100%; background:#fff; z-index:1001; transition:right .25s ease; display:flex; flex-direction:column; box-shadow:-10px 0 30px rgba(0,0,0,.15);}
.cart-drawer.is-open{right:0;}
.cart-drawer-header{display:flex; align-items:center; justify-content:space-between; padding:18px 20px; border-bottom:1px solid var(--line);}
.cart-drawer-header h3{font-size:16px; font-weight:800; color:var(--navy);}
.cart-drawer-header button{background:var(--bg); border:none; width:30px; height:30px; border-radius:50%; font-size:18px; cursor:pointer;}
.cart-drawer-items{flex:1; overflow-y:auto; padding:16px 20px;}
.cart-empty{font-size:13.5px; color:var(--muted); text-align:center; margin-top:30px;}
.cart-item{display:flex; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line);}
.cart-item img, .cart-item-noimg{width:52px; height:52px; border-radius:8px; object-fit:cover; background:#eef1fb; display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.cart-item-info{flex:1; min-width:0;}
.cart-item-name{font-size:13.5px; font-weight:700; color:var(--ink); margin-bottom:2px;}
.cart-item-price{font-size:12.5px; color:var(--muted); margin-bottom:6px;}
.cart-item-qty{display:flex; align-items:center; gap:10px;}
.qty-btn{width:24px; height:24px; border-radius:6px; border:1px solid var(--line); background:#fff; cursor:pointer; font-weight:700; color:var(--navy);}
.cart-item-remove{background:none; border:none; cursor:pointer; font-size:15px; flex-shrink:0;}
.cart-drawer-footer{padding:18px 20px; border-top:1px solid var(--line);}
.cart-total-row{display:flex; justify-content:space-between; font-size:15px; font-weight:800; color:var(--navy); margin-bottom:14px;}

/* HERO */
.hero{background:linear-gradient(180deg,#eef1fb 0%, #f6f7fb 60%);}
.hero-inner{display:grid; grid-template-columns:1fr 1.15fr; gap:48px; align-items:center; padding:64px 32px 56px; max-width:1180px; margin:0 auto;}
.hero h1{font-size:44px; line-height:1.15; font-weight:800; color:var(--navy);}
.hero h1 .hi{color:var(--gold-dark);}
.hero p{margin-top:18px; color:var(--muted); font-size:16px; line-height:1.6; max-width:420px;}
.hero .cta-row{display:flex; gap:14px; margin-top:28px; flex-wrap:wrap;}
.hero-media{border-radius:20px; overflow:hidden; box-shadow:0 20px 45px rgba(14,30,77,.18);}
.hero-media img{width:100%; height:360px; object-fit:cover;}

/* WHY */
.why{background:#fff; padding:52px 32px; text-align:center; border-bottom:1px solid var(--line);}
.why h2{font-size:24px; font-weight:800; color:var(--navy);}
.why-grid{max-width:1100px; margin:38px auto 0; display:grid; grid-template-columns:repeat(4,1fr); gap:30px; text-align:left;}
.why-item{display:flex; gap:14px; align-items:flex-start;}
.why-ico{width:46px; height:46px; border-radius:12px; background:var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0;}
.why-item h3{font-size:15px; font-weight:700; margin-bottom:5px;}
.why-item p{font-size:13px; color:var(--muted); line-height:1.5;}

/* CATALOG */
.catalog{background:var(--bg); padding:56px 32px;}
.catalog-inner{max-width:1280px; margin:0 auto; display:block;}
.catalog-formations{background:var(--bg); padding-bottom:28px;}
.catalog-produits{background:#fff; padding-top:48px; padding-bottom:56px;}
.catalog .cards-3-row{gap:24px;}
.catalog .card .thumb{height:230px;}
.catalog .card h4{font-size:16px;}
.catalog .card .body{padding:18px;}
.catalog .product-cover{aspect-ratio:4/3;}
.catalog .product-card-compact .product-title{font-size:15px;}
.catalog .product-card-compact .product-price{font-size:15px;}
.catalog .product-card-compact .product-card-body{padding:16px;}
.catalog .product-card-compact .add-to-cart-btn{font-size:13px; padding:10px 12px;}
.catalog .product-card-compact .product-info-link{font-size:12px; padding:9px 12px;}
.col-head{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:18px;}
.col-head h2{font-size:20px; font-weight:800; color:var(--navy);}
.col-head a{font-size:13px; font-weight:700; color:var(--blue);}
.cards-3{display:grid; grid-template-columns:1fr; gap:18px;}
.cards-5{display:grid; grid-template-columns:repeat(5,1fr); gap:14px;}
.cards-3-row{display:grid; grid-template-columns:repeat(3,1fr); gap:14px;}
.card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;}
.card .thumb{background:#eef1fb; height:120px; display:flex; align-items:center; justify-content:center; overflow:hidden; position:relative;}
.featured-badge{position:absolute; top:6px; left:6px; background:var(--gold); color:var(--navy); font-size:10px; font-weight:800; padding:4px 8px; border-radius:20px; white-space:nowrap; box-shadow:0 2px 6px rgba(0,0,0,.15);}
.card .thumb img{width:100%; height:100%; object-fit:cover;}
.card .body{padding:14px;}
.card h4{font-size:14px; font-weight:700; margin-bottom:4px;}
.card .lvl{font-size:11.5px; color:var(--muted); margin-bottom:8px;}
.card .price{font-size:14px; font-weight:800; color:var(--navy);}
.card .link{font-size:12px; font-weight:700; color:var(--blue); margin-top:6px; display:inline-block;}
.cards-5 .card h4{font-size:12.5px;}
.cards-5 .card .price{font-size:13px;}
.cards-5 .card .order-btn{display:block; margin-top:8px; text-align:center; background:var(--gold); color:var(--navy); font-weight:700; font-size:12px; padding:8px; border-radius:6px;}

/* ABOUT */
.about{background:var(--navy); color:#fff;}
.about-inner{max-width:1180px; margin:0 auto; display:grid; grid-template-columns:1fr 1.3fr 0.9fr;}
.about-img{background-size:cover; background-position:center; min-height:260px;}
.about-text{padding:44px 36px;}
.about-text h2{font-size:21px; font-weight:800; margin-bottom:14px;}
.about-text p{font-size:14px; color:#c7cee8; line-height:1.7; margin-bottom:20px;}
.contact-box{background:#fff; color:var(--ink); border-radius:var(--radius); margin:36px 24px; padding:26px; align-self:center;}
.contact-box h3{font-size:15px; font-weight:800; margin-bottom:14px; color:var(--navy);}
.contact-box .row{display:flex; gap:10px; align-items:center; font-size:13px; margin-bottom:10px; color:var(--muted);}
.contact-box .socials{display:flex; gap:8px; margin-top:14px;}
.contact-box .socials a{width:30px; height:30px; border-radius:50%; background:var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px;}
.socials{display:flex; gap:8px; margin-top:8px;}
.socials a{width:32px; height:32px; border-radius:50%; background:var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; overflow:hidden; transition:opacity .15s ease;}
.socials a:hover{opacity:.85;}
.socials a svg{width:16px; height:16px; display:block;}
.socials a img{width:100%; height:100%; object-fit:cover;}

/* FOOTER */
.site-footer{background:#0a1740; color:#c7cee8; padding:40px 32px 22px;}
.footer-inner{max-width:1180px; margin:0 auto; display:grid; grid-template-columns:1.3fr 1fr 1.3fr auto; gap:30px;}
.footer-inner .logo-text .name{color:#fff;}
.footer-col h5{color:#fff; font-size:14px; font-weight:700; margin-bottom:14px;}
.footer-col li{margin-bottom:9px; font-size:13px;}
.footer-col a:hover{color:#fff;}
.newsletter-input{display:flex; margin-top:10px; max-width:260px;}
.newsletter-input input{flex:1; padding:10px 12px; border:none; border-radius:6px 0 0 6px; font-size:13px;}
.newsletter-input button{background:var(--gold); border:none; padding:0 16px; border-radius:0 6px 6px 0; font-weight:800; cursor:pointer;}
.footer-socials{display:flex; gap:10px; align-self:start;}
.footer-socials a{width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; color:#fff; overflow:hidden; transition:background .15s ease;}
.footer-socials a:hover{background:rgba(255,255,255,.18);}
.footer-socials a svg{width:17px; height:17px; display:block;}
.footer-socials a img{width:100%; height:100%; object-fit:cover;}
.copyright{max-width:1180px; margin:30px auto 0; padding-top:20px; border-top:1px solid rgba(255,255,255,.08); font-size:12px; color:#8e97bd; text-align:center;}

/* ===== PAGE HEADER (Formations / Produits) ===== */
.page-header{padding:40px 32px 8px; max-width:1180px; margin:0 auto;}
.page-header h1{font-size:26px; font-weight:800; color:var(--navy);}
.page-header p{margin-top:6px; color:var(--muted); font-size:14px;}
.breadcrumb{font-size:12.5px; color:var(--muted); margin-bottom:10px;}
.breadcrumb a{color:var(--blue);}

/* ===== FORMATIONS PAGE ===== */
.formations-page{max-width:1180px; margin:0 auto; padding:24px 32px 60px;}

/* ===== SERVICES PAGE ===== */
.services-hero{text-align:center; padding:56px 32px 20px; max-width:700px; margin:0 auto;}
.services-hero h1{font-size:32px; font-weight:800; color:var(--navy); margin-bottom:12px;}
.services-hero p{font-size:14.5px; color:var(--muted); line-height:1.6;}
.services-page{max-width:1180px; margin:0 auto; padding:24px 32px 60px;}
.services-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
.service-card{background:#fff; border:1px solid var(--line); border-radius:16px; text-align:center; overflow:hidden; transition:transform .15s ease, box-shadow .15s ease;}
.service-card:hover{transform:translateY(-3px); box-shadow:0 14px 30px rgba(14,30,77,.10);}
.service-media{width:100%; height:200px; overflow:hidden; background:#eef1fb;}
.service-media img{width:100% !important; height:100% !important; object-fit:cover !important; display:block;}
.service-content{position:relative; padding:0 20px 26px;}
.service-icon-badge{width:64px; height:64px; border-radius:50%; background:#fff; border:1px solid var(--line); box-shadow:0 6px 16px rgba(14,30,77,.12); display:flex; align-items:center; justify-content:center; font-size:26px; margin:-32px auto 16px; position:relative;}
.service-content h4{font-size:16px; font-weight:800; color:var(--navy); margin-bottom:8px;}
.service-content p{font-size:13px; color:var(--muted); line-height:1.6; margin-bottom:16px;}
.service-content .view-link{font-size:13px; font-weight:700; color:var(--blue);}
.cards-4{display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:40px;}
.cards-4 .card .lvl{margin-bottom:2px;}
.cards-4 .card .price{margin:8px 0;}
.cards-4 .card .btn{width:100%; justify-content:center; margin-top:4px;}
.lower-panel{display:grid; grid-template-columns:1.4fr 1fr; gap:30px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:30px;}
.why-list h3{font-size:16px; font-weight:800; color:var(--navy); margin-bottom:16px;}
.why-list ul li{display:flex; align-items:center; gap:10px; font-size:14px; color:var(--ink); margin-bottom:12px;}
.why-list ul li .tick{color:#22a35a; font-weight:800;}
.mascot-box{display:flex; justify-content:center; align-items:center; font-size:90px;}

/* ===== PRODUITS PAGE ===== */
.produits-page{max-width:1180px; margin:0 auto; padding:24px 32px 60px; display:grid; grid-template-columns:220px 1fr; gap:30px; align-items:start;}
.sidebar-categories{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px;}
.sidebar-categories h4{font-size:14px; font-weight:800; color:var(--navy); margin-bottom:12px;}
.sidebar-categories ul li{margin-bottom:8px;}
.sidebar-categories ul li a{font-size:13.5px; color:var(--ink); display:block; padding:5px 8px; border-radius:6px;}
.sidebar-categories ul li a:hover, .sidebar-categories ul li a.active{background:var(--bg); color:var(--navy); font-weight:700;}
.cat-parent-item{margin-bottom:2px;}
.cat-parent{width:100%; display:flex; align-items:center; justify-content:space-between; gap:8px; background:none; border:none; cursor:pointer; text-align:left; font-weight:800; color:var(--navy); font-size:13.5px; padding:8px; border-radius:6px; font-family:inherit;}
.cat-parent:hover, .cat-parent.active{background:var(--bg);}
.cat-parent .chevron{font-size:11px; color:var(--muted); transition:transform .25s ease; flex-shrink:0;}
.cat-parent.is-open .chevron{transform:rotate(180deg); color:var(--navy);}
.cat-children{max-height:0; overflow:hidden; margin:0 0 0 10px; padding-left:10px; border-left:2px solid var(--line); transition:max-height .3s ease;}
.cat-children.is-open{max-height:500px;}
.cat-children li.cat-child{margin:8px 0;}
.cat-children li.cat-child a{font-size:12.5px; color:var(--muted); padding:4px 8px;}
.filters-row{display:flex; gap:12px; margin-bottom:20px;}
.filters-row input[type="search"]{flex:1; padding:11px 14px; border:1px solid var(--line); border-radius:8px; font-size:13.5px;}
.filters-row select{padding:11px 14px; border:1px solid var(--line); border-radius:8px; font-size:13.5px; background:#fff;}
.products-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.product-card{background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 8px 20px rgba(0,0,0,.08); display:flex; flex-direction:column; transition:transform .15s ease, box-shadow .15s ease;}
.product-card:hover{transform:translateY(-3px); box-shadow:0 14px 30px rgba(14,30,77,.12);}
.product-cover{width:100%; aspect-ratio:16/10; overflow:hidden; background:#eef1fb;}
.product-cover img{width:100%; height:100%; object-fit:cover; display:block;}
.product-card-body{padding:16px; display:flex; flex-direction:column; flex:1;}
.product-title{font-size:16px; font-weight:800; color:var(--navy); margin-bottom:6px;}
.product-desc{font-size:13px; color:var(--muted); line-height:1.55; margin-bottom:10px; flex:1;}
.product-price{font-size:16px; font-weight:800; color:var(--navy); margin-bottom:12px;}
.product-actions{display:flex; flex-direction:column; gap:10px;}
.product-info-link{width:100%; justify-content:center; font-size:13px; padding:9px 14px;}
.product-actions-row{display:flex; align-items:center; gap:10px;}
.qty-stepper{display:flex; align-items:center; gap:0; border:1px solid var(--line); border-radius:8px; overflow:hidden; width:fit-content; flex-shrink:0;}
.card-qty-btn{width:32px; height:32px; border:none; background:var(--bg); color:var(--navy); font-size:16px; font-weight:800; cursor:pointer;}
.qty-input{width:42px; height:32px; border:none; border-left:1px solid var(--line); border-right:1px solid var(--line); text-align:center; font-size:13.5px; font-weight:700; color:var(--ink); -moz-appearance:textfield;}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button{-webkit-appearance:none; margin:0;}
.product-actions-row .add-to-cart-btn{flex:1; justify-content:center; font-size:13.5px; padding:11px 14px;}

/* Compact variant used in the homepage teaser (no quantity stepper, tighter spacing) */
.product-card-compact .product-card-body{padding:12px;}
.product-card-compact .product-title{font-size:12.5px; margin-bottom:4px;}
.product-card-compact .product-price{font-size:13px; margin-bottom:8px;}
.product-card-compact .add-to-cart-btn{font-size:11.5px; padding:8px 10px;}
.product-card-compact .product-info-link{font-size:11px; padding:7px 10px;}

/* ===== PRODUCT DETAIL PAGE (image left / info right) ===== */
.product-detail{max-width:1100px; margin:0 auto; display:grid; grid-template-columns:1fr 1.2fr; gap:36px; align-items:start;}
.product-detail-image{border-radius:16px; overflow:hidden; box-shadow:0 8px 20px rgba(0,0,0,.08); aspect-ratio:4/3; background:#eef1fb;}
.product-detail-noimg{width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:60px;}
.product-detail-info h1{font-size:26px; font-weight:800; color:var(--navy); margin-bottom:10px;}
.product-detail-price{font-size:22px; font-weight:800; color:var(--navy); margin-bottom:18px;}
.product-detail-desc{font-size:14.5px; line-height:1.75; color:var(--ink); margin-bottom:20px;}
.product-detail-subtitle{font-size:15px; font-weight:800; color:var(--navy); margin:20px 0 10px;}
.product-detail-list{list-style:none; margin:0 0 6px; padding:0; display:flex; flex-direction:column; gap:8px;}
.product-detail-list li{font-size:14px; color:var(--ink); padding-left:18px; position:relative;}
.product-detail-list li::before{content:"•"; position:absolute; left:0; color:var(--blue); font-weight:800;}


.formations-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.formation-card-v2{background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 8px 20px rgba(0,0,0,.08); display:flex; flex-direction:column; transition:transform .15s ease, box-shadow .15s ease;}
.formation-card-v2:hover{transform:translateY(-3px); box-shadow:0 14px 30px rgba(14,30,77,.12);}
.formation-cover{width:100%; aspect-ratio:16/10; overflow:hidden; background:#eef1fb; position:relative;}
.age-badge{position:absolute; top:10px; right:10px; background:rgba(14,30,77,.85); color:#fff; font-size:11px; font-weight:700; padding:5px 10px; border-radius:20px; backdrop-filter:blur(2px);}
.formation-cover img{width:100%; height:100%; object-fit:cover; display:block;}
.formation-card-body{padding:16px;}
.formation-category{display:flex; align-items:center; gap:6px; font-size:12px; font-weight:700; letter-spacing:.4px; color:var(--blue); margin-bottom:8px;}
.formation-category .dot{width:6px; height:6px; border-radius:50%; background:var(--blue); flex-shrink:0;}
.formation-title{font-size:18px; line-height:1.3; font-weight:800; color:var(--navy); margin-bottom:8px;}
.formation-desc{font-size:13.5px; line-height:1.6; color:var(--muted); margin-bottom:16px; min-height:2.4em;}
.formation-card-buttons{display:flex; gap:10px; flex-wrap:wrap;}
.formation-card-buttons .btn{flex:1; justify-content:center; font-size:13px; padding:11px 14px; white-space:nowrap;}

.langages-list{list-style:none; margin:0 0 4px; padding:0; display:flex; flex-direction:column; gap:6px;}
.langages-list li{font-size:14px; color:var(--ink); font-weight:600;}
.langages-list-page{margin:16px 0 24px !important;}
.pagination{display:flex; justify-content:center; gap:8px; margin-top:32px;}
.pagination a, .pagination span{width:34px; height:34px; display:flex; align-items:center; justify-content:center; border-radius:8px; font-size:13px; font-weight:700; color:var(--ink); border:1px solid var(--line); background:#fff;}
.pagination .current{background:var(--navy); color:#fff; border-color:var(--navy);}
.no-results{font-size:14px; color:var(--muted); padding:20px;}

/* ===== PAGE: CONTACT ===== */
.contact-hero{position:relative; background-size:cover; background-position:center; padding:110px 32px 150px; text-align:center;}
.contact-hero-overlay{position:absolute; inset:0; background:linear-gradient(180deg, rgba(14,30,77,.75), rgba(14,30,77,.55));}
.contact-hero-content{position:relative; z-index:1; max-width:600px; margin:0 auto; color:#fff;}
.contact-hero-content h1{font-size:34px; font-weight:800; margin-bottom:12px;}
.contact-hero-content p{font-size:15px; color:#e4e8f7; line-height:1.6;}

.contact-card-wrap{max-width:1080px; margin:-90px auto 0; padding:0 32px 60px; position:relative; z-index:2;}
.contact-card{background:#fff; border-radius:20px; box-shadow:0 20px 50px rgba(14,30,77,.15); display:grid; grid-template-columns:1fr 1.2fr;}
.contact-card-info{background:var(--bg); padding:36px 32px; border-radius:20px 0 0 20px;}
.contact-card-info h2{font-size:19px; font-weight:800; color:var(--navy); margin-bottom:8px;}
.contact-card-sub{font-size:13px; color:var(--muted); line-height:1.6; margin-bottom:24px;}
.contact-info-item{display:flex; gap:12px; margin-bottom:18px;}
.contact-info-icon{width:38px; height:38px; border-radius:10px; background:var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0;}
.contact-info-item strong{font-size:13px; color:var(--ink); display:block; margin-bottom:2px;}
.contact-info-item p{font-size:13px; color:var(--muted);}
.contact-info-item a{color:var(--muted);}

.contact-card-form{padding:36px 32px;}
.contact-card-form h2{font-size:19px; font-weight:800; color:var(--navy); margin-bottom:20px;}
.form-notice{padding:12px 14px; border-radius:8px; font-size:13.5px; margin-bottom:18px;}
.form-notice-success{background:#e7f7ee; color:#1a7a45;}
.form-notice-error{background:#fdeceb; color:#c62828;}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
.form-field{margin-bottom:14px;}
.form-field label{display:block; font-size:12.5px; font-weight:700; color:var(--ink); margin-bottom:6px;}
.form-field input, .form-field textarea{width:100%; padding:11px 12px; border:1px solid var(--line); border-radius:8px; font-size:13.5px; font-family:inherit; background:var(--bg);}
.form-field textarea{resize:vertical;}

.contact-map-section{width:100%; height:380px;}
.contact-map-section iframe{width:100%; height:100%; display:block;}
.map-placeholder{width:100%; height:100%; background:var(--bg); display:flex; align-items:center; justify-content:center; text-align:center; padding:24px; color:var(--muted); font-size:13.5px;}

@media(max-width:900px){
  .main-menu-wrap{display:none; width:100%; order:3;}
  .main-menu-wrap.is-open{display:block;}
  .main-menu{flex-direction:column; gap:0; width:100%; padding:10px 0;}
  .main-menu li{border-top:1px solid var(--line);}
  .main-menu a{display:block; padding:12px 4px;}
  .menu-toggle{display:flex;}
  .nav{flex-wrap:wrap;}
  .hero-inner{grid-template-columns:1fr;}
  .why-grid{grid-template-columns:repeat(2,1fr);}
  .cards-5{grid-template-columns:repeat(2,1fr);}
  .cards-3-row{grid-template-columns:repeat(2,1fr);}
  .about-inner{grid-template-columns:1fr;}
  .contact-box{margin:24px;}
  .footer-inner{grid-template-columns:1fr 1fr;}

  .cards-4{grid-template-columns:repeat(2,1fr);}
  .lower-panel{grid-template-columns:1fr; text-align:center;}
  .produits-page{grid-template-columns:1fr;}
  .sidebar-categories{order:2;}
  .products-grid{grid-template-columns:repeat(2,1fr);}
  .formations-grid{grid-template-columns:repeat(2,1fr);}
  .services-grid{grid-template-columns:repeat(2,1fr);}

  .contact-card{grid-template-columns:1fr;}
  .contact-card-info{border-radius:20px 20px 0 0;}
  .contact-card-wrap{margin-top:-60px;}
  .contact-hero{padding:90px 24px 120px;}
  .product-detail{grid-template-columns:1fr;}
}

/* ===== PHONES ===== */
@media(max-width:600px){
  .wrap, .hero-inner, .why, .catalog, .about-text, .page-header, .formations-page, .produits-page{padding-left:18px; padding-right:18px;}
  .nav{padding:12px 18px; flex-wrap:wrap; gap:10px;}
  .logo-text .name{font-size:16px;}
  .hero h1{font-size:30px;}
  .hero .cta-row{flex-direction:column; align-items:stretch;}
  .hero .cta-row .btn{justify-content:center;}
  .hero-media img{height:220px;}
  .why-grid{grid-template-columns:1fr;}
  .cards-4{grid-template-columns:1fr;}
  .cards-5{grid-template-columns:repeat(2,1fr);}
  .cards-3-row{grid-template-columns:1fr;}
  .products-grid{grid-template-columns:1fr;}
  .formations-grid{grid-template-columns:1fr;}
  .services-grid{grid-template-columns:1fr;}
  .filters-row{flex-direction:column;}
  .about-inner{grid-template-columns:1fr;}
  .about-img{min-height:180px;}
  .footer-inner{grid-template-columns:1fr; text-align:center;}
  .footer-socials{justify-content:center;}
  .newsletter-input{margin-left:auto; margin-right:auto;}
  .mascot-box{font-size:60px;}
  .formation-card-buttons{flex-direction:column;}
  .formation-card-buttons .btn{width:100%;}
  .cart-drawer{width:100%; max-width:100vw; right:-100%;}
  .form-row{grid-template-columns:1fr;}
  .contact-hero{padding:70px 18px 100px;}
  .contact-hero-content h1{font-size:26px;}
  .contact-card-info, .contact-card-form{padding:24px 20px;}
  .contact-map-section{height:280px;}
  .product-actions-row{flex-wrap:wrap;}
  .product-actions-row .add-to-cart-btn{width:100%;}
  .product-detail-image{aspect-ratio:1/1;}
}
