
:root{
  --bg:#ffffff;
  --ink:#0f172a;
  --muted:#475569;
  --line:rgba(15,23,42,.12);
  --shadow:0 18px 55px rgba(15,23,42,.10);
  --radius:18px;
  --max:1120px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--ink);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(11,91,211,.06), transparent 55%),
              radial-gradient(900px 500px at 90% 20%, rgba(255,140,60,.06), transparent 55%),
              var(--bg);
}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--max);margin:0 auto;padding:0 12px}
.topbar{
  position:sticky;top:0;z-index:10;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0}
.brand{display:flex;align-items:center;gap:10px;font-weight:900}
.dot{width:12px;height:12px;border-radius:12px;background:linear-gradient(145deg, rgba(15,23,42,.92), rgba(15,23,42,.65));}
nav{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
nav a{
  border:1px solid var(--line);
  background:#fff;
  padding:6px 10px;
  border-radius:12px;
  font-weight:900;
  color:var(--muted);
}
nav a.active{background:rgba(11,91,211,.08);border-color:rgba(11,91,211,.25);color:var(--ink)}
nav a.cta{background:rgba(15,23,42,.06);border-color:rgba(15,23,42,.18);color:var(--ink)}
.hero{
  margin:18px 0;
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  box-shadow: var(--shadow);
  background:#fff;
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero .placeholder{
  padding:28px 18px;
  text-align:center;
}
.hero h1{margin:0 0 6px;letter-spacing:-.6px;font-size:34px}
.hero p{margin:0;color:var(--muted);font-weight:700}
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
}
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 10px 25px rgba(15,23,42,.06);
  transform: translateY(6px);
  opacity: 0;
  animation: fadeUp .35s ease forwards;
}
.card:nth-child(2n){animation-delay:.03s}
.card:nth-child(3n){animation-delay:.06s}
.card img{width:100%;height:180px;object-fit:cover;display:block}


.card .cap{padding:10px 12px;color:var(--muted);font-size:13px}
.h1{margin:0 0 12px}
.sub{margin:0 0 14px;color:var(--muted)}
@keyframes fadeUp{to{opacity:1; transform: translateY(0)}}
.footer{margin:30px 0 44px;color:var(--muted);font-size:13px}
@media (max-width:700px){
  .hero h1{font-size:28px}
  .card img{height:170px}
}
/* =========================
   HERO - Tunisie Menu Factory
   ========================= */

.tmf-hero{
  margin: 32px auto;
  padding: 48px;
  border-radius: 28px;
  background: #eef1f4;
  border: 1px solid rgba(15,23,42,.10);
  overflow: hidden;
}

.tmf-hero__inner{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: center;
  position: relative;
}

/* Formes bleues en arriÃƒÂ¨re-plan */
.tmf-hero__inner::before,
.tmf-hero__inner::after{
  content:"";
  position:absolute;
  top:-180px;
  width:520px;
  height:520px;
  border-radius:999px;
  background:#cfe0ff;
  opacity:.75;
  z-index:0;
}
.tmf-hero__inner::before{
  left:-240px;
}
.tmf-hero__inner::after{
  right:-240px;
  background:#e3ecff;
  opacity:.9;
}

.tmf-hero__left,
.tmf-hero__right{
  position:relative;
  z-index:1;
}

.tmf-hero__title{
  margin:0 0 10px;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing:-1px;
  line-height:1.05;
}

.tmf-hero__subtitle{
  margin:0 0 14px;
  font-size: 20px;
  color:#64748b;
  font-weight:600;
}

.tmf-hero__mini{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  padding:0;
  margin:0 0 22px;
  color:#64748b;
  font-weight:700;
}
.tmf-hero__mini li{
  display:flex;
  align-items:center;
}
.tmf-hero__mini li + li::before{
  content:" | ";

  margin:0 12px;
  color: rgba(100,116,139,.9);
  font-weight:900;
}
.tmf-hero__mini a{
  color:#64748b;
  text-decoration:none;
}
.tmf-hero__mini a:hover{
  color:#0f172a;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tmf-hero__cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.tmf-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:999px;
  background:#2563eb;
  color:#fff;
  font-weight:900;
  text-decoration:none;
  border:1px solid rgba(37,99,235,.35);
  box-shadow:0 14px 30px rgba(37,99,235,.20);
}
.tmf-btn:hover{
  background:#1d4ed8;
}

.tmf-btn--ghost{
  background: rgba(255,255,255,.75);
  color:#0f172a;
  border:1px solid rgba(15,23,42,.12);
  box-shadow:0 14px 30px rgba(2,8,23,.08);
}
.tmf-btn--ghost:hover{
  background: rgba(255,255,255,.95);
}
/* === HERO container === */
.tmf-hero{
  margin: 32px auto;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(
    90deg,
    #e7efff 0%,
    #eef1f4 45%,
    #eef1f4 55%,
    #e7efff 100%
  );
  border: 1px solid rgba(15,23,42,.10);
  overflow: hidden;
  min-height: 360px;
}

/* === HERO layout === */
.tmf-hero__inner{
  display:grid;
  
  gap:26px;
  align-items:center;
  position:relative;
}

/* Formes bleues */
.tmf-hero__inner::before,
.tmf-hero__inner::after{
  content:"";
  position:absolute;
  top:-180px;
  width:520px;
  height:520px;
  border-radius:999px;
  background:#cfe0ff;
  opacity:.75;
  z-index:0;
}
.tmf-hero__inner::before{ left:-240px; }
.tmf-hero__inner::after{
  right:-240px;
  background:#e3ecff;
  opacity:.9;
}

/* Texte */
.tmf-hero__left,
.tmf-hero__right{
  position:relative;
  z-index:1;
}

.tmf-hero__title{
  font-size: clamp(42px, 5vw, 64px);
  font-weight:900;
  color:#0f172a;
}

.tmf-hero__subtitle{
  font-size:22px;
  font-weight:600;
  color:#64748b;
}

.tmf-hero__mini{
  font-size:17px;
}

.tmf-hero__right{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 20px 45px rgba(2,8,23,.12);
}

.tmf-hero__right img{
  width:100%;
  height:auto;
  display:block;
  border-radius:18px;
  box-shadow: 0 18px 40px rgba(2,8,23,.18);
}

@media (max-width: 980px){
  .tmf-hero__inner{
    grid-template-columns:1fr;
  }
}
/* ===== HEADER LOGO ===== */
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
}

.brand-logo{
  height:104px;                 /* ðŸ‘ˆ augmente ici si besoin */
  width:auto;
  display:block;
  object-fit:contain;
  filter: saturate(1.35) contrast(1.1);
}
@media (max-width: 900px){
  .topbar{
    padding: 28px 0;   /* ðŸ‘ˆ libÃ¨re la hauteur du header */
  }

  .brand-logo{
    height:52px;       /* logo lisible mais pas envahissant */
  }
}




/* Optionnel : si l'ancien rond noir existe encore */
.dot{ display:none; }
/* ===== HEADER HEIGHT FIX ===== */
.topbar{
  padding: 28px 0;   /* ðŸ‘ˆ augmente la hauteur du header */
}
.brand{
  align-items: center;
}
/* ===== Bloc bulles accueil ===== */
.tmf-quick{
  margin-top: 28px;
}

.tmf-quick-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
  max-width: 1180px; /* important : pour laisser 4 bulles */
}


.tmf-pill{
  display:block;
  padding: 18px 18px;
  border-radius: 18px;
  text-decoration:none;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
  transition: transform .12s ease, box-shadow .12s ease;
}

.tmf-pill:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15,23,42,.10);
}

.tmf-pill-title{
  font-weight: 700;
  font-size: 18px;
  color: #0f172a;
  margin-bottom: 6px;
}

.tmf-pill-sub{
  color: rgba(15,23,42,.65);
  font-size: 14px;
}

@media (max-width: 700px){
  .tmf-quick-grid{ grid-template-columns: 1fr; }
}
.topbar {
  height: auto;
}

.topbar-inner {
  min-height: 56px;
}
/* ===== HEADER COMPACT (force) ===== */
.topbar .topbar-inner{
  padding: 3px 0 !important;   /* réduit la hauteur */
  gap: 10px !important;
}

.topbar nav a{
  padding: 5px 10px !important;  /* réduit la taille des boutons */
  border-radius: 12px !important;
  line-height: 1.05 !important;
}

.topbar .brand{
  gap: 8px !important;
}

.topbar{
  padding: 0 !important;
}/*
/* === Menus : types === */
.tmf-menu-types{
  margin-top:32px;
}

.tmf-menu-types-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.tmf-menu-type{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:20px;
  box-shadow:var(--shadow);
}

.tmf-menu-type h3{
  margin:0 0 6px;
  font-size:18px;
}

.tmf-menu-type p{
  margin:0;
  color:var(--muted);
}

/* Responsive */
@media(max-width:900px){
  .tmf-menu-types-grid{
    grid-template-columns:1fr;
  }
}
/* Espace sous les bulles "Réponse rapide / Devis" */
.tmf-quick-grid {
  margin-bottom: 68px;
}
/* Espace entre les bulles Menus (rigides/souples/vis) et la grille photos */
.tmf-menu-types-grid{
  margin-bottom: 48px !important;
}
/* Images sous les bulles Gammes */
.tmf-gamme-img{
  width:100%;
  height:220px;
  object-fit:contain;
  display:block;
  margin-top:14px;
  border-radius:16px;
  border:1px solid rgba(17,24,39,0.08);
  box-shadow: 0 12px 30px rgba(17,24,39,0.10);
}


.tmf-hero-badges{
  margin-top: 42px;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}



.tmf-badge{
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;

  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 10px 22px rgba(15,23,42,0.08);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;

}


/* === PORTE-ADDITIONS : images GRANDES plein cadre === */
.page-porteadditions .tmf-grid-4 .tmf-photo{
  height: 260px !important;
  
  overflow: hidden !important;
  background: #f1f3f5 !important;
  
  display: flex !important;
  align-items: stretch !important;
}

.page-porteadditions .tmf-grid-4 .tmf-photo img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;   /* ✅ remplit vraiment */
  display: block !important;
  border-radius: 0 !important;     /* photo collée aux bords */
}

/* FINITIONS : réduire la taille des photos */
.tmf-grid-4 img{
  max-width: 260px;   /* ⬅️ change cette valeur si besoin */
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}
/* Finitions : images alignées haut + bas */
.tmf-grid-4{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.tmf-grid-4 img{
  width: 100%;
  height: 260px;        /* hauteur IDENTIQUE */
  object-fit: contain; /* pas de coupe */
  background: #f1f3f5; /* gris uniforme */
  padding: 12px;
  border-radius: 18px;
}
/* === MENUS : images collées haut / bas === */
.page-menus .tmf-photo,
.page-menus .tmf-menu-img-wrapper {
  height: 280px;              /* ajuste si besoin */
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #f1f3f5;
}

.page-menus .tmf-photo img,
.page-menus .tmf-menu-img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* clé du résultat */
  display: block;
}
/* === Porte-additions : images plein cadre === */
.page-porteadditions .tmf-photo{
  height: 240px;              /* ajuste si besoin */
  overflow: hidden;
  background: #f1f3f5;        /* gris uniforme */
  border-radius: 20px;
}

.page-porteadditions .tmf-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;          /* 🔥 remplit le cadre */
  display: block;
}
/* === Porte-additions : aligner la grille à gauche === */
.page-porteadditions .tmf-grid-4{
  margin-left: 0 !important;
  margin-right: auto !important;
}
.page-porteadditions .tmf-grid-4{
  margin-left: -40px !important; /* ajuste -8 / -12 / -16 */
}
/* Séparer clairement bulles et galerie photos */
.page-porteadditions .tmf-grid-4{
  margin-top: 0px !important;
  clear: both;
}
.page-porteadditions .tmf-card{
  margin-bottom: 12px;
}

.page-porteadditions .tmf-grid-4{
  margin-top: 56px !important;
}
/* === Réduire UNIQUEMENT les bulles autour des photos === */
/* PORTE-ADDITIONS : bulles photos – rayon réaliste */
.page-porteadditions .tmf-photo{
  border-radius: 22px !important;
  
}
.page-porteadditions .tmf-photo{
  background:#f1f3f5;
  border-radius:22px;   /* bulle plus petite */
  overflow:hidden;      /* empêche de déborder */
  padding:0;            /* pas de marge interne */
  margin:0;             /* pas de marge externe */
}
.page-porteadditions .tmf-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:0;
}


/* PORTE-ADDITIONS : réduire la largeur des bulles */
.page-porteadditions .tmf-grid-4{
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px; /* espace entre les bulles */
}
/* PORTE-ADDITIONS : empêcher le chevauchement (force la grille) */
.page-porteadditions .tmf-grid-4{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
/* PORTE-ADDITIONS : rétrécir les 2 bulles texte (pour éviter chevauchement) */
.page-porteadditions .tmf-grid-2{
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
.page-porteadditions .tmf-photo{
  border-radius: 18px !important;
}
.brand-logo{
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 900px){
  .brand-logo{ height: 36px; }
}





