/* HOME 16/11 (parts/accueil-1611.php, mock-up validated by Romain: docs/plan-scale-1611/maquettes/accueil-3-univers-v2.html).
   Tokens of main.css only (plâtre, anthracite, moutarde, bronze = --bleu); no green; buttons = the fiche classes
   (.dbt-m.dbt-m--a, .bouton--discret, design-boutons.css); prefix .a16-. */

.a16 { --a16-pas: clamp(2.6rem, 2rem + 2.4vw, 3.6rem); }
.a16-env { width: min(100% - 2 * var(--gutter), var(--col)); margin-inline: auto; }
.a16 a:focus-visible, .a16 button:focus-visible, .a16 summary:focus-visible, .a16 input:focus-visible { outline: 3px solid var(--moutarde); outline-offset: 3px; }
.a16 .num { font-variant-numeric: tabular-nums; }
.a16-sur { margin: 0; font: 600 0.95rem/1.3 var(--sans); color: var(--anthracite); }
.a16-sur::before { content: ""; display: inline-block; width: 22px; height: 2px; margin-right: 10px; background: var(--anthracite); vertical-align: middle; }

/* --- Hero: full-bleed photo, the mustard card with the H1 --- */
.a16-une { position: relative; display: flex; align-items: flex-end; min-height: 600px; overflow: hidden; background: var(--platre-2); isolation: isolate; }
.a16-une__fond { position: absolute; inset: 0; z-index: -1; }
.a16-une__fond img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.a16-une .a16-env { padding: 120px 0 48px; }
.a16-une__carte { max-width: 620px; padding: 30px 32px 28px; border-radius: 4px; background: var(--moutarde); color: var(--anthracite); box-shadow: 0 24px 50px -24px rgba(35, 38, 43, 0.55); }
.a16-une__titre { margin: 12px 0 14px; font: 600 clamp(1.9rem, 1.3rem + 2.3vw, 3rem)/1.1 var(--serif); letter-spacing: -0.01em; color: var(--anthracite); text-wrap: balance; }
.a16-une__chapo { margin: 0 0 20px; max-width: 34rem; font: 400 1.1rem/1.55 var(--serif); }
.a16-cherche { display: flex; gap: 5px; max-width: 34rem; padding: 5px; border: 1px solid var(--anthracite); border-radius: 4px; background: var(--blanc); }
.a16-cherche input { flex: 1; min-width: 0; padding: 10px 12px; border: 0; background: transparent; color: var(--anthracite); font: 400 1rem/1.3 var(--sans); }
.a16-cherche input::placeholder { color: var(--feutre); }
.a16-cherche input:focus-visible { outline-offset: 0; }
.dbt .a16-cherche .dbt-m { flex: none; min-height: 46px; cursor: pointer; }

/* --- Brand band and its figures --- */
.a16-signature { background: var(--anthracite); color: var(--blanc); }
.a16-signature__grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 30px; align-items: center; padding: 30px 0; }
.a16-signature__devise { margin: 0; font: italic 500 clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem)/1.3 var(--serif); }
.a16-signature__devise b { font-weight: 600; color: var(--moutarde); }
.a16-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; font-family: var(--sans); }
.a16-chiffres div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 4px 18px; border-left: 1px solid rgba(250, 250, 248, 0.18); }
.a16-chiffres dd { margin: 0; font: 600 34px/1.1 var(--serif); color: var(--moutarde); }
.a16-chiffres dt { font-size: 0.875rem; line-height: 1.35; color: #d8d5ce; }

/* --- Sections --- */
.a16-bloc { padding: var(--a16-pas) 0 0; }
.a16 > .a16-bloc:last-of-type { padding-bottom: var(--a16-pas); }
.a16-rubrique { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--trait); }
.a16-rubrique::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 3px; background: var(--moutarde); }
.a16-rubrique h2 { margin: 0; font: 600 clamp(1.5rem, 1.2rem + 1vw, 2.05rem)/1.2 var(--serif); }
.a16-rubrique a { font: 600 0.95rem/1.3 var(--sans); color: var(--bleu-2); text-underline-offset: 3px; }
.a16-grille { display: grid; gap: 18px; }
.a16-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.a16-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.a16-photo { position: relative; display: block; overflow: hidden; background: var(--platre-2); }
.a16-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.a16-photo picture { display: contents; }
a:hover .a16-photo img { transform: scale(1.03); }

/* Rooms */
.a16-piece { overflow: hidden; border-radius: 6px; background: var(--blanc); box-shadow: var(--ombre); }
.a16-piece__photo { aspect-ratio: 16 / 9; }
.a16-piece__photo h3 { position: absolute; left: 0; bottom: 0; margin: 0; padding: 6px 16px; border-top-right-radius: 4px; background: var(--moutarde); font: 600 21px/1.3 var(--serif); color: var(--anthracite); }
.a16-piece__liste { list-style: none; margin: 0; padding: 6px 16px 14px; }
.a16-piece__liste li + li { border-top: 1px solid var(--trait); }
.a16-piece__liste a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; padding: 10px 0; font: 600 1rem/1.3 var(--sans); color: var(--anthracite); text-decoration: none; }
.a16-piece__liste a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.a16-piece__liste small { font-weight: 400; font-size: 0.9rem; color: var(--feutre); }
.a16-piece__plus { padding: 10px 0; font: 600 0.95rem var(--sans); }

/* Cards (rankings, guides, Inspiration) */
.a16-carte { display: flex; flex-direction: column; overflow: hidden; border-radius: 6px; background: var(--blanc); color: var(--anthracite); text-decoration: none; box-shadow: var(--ombre); }
.a16-carte__photo, .a16-guide__photo { aspect-ratio: 4 / 3; }
.a16-guide__photo { aspect-ratio: 3 / 2; }
.a16-carte__txt { flex: 1; display: flex; flex-direction: column; padding: 14px 16px 16px; font-family: var(--sans); }
.a16-carte small { display: block; font-size: 0.82rem; font-weight: 600; line-height: 1.35; color: var(--bleu-2); }
.a16-carte strong { display: block; margin: 4px 0 8px; font: 600 1.2rem/1.3 var(--serif); }
.a16-carte:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.a16-carte__desc { font-size: 0.92rem; line-height: 1.45; color: var(--feutre); }
.a16-carte__n1 { font-size: 0.9rem; line-height: 1.35; color: var(--feutre); }
.a16-rang { position: absolute; left: 12px; top: 12px; padding: 4px 9px; border-radius: 3px; background: var(--anthracite); color: var(--blanc); font: 700 0.8rem/1.2 var(--sans); }
.a16-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--trait); }
.a16-carte__n1 + .a16-ligne { margin-top: 10px; }
.a16-note { display: inline-flex; align-items: baseline; gap: 2px; padding: 3px 8px; border-radius: 3px; background: var(--moutarde); color: var(--anthracite); font: 700 0.95rem/1.2 var(--sans); }
.a16-note small { display: inline; font-size: 0.7rem; color: var(--anthracite); }
.a16-prix { font: 600 0.95rem/1.3 var(--sans); }
.dbt .a16-carte__bouton { margin-top: 12px; }
.dbt .a16-carte__bouton .cta__texte { flex: 1; text-align: center; }

/* Promotions: the /codes-promo/ coupons (horizontal cards), 2 in a row as on /codes-promo/ */
.a16 .a16-promos__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* Merchants */
.a16-marques { margin-top: var(--a16-pas); border-block: 1px solid var(--trait); background: var(--blanc); }
.a16-marques__grille { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 18px 0; }
.a16-marques p { margin: 0; max-width: 13rem; font: 600 0.875rem/1.35 var(--sans); color: var(--feutre); }
.a16-marques ul { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 34px; margin: 0; padding: 0; list-style: none; }
.a16-marques li { font: 600 1.3rem/1.2 var(--serif); color: var(--anthracite); opacity: 0.82; }
.a16-marques li:nth-child(2n) { font: 650 1.2rem/1.2 var(--sans); }
.a16-marques li:nth-child(3n) { font-style: italic; }

/* Latest reviews: the site cards, one row of 4 */
.a16-recents { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Guide déco to download: the site's form block (guide-deco-cta.css .gd-bas), framed as a card */
.a16-gd__carte.gd-bas { padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1rem, 3vw, 2.4rem); border: 0; border-top: 6px solid var(--moutarde); border-radius: 6px; background: var(--blanc); box-shadow: var(--ombre); }
.a16-gd .gd-bas__titre { font-weight: 600; }
.a16-gd .gd-bas__couv { display: block; }

/* Inspiration: editorial layout, the first card on two rows */
.a16-inspi { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.a16-inspi .a16-carte .a16-photo { aspect-ratio: 16 / 10; }
.a16-inspi .a16-carte:first-child { grid-row: 1 / 3; }
.a16-inspi .a16-carte:first-child .a16-photo { flex: 1; min-height: 420px; aspect-ratio: auto; }
.a16-inspi .a16-carte:first-child strong { font-size: 1.5rem; }

/* Instagram */
.a16-ig__tete { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-family: var(--sans); }
.a16-ig__tete p { margin: 0; line-height: 1.4; }
.a16-ig__tete p span { color: var(--feutre); }
.a16-ig__rond { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border: 3px solid var(--moutarde); border-radius: 50%; background: var(--anthracite); color: var(--blanc); font: 600 1.2rem/1 var(--serif); }
.dbt .a16-ig__suivre { margin-left: auto; min-height: 44px; border-radius: 4px; }
.a16-reels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.a16-reel { display: block; color: var(--blanc); text-decoration: none; font: 600 0.875rem/1.35 var(--sans); }
#a16-instagram .a16-reel, #a16-instagram .a16-reel:hover, #a16-instagram .a16-reel:focus-visible, #a16-instagram .a16-reel:visited { color: var(--blanc); }
#a16-instagram .a16-reel:hover .a16-reel__legende, #a16-instagram .a16-reel:hover .a16-reel__duree { color: var(--blanc); }
.a16-reel__photo { aspect-ratio: 4 / 5; border-radius: 6px; }
.a16-reel__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35, 38, 43, 0) 45%, rgba(35, 38, 43, 0.8)); }
.a16-reel__lecture { position: absolute; z-index: 1; left: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(250, 250, 248, 0.92); }
.a16-reel__lecture::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 11px solid var(--anthracite); border-block: 7px solid transparent; }
.a16-reel__duree { position: absolute; z-index: 1; right: 10px; top: 14px; padding: 2px 6px; border-radius: 3px; background: rgba(35, 38, 43, 0.6); font: 600 0.75rem/1.3 var(--sans); }
.a16-reel__legende { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; }

/* Instagram reader (M21, assets/js/accueil-1611-ig.js): the dialog covers the screen (a click on it = outside the box),
   the box is the media then the caption; on a phone, full screen, media above the caption. */
html:has(.a16-lect[open]) { overflow: hidden; }
.a16-lect { box-sizing: border-box; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 56px 80px 24px; border: 0; background: transparent; color: var(--anthracite); overscroll-behavior: contain; }
.a16-lect[open] { display: flex; align-items: center; justify-content: center; }
.a16-lect::backdrop { background: rgba(23, 25, 28, 0.88); }
.a16-lect__barre { position: absolute; top: 10px; left: 16px; right: 16px; display: flex; align-items: center; gap: 8px; font: 600 0.875rem/1.3 var(--sans); color: var(--blanc); pointer-events: none; }
.a16-lect__barre > * { pointer-events: auto; }
.a16-lect__pos { margin-right: auto; }
.a16-lect button { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(250, 250, 248, 0.94); color: var(--anthracite); box-shadow: none; font: 400 1.9rem/1 var(--sans); cursor: pointer; transition: background-color 0.18s ease; }
.a16-lect button:hover { background: var(--moutarde); color: var(--anthracite); }
.a16-lect button:disabled { opacity: 0.35; cursor: default; background: rgba(250, 250, 248, 0.94); }
.a16-lect button span { margin-top: -0.12em; }
.a16-lect .a16-lect__nav { position: fixed; top: 50%; translate: 0 -50%; width: 52px; height: 52px; }
.a16-lect__nav--prec { left: 16px; }
.a16-lect__nav--suiv { right: 16px; }
.a16-lect__boite { display: flex; max-height: 100%; overflow: hidden; border-radius: 6px; background: var(--blanc); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6); }
.a16-lect__media { --h: min(100dvh - 80px, 900px); position: relative; flex: none; width: min(var(--h) * var(--r, 0.8), 100vw - 160px - 360px); aspect-ratio: var(--r, 0.8); background: #17191c; }
.a16-lect__media video, .a16-lect__media img { display: block; width: 100%; height: 100%; object-fit: contain; background: #17191c; }
.a16-lect__piste { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.a16-lect__piste::-webkit-scrollbar { display: none; }
.a16-lect__piste:focus-visible { outline: 3px solid var(--moutarde); outline-offset: -3px; }
.a16-lect__diapo { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.a16-lect .a16-lect__img { position: absolute; top: 50%; translate: 0 -50%; width: 38px; height: 38px; font-size: 1.6rem; }
.a16-lect .a16-lect__img:disabled { visibility: hidden; }
.a16-lect__img--prec { left: 10px; }
.a16-lect__img--suiv { right: 10px; }
.a16-lect__num { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 3px; background: rgba(23, 25, 28, 0.7); color: var(--blanc); font: 600 0.75rem/1.4 var(--sans); }
.a16-lect__texte { display: flex; flex-direction: column; width: 360px; min-height: 0; padding: 22px 22px 20px; font-family: var(--sans); }
.a16-lect__compte { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 0.95rem; }
.a16-lect__compte .a16-ig__rond { width: 36px; height: 36px; border-width: 2px; font-size: 0.85rem; }
.a16-lect__titre { margin: 0 0 10px; font: 600 1.3rem/1.3 var(--serif); color: var(--anthracite); }
.a16-lect__legende { flex: 1 1 auto; min-height: 0; overflow-y: auto; font-size: 0.95rem; line-height: 1.55; color: var(--anthracite); }
.a16-lect__legende p { margin: 0 0 0.5em; }
.a16-lect__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--trait, #d9d6cf); }
.a16-lect__ig, .a16-lect__ig:visited { color: var(--anthracite); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }
.a16-lect__ig:hover { color: var(--anthracite); text-decoration-color: var(--moutarde); text-decoration-thickness: 2px; }
@media (max-width: 900px) {
  .a16-lect { padding: 0; background: #17191c; }
  .a16-lect[open] { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .a16-lect::backdrop { background: #17191c; }
  .a16-lect__barre { position: static; flex: none; padding: 8px 12px; }
  .a16-lect .a16-lect__nav { position: static; translate: none; width: 44px; height: 44px; }
  .a16-lect__boite { flex: 1 1 auto; flex-direction: column; min-height: 0; border-radius: 0; box-shadow: none; overflow-y: auto; }
  .a16-lect__media { width: 100%; height: min(64dvh, 100vw / var(--r, 0.8)); aspect-ratio: auto; }
  .a16-lect__texte { width: auto; flex: none; padding: 18px 16px 24px; }
  .a16-lect__legende { overflow: visible; }
}

/* Method signed by Romain */
.a16-methode { display: grid; grid-template-columns: 300px minmax(0, 1fr); overflow: hidden; border-radius: 6px; background: var(--blanc); box-shadow: var(--ombre); }
.a16-auteur { padding: 26px; background: var(--anthracite); color: var(--blanc); font-family: var(--sans); }
.a16-auteur img { width: 120px; height: 120px; border: 4px solid var(--moutarde); border-radius: 50%; object-fit: cover; }
.a16-auteur b { display: block; margin-top: 14px; font: 600 1.25rem var(--serif); }
.a16-auteur span { font-size: 0.875rem; color: #d8d5ce; }
.a16-auteur p { margin: 14px 0 0; font: italic 1rem/1.5 var(--serif); }
.a16-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 22px; padding: 26px; font: 400 0.95rem/1.5 var(--sans); }
.a16-points__num { display: block; font: 600 40px/1 var(--serif); color: var(--bleu); }
.a16-points strong { display: block; margin: 8px 0 4px; font: 600 1.2rem/1.3 var(--serif); }
.dbt .a16-points__bouton { grid-column: 1 / -1; justify-self: start; align-self: start; margin-top: 6px; }

/* Questions */
.a16-faq__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); }
.a16-faq h2 { margin: 0; font: 600 clamp(1.5rem, 1.2rem + 1vw, 2.05rem)/1.2 var(--serif); }
.a16-faq summary h3 { display: inline; margin: 0; font: inherit; }
.a16-faq .faq details > div a { color: var(--bleu-2); }

/* --- Tablets --- */
@media (max-width: 980px) {
  .a16-signature__grille { grid-template-columns: minmax(0, 1fr); }
  .a16-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .a16-methode { grid-template-columns: minmax(0, 1fr); }
  .a16-inspi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a16-inspi .a16-carte:first-child { grid-row: auto; grid-column: 1 / -1; }
  .a16-inspi .a16-carte:first-child .a16-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .a16-recents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a16-faq__grille { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .a16-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a16-reels { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 6px; }
  .a16-reels li { scroll-snap-align: start; }
  .a16-points { grid-template-columns: minmax(0, 1fr); }
  /* Phones and tablets: the photo as a band above the card, the card overlaps it. */
  .a16-une { display: block; min-height: 0; }
  .a16-une__fond { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; max-height: 380px; }
  .a16-une .a16-env { position: relative; margin-top: -48px; padding: 0 0 22px; }
}

/* --- Phones --- */
@media (max-width: 760px) {
  .a16 .a16-promos__grille { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .a16-g2, .a16-g3, .a16-inspi { grid-template-columns: minmax(0, 1fr); }
  .a16-une__carte { padding: 22px 18px; }
  .a16-une__chapo { font-size: 1rem; }
  .a16-cherche input { padding: 8px; font-size: 16px; }
  .dbt .a16-cherche .dbt-m { padding-left: 0.8rem; }
  .dbt .a16-cherche .dbt-m .cta__texte { padding-right: 0.7rem; }
  .a16-chiffres div { padding: 4px 12px; }
  .a16-chiffres dd { font-size: 28px; }
  .dbt .a16 .a16-ig__tete .a16-ig__suivre { display: none; }
  .a16-marques__grille { flex-direction: column; align-items: flex-start; gap: 10px; }
  .a16-marques p { max-width: none; }
  .a16-marques ul { gap: 6px 20px; }
  .a16-marques li { font-size: 1.15rem; }
  .a16-marques li:nth-child(2n) { font-size: 1rem; }
  .a16-rubrique a { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .a16 *, .a16 *::after { transition: none !important; }
}
