/* Melimel Home — page « Offrir une carte cadeau » (mm-cartes-cadeaux-page.php).
   Charte : anthracite #2c2925, ivoire #fdfaf6, sable #e8e0d5, taupe #6b5f52, or #c8a882 / #8b6b4a.
   Fichier servi tel quel et garde entier par « Remove Unused CSS » (filtre rocket_rucss_safelist). */

.mmcc{
  --mmcc-ink:#2c2925; --mmcc-ivoire:#fdfaf6; --mmcc-sable:#e8e0d5; --mmcc-taupe:#6b5f52; --mmcc-or:#8b6b4a; --mmcc-alerte:#a8491f;
  box-sizing:border-box; max-width:1280px; margin:0 auto; padding:40px 24px 64px;
  display:flex; gap:56px; align-items:flex-start;
  font-family:'Jost',sans-serif; color:var(--mmcc-ink); background:var(--mmcc-ivoire);
}
.mmcc *,.mmcc *::before,.mmcc *::after{box-sizing:border-box}
.mmcc-col{min-width:0}
.mmcc-gauche{flex:0 0 46%; display:flex; flex-direction:column; gap:18px; position:sticky; top:24px}
.mmcc-form{flex:1 1 0; display:flex; flex-direction:column; gap:22px; padding-top:34px; margin:0}

.mmcc-ariane{font-size:12px; color:var(--mmcc-taupe)}
.mmcc-ariane a{color:var(--mmcc-taupe); text-decoration:none}
.mmcc-ariane a:hover{color:var(--mmcc-or)}
.mmcc-h1{margin:0; font-family:'Cormorant Garamond',serif; font-weight:400; font-size:44px; line-height:1.05; color:var(--mmcc-ink)}

.mmcc-offert{display:flex; gap:14px; align-items:center; border:1px solid var(--mmcc-sable); background:#fff; padding:10px}
.mmcc-offert img{width:84px; height:84px; object-fit:cover; flex:none; margin:0}
.mmcc-offert p{margin:0; font-size:13px; line-height:1.45; color:var(--mmcc-taupe)}
.mmcc-offert strong{color:var(--mmcc-ink); font-weight:500; font-size:15px}
.mmcc-offert span{font-size:12px}

/* --- Apercu : la carte suit sa largeur (unites de conteneur) --- */
.mmcc-apercu-cadre{container-type:inline-size; width:100%}
.mmcc-carte{
  --fond:#2f3d34; --cadre:#c8a882; --texte:#fdfaf6; --titre:#e3cfae; --accent:#c8a882;
  width:100%; aspect-ratio:560/350; padding:2.5cqw; background:var(--fond); color:var(--texte);
  box-shadow:0 18px 40px -22px rgba(44,41,37,.45); transition:background .25s,color .25s;
}
.mmcc-carte-in{height:100%; border:1px solid var(--cadre); display:flex}
.mmcc-carte-txt{flex:1 1 0; min-width:0; padding:3.9cqw 0 3.6cqw 4.6cqw; display:flex; flex-direction:column; justify-content:space-between}
.mmcc-marque{font-size:1.8cqw; letter-spacing:.7cqw; font-weight:500}
.mmcc-accroche{display:block; font-family:'Cormorant Garamond',serif; font-style:italic; font-size:5cqw; line-height:1.1; color:var(--titre)}
.mmcc-montant{display:block; font-family:'Cormorant Garamond',serif; font-size:11.8cqw; line-height:1.05; white-space:nowrap}
.mmcc-msg{font-family:'Cormorant Garamond',serif; font-style:italic; font-size:2.9cqw; line-height:1.35; min-height:1.35em;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere}
.mmcc-pied{display:flex; justify-content:space-between; align-items:flex-end; gap:2cqw; font-size:1.96cqw; line-height:1.5}
.mmcc-pied strong{font-weight:500}
.mmcc-code{letter-spacing:.18cqw; text-align:right; opacity:.85; white-space:nowrap}
.mmcc-art{width:35cqw; flex:none; display:flex; align-items:center; justify-content:center; color:var(--accent)}
.mmcc-art svg{width:32.5cqw; height:45.5cqw; display:block}

.mmcc-legende{margin:0; font-size:12px; color:var(--mmcc-taupe); text-align:center}
.mmcc-atouts{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px}
.mmcc-atouts div{border:1px solid var(--mmcc-sable); padding:14px; font-size:12px; line-height:1.5; color:var(--mmcc-taupe)}
.mmcc-atouts strong{display:block; color:var(--mmcc-ink); font-weight:500; font-size:13px}

/* --- Formulaire --- */
.mmcc-bloc{border:0; margin:0; padding:0; min-width:0; display:flex; flex-direction:column; gap:8px}
.mmcc-bloc legend,.mmcc-deux label,.mmcc-champ{font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--mmcc-taupe); padding:0; margin:0 0 8px}
.mmcc-deux{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px}
.mmcc-deux label,.mmcc-champ{display:flex; flex-direction:column; gap:8px; margin:0}
.mmcc input[type=text],.mmcc input[type=email],.mmcc input[type=date],.mmcc input[type=time],.mmcc textarea{
  width:100%; height:44px; border:1px solid var(--mmcc-sable); border-radius:0; padding:0 12px; margin:0;
  font-family:'Jost',sans-serif; font-size:14px; letter-spacing:0; text-transform:none; color:var(--mmcc-ink); background:#fff; box-shadow:none}
.mmcc textarea{height:auto; padding:12px; line-height:1.5; resize:none}
.mmcc input:focus,.mmcc textarea:focus{outline:none; border-color:var(--mmcc-or)}
.mmcc-compteur{align-self:flex-end; letter-spacing:0; font-size:12px; text-transform:none}

.mmcc-themes{display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px}
.mmcc-theme{position:relative; display:flex; flex-direction:column; align-items:center; gap:6px; padding:5px 4px 7px; border:2px solid transparent; cursor:pointer; font-size:11px; line-height:1.2; text-align:center; color:var(--mmcc-ink); min-height:44px}
.mmcc-theme input,.mmcc-btn>input[type=radio]{position:absolute; opacity:0; width:1px; height:1px; margin:0; pointer-events:none}
.mmcc-pastille{display:block; width:100%; height:34px; border:1px solid var(--mmcc-sable)}
.mmcc-theme:has(input:checked){border-color:var(--mmcc-or)}
.mmcc-theme:has(input:focus-visible){outline:2px solid var(--mmcc-or); outline-offset:2px}

.mmcc-montants{display:flex; flex-wrap:wrap; gap:8px}
.mmcc-duo{display:flex; gap:8px}
.mmcc-duo .mmcc-btn{flex:1 1 0}
.mmcc-btn{position:relative; display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:92px; height:44px; padding:0 14px;
  border:1px solid var(--mmcc-ink); background:var(--mmcc-ivoire); color:var(--mmcc-ink); font-size:14px; cursor:pointer; user-select:none}
.mmcc-btn:has(>input:checked){background:var(--mmcc-ink); color:var(--mmcc-ivoire)}
.mmcc-btn:has(>input:focus-visible){outline:2px solid var(--mmcc-or); outline-offset:2px}
.mmcc-autre{border-color:var(--mmcc-sable); background:#fff; color:var(--mmcc-taupe); font-size:13px}
.mmcc-autre:has(>input:checked){border-color:var(--mmcc-ink); background:#fff; color:var(--mmcc-ink)}
.mmcc .mmcc-autre input[type=text]{width:84px; height:30px; border:0; padding:0 4px; font-size:14px; background:transparent; color:var(--mmcc-ink)}

.mmcc-aide{margin:0; font-size:13px; color:var(--mmcc-taupe)}
.mmcc-mail{display:flex; flex-direction:column; gap:10px}
.mmcc-mail[hidden],.mmcc-quand[hidden],.mmcc-aide[hidden],.mmcc-erreur[hidden]{display:none}
.mmcc-quand{display:flex; gap:8px}
.mmcc-quand input[type=time]{max-width:140px}
.mmcc-erreur{margin:0; font-size:13px; color:var(--mmcc-alerte)}

.mmcc-valider{height:54px; border:0; border-radius:0; background:var(--mmcc-ink); color:var(--mmcc-ivoire); font-family:'Jost',sans-serif; font-size:15px; letter-spacing:1px; cursor:pointer; margin-top:4px; transition:background .2s}
.mmcc-valider:hover,.mmcc-valider:focus{background:#000; color:var(--mmcc-ivoire)}
.mmcc-valider span:not(:empty)::before{content:" · "}
.mmcc-mention{margin:0; font-size:12px; line-height:1.5; color:var(--mmcc-taupe)}
.mmcc-ferme{max-width:700px; margin:80px auto; text-align:center; font-family:'Cormorant Garamond',serif; font-size:28px; color:#2c2925}

@media (max-width:1024px){
  .mmcc{flex-direction:column; gap:28px; padding:24px 18px 48px}
  .mmcc-gauche{flex:none; width:100%; position:static}
  .mmcc-form{padding-top:0; width:100%}
  .mmcc-h1{font-size:34px}
}
@media (max-width:640px){
  .mmcc-themes{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mmcc-atouts{gap:6px}
  .mmcc-atouts div{padding:10px 6px; text-align:center; font-size:11px}
  .mmcc-atouts span{display:none}
  .mmcc-deux{grid-template-columns:1fr}
  .mmcc-btn{min-width:0; flex:1 1 calc(33.333% - 8px)}
  .mmcc-autre{flex-basis:100%}
}

/* --- Page « Mon cadeau » (mm-cartes-cadeaux-envois.php) --- */
.mmcc.mmcc-cadeau{display:block; background:#f5f0ea}
.mmcc-cadeau-in{max-width:560px; margin:0 auto; display:flex; flex-direction:column; gap:18px}
.mmcc-centre{text-align:center}
.mmcc-cadeau .mmcc-h1 em{font-style:italic; color:var(--mmcc-or)}
.mmcc-infos{background:var(--mmcc-ivoire); border:1px solid var(--mmcc-sable); padding:18px 20px; display:flex; flex-direction:column; gap:10px}
.mmcc-infos div{display:flex; justify-content:space-between; gap:12px; font-size:13px; color:var(--mmcc-taupe)}
.mmcc-infos strong{color:var(--mmcc-ink); font-weight:500}
.mmcc-lecode{letter-spacing:1px}
.mmcc a.mmcc-lien{display:flex; align-items:center; justify-content:center; text-decoration:none; color:var(--mmcc-ivoire)}
.mmcc .mmcc-lien2{flex:1 1 0; text-decoration:none; border-color:var(--mmcc-or); color:var(--mmcc-or); background:transparent; font-family:'Jost',sans-serif; font-size:13px}
.mmcc a.mmcc-offert{text-decoration:none}

/* --- Logo d'entreprise sur la carte (offre entreprise) --- */
.mmcc-art-logo{padding-right:3.6cqw}
.mmcc-logo{display:flex; align-items:center; justify-content:center; width:28cqw; height:20cqw; padding:2.4cqw; background:#fdfaf6; border:1px solid var(--accent)}
.mmcc-logo img{display:block; max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; margin:0}

/* --- Page « Cartes cadeaux entreprise » (mm-cartes-cadeaux-entreprise.php) --- */
.mmcce-intro{margin:0; font-size:15px; line-height:1.6; color:var(--mmcc-taupe)}
.mmcce [hidden]{display:none !important}
.mmcce-services{grid-template-columns:repeat(3,minmax(0,1fr))}
.mmcce-urssaf{font-size:12px; line-height:1.55; border-left:2px solid var(--mmcc-or); padding-left:12px}
.mmcce-sous{font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--mmcc-taupe); margin-top:8px}
.mmcce-fac{letter-spacing:0; text-transform:none}
.mmcce input[type=file]{width:100%; padding:8px 0; border:0; font-family:'Jost',sans-serif; font-size:13px; letter-spacing:0; text-transform:none; color:var(--mmcc-ink); background:transparent}
.mmcce #mmcce-liste{font-size:13px; line-height:1.6}
.mmcce-piege{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden}
.mmcce-total{margin:0; font-family:'Cormorant Garamond',serif; font-size:26px; line-height:1.2; color:var(--mmcc-ink)}
.mmcce-total:empty{display:none}
.mmcce-recap .mmcce-liste{max-height:420px; overflow:auto}
.mmcce-recap .mmcce-liste table{width:100%; border-collapse:collapse; font-size:13px}
.mmcce-recap .mmcce-liste td{padding:7px 4px; border-bottom:1px solid var(--mmcc-sable); color:var(--mmcc-ink)}
.mmcce-d{text-align:right; white-space:nowrap}
.mmcce-accord{display:flex; gap:10px; align-items:flex-start; font-size:13px; line-height:1.5; color:var(--mmcc-taupe); letter-spacing:0; text-transform:none}
.mmcce-accord input{margin-top:3px; flex:none}
.mmcce-accord a{color:var(--mmcc-or)}
.mmcce-recap .mmcc-lien2{display:flex; height:44px; align-items:center; justify-content:center}
@media (max-width:640px){
  .mmcce-services{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mmcce .mmcc-duo .mmcc-btn{font-size:13px; padding:0 8px}
}

/* --- Carte « Offrir ce produit » (canevas valide : photo a gauche, nom du produit, valeur offerte) --- */
.mmcc-cp{height:100%; display:flex; background:#fdfaf6; border:1px solid #e8e0d5}
.mmcc-cp-photo{width:42%; flex:none; background:#fff; overflow:hidden; border-right:1px solid #e8e0d5}
.mmcc-cp-photo img{display:block; width:100%; height:100%; object-fit:contain; margin:0}
.mmcc-cp-txt{flex:1 1 0; min-width:0; padding:4cqw 4.2cqw 3.2cqw; display:flex; flex-direction:column; justify-content:space-between; gap:1.2cqw; color:#2c2925}
.mmcc-cp-txt .mmcc-marque{display:block}
.mmcc-cp-filet{display:block; width:4cqw; height:1px; background:#c8a882; margin-top:.9cqw}
.mmcc-cp-acc{display:block; font-family:'Cormorant Garamond',serif; font-style:italic; font-size:2.5cqw; color:#8b6b4a}
.mmcc-cp-nom{font-family:'Cormorant Garamond',serif; font-size:3.7cqw; line-height:1.08; margin:.5cqw 0 1cqw; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.mmcc-cp-desc{display:block; font-size:1.5cqw; line-height:1.55; color:#6b5f52}
.mmcc-cp-desc strong{color:#2c2925; font-weight:500}
.mmcc-carte-produit .mmcc-cp-msg{display:block; min-height:0; margin-top:.8cqw; font-size:1.8cqw; color:#2c2925}
.mmcc-cp-pied{display:flex; justify-content:space-between; align-items:flex-end; gap:2cqw; border-top:1px solid #e8e0d5; padding-top:1.4cqw; font-size:1.3cqw; line-height:1.5; color:#6b5f52; text-align:right}
.mmcc-cp-pied > span:first-child{text-align:left}
.mmcc-cp-lab{display:block; font-size:1.05cqw; letter-spacing:.2cqw}
.mmcc-cp-pied .mmcc-code-val{display:block; font-size:1.7cqw; letter-spacing:.2cqw; font-weight:500; color:#2c2925}
.mmcc-valeur{display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:14px 16px; background:#fff; border:1px solid var(--mmcc-sable); font-size:14px}
.mmcc-valeur strong{font-family:'Cormorant Garamond',serif; font-size:26px; font-weight:400}
