/* =====================================================================
   Exemple fictif « Maison Lemaire » (boulangerie, Angers) : les deux mini-sites
   montrés dans l'avant / après de l'accueil, l'aperçu « Je valide » et la page
   cornée des écrans de compte.
   - .lm : la fenêtre (16/10, soit 1440 × 900 ; 4/5 sous 600 px) ; tout est en em,
     1 em = 16 px de la maquette d'origine, mis à l'échelle de la fenêtre (unités cqw).
   - .lm-ordi : version ordinateur dessinée à 1440 × 900 ;
     .lm-tel : version téléphone (390 de large pour l'après, 520 pour l'avant, qui
     n'est pas adapté au téléphone en 2013).
   - .av-* : le site de 2013 ; .ap-* : le site refait (aux couleurs du client).
   Chargée APRÈS marque.css et le <style> de la page (elle remplace les règles
   « .cadre img » pour les images internes).
   ===================================================================== */

.lm{position:relative;display:block;width:100%;aspect-ratio:16/10;overflow:hidden;container-type:inline-size;isolation:isolate;background:#F6EFE3;text-align:left;
  -webkit-font-smoothing:antialiased}
.lm-ordi,.lm-tel{position:absolute;inset:0;overflow:hidden}
.lm-ordi{font-size:calc(100cqw / 90)}
.lm-tel{display:none}
@media (max-width:599px){
  .lm{aspect-ratio:4/5}
  .lm-ordi{display:none}
  .lm-tel{display:block}
  .lm-tel.ap{font-size:calc(100cqw / 24.375)}
  .lm-tel.av{font-size:calc(100cqw / 32.5)}
}
.lm img.lm-i{display:block;max-width:none;width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
.lm p,.lm h1,.lm h2,.lm h3,.lm ul,.lm table{margin:0;padding:0}

/* ================= AVANT : le site de 2013 ================= */
.av{background:#E6D3A8 repeating-linear-gradient(45deg,rgba(255,255,255,.18) 0 .3em,transparent .3em .9em);color:#333;
  font-family:Verdana,Geneva,Tahoma,sans-serif}
.av-page{width:60em;height:100%;margin:0 auto;background:#FFFDF4;border-left:1px solid #B79B5E;border-right:1px solid #B79B5E;
  box-shadow:0 0 .7em rgba(80,50,10,.35);display:flex;flex-direction:column}
.av-tete{position:relative;height:8.4em;padding:1.5em 2em 0;background:linear-gradient(180deg,#FBD06B 0%,#F0A23A 45%,#C8641E 100%);
  border-bottom:3px solid #8A3F0E;overflow:hidden}
.av-tete::after{content:"";position:absolute;right:-2em;top:-3em;width:16em;height:16em;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.45),rgba(255,255,255,0) 65%)}
.av-nom{font:700 2.75em/1.05 "Comic Sans MS","Comic Sans",cursive;color:#fff;text-shadow:.06em .06em 0 #7A3407,0 0 .3em rgba(122,52,7,.5);letter-spacing:.01em}
.av-sous{margin-top:.35em!important;font:italic 1.15em "Times New Roman",Times,serif;color:#5A2405}
.av-epi{position:absolute;right:2.2em;top:1.6em;z-index:1;font:700 1em "Comic Sans MS",cursive;color:#7A3407;background:#FFF6C8;
  border:2px dashed #C8641E;border-radius:50%;width:7.2em;height:7.2em;display:flex;align-items:center;justify-content:center;
  text-align:center;line-height:1.15;transform:rotate(8deg)}
.av-onglets{display:flex;gap:.25em;padding:.6em 1em 0;background:#E9E2CF;border-bottom:1px solid #9C9C9C;list-style:none}
.av-onglets li{padding:.42em 1.05em .38em;font:700 .8em Verdana,sans-serif;color:#333;background:linear-gradient(#FAFAFA,#CFCFCF);
  border:1px solid #9C9C9C;border-bottom:0;border-radius:.45em .45em 0 0;white-space:nowrap}
.av-onglets li.on{background:#FFFDF4;color:#B22222;position:relative;top:1px}
.av-corps{flex:1;display:flex;gap:1.6em;padding:1.4em 1.8em 0;min-height:0}
.av-texte{flex:1;min-width:0}
.av-titre{font:700 1.65em/1.2 "Times New Roman",Times,serif;color:#B22222;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.12em}
.av-texte p:not(.av-titre){font-size:.88em;line-height:1.5;margin-top:.9em!important}
.av-photo{float:left;margin:1.2em 1.1em .4em 0;padding:.25em;background:#fff;border:.32em outset #D9C38F;width:10.6em}
.lm .av-photo img.lm-i{height:8.6em}
.av-photo span{display:block;font:italic .68em "Times New Roman",serif;text-align:center;color:#555;padding-top:.2em}
.av-liste{list-style:none;margin:.6em 0 0 1em!important;font-size:.88em;line-height:1.6}
.av-liste li::before{content:"» ";color:#C8641E;font-weight:700}
.av-gras{font-weight:700;text-decoration:underline}
.av-cmd{clear:both;color:#0000CC;font-weight:700}
.av-cote{width:16.5em;flex:none;display:grid;gap:.8em;align-content:start}
.av-boite{border:1px solid #B79B5E;background:#FFF8E1}
.av-boite .ex-h3{font:700 .8em Verdana,sans-serif;color:#fff;padding:.35em .6em;background:linear-gradient(#A0522D,#6B3410);text-shadow:1px 1px 0 #3D1C06}
.av-boite .in{padding:.5em .6em;font-size:.74em;line-height:1.45}
.av-horaires{border-collapse:collapse;width:100%;font-size:.74em}
.av-boite .av-horaires{margin:.4em 0 0}
.av-horaires td{border:1px solid #B79B5E;padding:.18em .4em}
.av-horaires tr:nth-child(odd) td{background:#FCEFC7}
.av-horaires .ferme{color:#B22222;font-weight:700}
.av-lien{color:#0000CC;text-decoration:underline}
.av-compteur{display:flex;justify-content:center;gap:.15em;margin:.3em 0}
.av-compteur b{font:700 1.15em "Courier New",monospace;color:#7CFC00;background:#111;padding:0 .22em;border:1px solid #666}
.av-pied{margin-top:auto;padding:.7em 1em;text-align:center;font-size:.68em;color:#6B5B3A;border-top:1px solid #D9C38F;background:#F4EBD3}

/* avant, téléphone : la page de 2013 n'est pas adaptée, on la voit en petit */
.av-tel .av-tete{height:6.2em;padding:1em 1.2em 0}
.av-tel .av-nom{font-size:2em}
.av-tel .av-sous{font-size:.9em}
.av-tel .av-epi{display:none}
.av-tel .av-onglets{flex-wrap:wrap;padding:.4em .5em 0}
.av-tel .av-onglets li{font-size:.72em;padding:.35em .7em}
.av-tel .av-corps{display:block;padding:1em 1.2em 0}
.av-tel .av-titre{font-size:1.4em}
.av-tel .av-photo{width:8.5em}
.lm .av-tel .av-photo img.lm-i{height:7em}
.av-tel .av-boite{margin-top:.8em}

/* ================= APRÈS : le site refait, aux couleurs du métier ================= */
.ap{--creme:#F6EFE3;--farine:#FFFBF4;--croute:#3A2416;--croute-2:#7A4A26;--miel:#E7B771;--vermillon:#C2412D;
  background:var(--creme);color:var(--croute);font-family:"Plus Jakarta Sans",system-ui,sans-serif}
.ap-serif{font-family:"DM Serif Display",Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-.005em}
.ap-barre{height:4.5em;display:flex;align-items:center;gap:2.4em;padding:0 3.5em;background:var(--creme)}
.ap-logo{display:flex;align-items:center;gap:.7em;margin-right:auto}
.ap-sceau{width:2.6em;height:2.6em;border-radius:50%;border:1.5px solid var(--croute);display:flex;align-items:center;justify-content:center;
  font:400 1.15em/1 "DM Serif Display",Georgia,serif;color:var(--croute)}
.ap-logo b{display:block;font:400 1.55em/1 "DM Serif Display",Georgia,serif}
.ap-logo small{display:block;margin-top:.3em;font-size:.62em;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--croute-2)}
.ap-nav{display:flex;gap:2em;font-size:.92em;font-weight:600}
.ap-nav span:first-child{box-shadow:inset 0 -2px 0 var(--vermillon)}
.ap-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em;height:2.9em;padding:0 1.5em;border-radius:999px;font-weight:700;font-size:.95em;white-space:nowrap}
.ap-btn-plein{background:var(--vermillon);color:#fff}
.ap-btn-trait{box-shadow:inset 0 0 0 1.5px var(--croute);color:var(--croute)}
.ap-heros{position:relative;height:30em;color:var(--farine);overflow:hidden}
/* photo retournée : les brioches aux fruits passent à droite, le texte se pose sur le flou */
.ap-heros .lm-i{position:absolute;inset:0;object-position:50% 40%;transform:scaleX(-1)}
.ap-heros::before{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,rgba(33,19,9,.86) 0%,rgba(33,19,9,.66) 34%,rgba(33,19,9,.12) 62%,rgba(33,19,9,0) 80%)}
.ap-heros-txt{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;justify-content:center;padding:0 3.5em;max-width:44em}
.ap-sur{font-size:.78em;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--miel)}
.ap-h1{margin-top:.25em!important;font-size:4.5em;line-height:1}
.ap-h1 em{font-style:italic;color:var(--miel)}
.ap-chap{margin-top:.9em!important;font-size:1.1em;line-height:1.55;max-width:31em;color:rgba(255,251,244,.92)}
.ap-actions{display:flex;align-items:center;gap:1.6em;margin-top:1.6em}
.ap-lien-clair{font-weight:700;font-size:.95em;text-decoration:underline;text-underline-offset:.3em;text-decoration-thickness:1px}
.ap-pratique{height:5em;display:grid;grid-template-columns:1.25fr 1fr 1fr;background:var(--croute);color:var(--farine);padding:0 3.5em}
.ap-info{display:flex;align-items:center;gap:.9em;padding:0 1.6em;border-left:1px solid rgba(255,251,244,.18)}
.ap-info:first-child{border-left:0;padding-left:0}
.ap-info svg{flex:none;width:1.5em;height:1.5em;stroke:var(--miel);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ap-info small{display:block;font-size:.68em;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--miel)}
.ap-info span{display:block;font-size:.95em;font-weight:600;margin-top:.15em;white-space:nowrap}
.ap-info .ap-tel{text-decoration:underline;text-underline-offset:.25em;text-decoration-thickness:1px}
.ap-specs{display:grid;grid-template-columns:15em repeat(3,minmax(0,1fr));gap:1.8em;padding:2.2em 3.5em 0}
.ap-h2{font-size:2.2em;line-height:1.05}
.ap-specs-intro p:not(.ap-h2){margin-top:.6em!important;font-size:.92em;line-height:1.5;color:var(--croute-2)}
.ap-carte .lm-i{border-radius:.7em}
.lm .ap-carte img.lm-i{height:10.5em}
.ap-carte .ex-h3{margin-top:.7em!important;font:400 1.3em/1.1 "DM Serif Display",Georgia,serif}
.ap-carte p:not(.ex-h3){margin-top:.25em!important;font-size:.85em;line-height:1.45;color:var(--croute-2)}

/* après, téléphone (390 de large) */
.ap-tel .ap-barre{height:3.6em;padding:0 1.1em;gap:.8em}
.ap-tel .ap-sceau{width:2.1em;height:2.1em;font-size:1em}
.ap-tel .ap-logo b{font-size:1.25em}
.ap-tel .ap-logo small{font-size:.56em}
.ap-burger{width:1.6em;height:1.1em;background:linear-gradient(var(--croute),var(--croute)) 0 0/100% 2px no-repeat,
  linear-gradient(var(--croute),var(--croute)) 0 50%/100% 2px no-repeat,linear-gradient(var(--croute),var(--croute)) 0 100%/70% 2px no-repeat}
.ap-tel .ap-heros{height:19.5em}
.ap-tel .ap-heros .lm-i{object-position:62% 90%}
.ap-tel .ap-heros::before{background:linear-gradient(0deg,rgba(33,19,9,.9) 0%,rgba(33,19,9,.6) 48%,rgba(33,19,9,.05) 85%)}
.ap-tel .ap-heros-txt{justify-content:flex-end;padding:0 1.1em 1.3em}
.ap-tel .ap-sur{font-size:.66em}
.ap-tel .ap-h1{font-size:2.3em;line-height:1.02}
.ap-tel .ap-actions{margin-top:1em}
.ap-tel .ap-btn{height:2.9em;width:100%}
.ap-tel .ap-pratique{display:block;height:auto;padding:.9em 1.1em}
.ap-tel .ap-info{padding:.35em 0;border:0}
.ap-tel .ap-info span{font-size:.9em}
.ap-tel .ap-h2{font-size:1.6em;padding:1em 1.1em 0}
