/* etudiant.fr · thème WordPress : styles de mise en page qui sont en attributs style dans les maquettes du DS,
 * intégration WordPress (barre d'admin, vignettes, crédits photo) et quelques compléments documentés.
 * Ne redéfinit aucun jeton ni composant du DS. Chargé après etudiant.css. */

/* ---------- Intégration WordPress ---------- */
html { scroll-padding-top: calc(var(--hauteur-entete) + var(--espace-4)); }
html.et-verrou, html.et-verrou body { overflow: hidden; }
.admin-bar .et-entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .et-entete { top: 46px; } }
@media (max-width: 600px) { .admin-bar .et-entete { top: 0; } }
body { overflow-x: clip; }
img { height: auto; }
.et-article-une img, .et-carte__image { height: auto; }
.et-carte img.et-carte__image { aspect-ratio: 16 / 10; object-fit: cover; }
.et-article-une figcaption a, .et-figure figcaption a { color: inherit; }
.et-visuellement-cache:focus { position: static; }

/* ---------- En-tête : menu mobile (maquette MenuMobile, styles en ligne du DS) ---------- */
.et-menu-mobile__haut { display: flex; justify-content: space-between; align-items: center; }
.et-menu-mobile__logo { font-size: 24px; }
.et-menu-mobile__recherche { margin-top: var(--espace-4); }
.et-menu-mobile__deals { margin-top: var(--espace-6); }
.et-megamenu .et-aide { margin: 0; }
.et-pied__reseau-medias a { text-decoration: underline; text-underline-offset: 3px; }
.et-pied__reseau-medias [aria-current] { color: #f3f0e7; font-weight: 600; }
.et-pied__accroche a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Arc photo (les portraits détourés du DS sont des exemples non licenciés : photo dans une fenêtre en arc) ---------- */
.et-arc__fenetre { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 56%; aspect-ratio: 4 / 5; border-radius: var(--rayon-arc) var(--rayon-arc) 0 0; overflow: hidden; background: var(--papier-releve); border: 6px solid var(--papier-releve); border-bottom: 0; }
.et-arc__fenetre img, .et-arc__fenetre-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.et-hero__visuel .et-arc__fenetre { width: 44%; }

/* ---------- Accueil (styles en ligne de maquettes/accueil.html) ---------- */
.et-accueil-hero { padding-top: var(--espace-8); }
.et-hero__visuel--accueil .et-arc { color: var(--sur-bleu); }
.et-hero__visuel--accueil .et-hero__sticker { right: 4%; top: 32px; }
.et-hero__anneau { right: 6%; top: 18%; }
.et-accueil-une { padding-top: 0; }
.et-carte--une-liste { display: grid; align-content: start; }
.et-section--teinte .et-grille--3 { padding-top: var(--espace-3); }
.et-carte .et-carte__corps--offre { padding-top: var(--espace-6); }
.et-carte .et-carte__action { align-self: flex-start; position: relative; z-index: 2; }
.et-outil--sur-bandeau { background: var(--papier); color: var(--encre); }
.et-recherches { padding-bottom: var(--espace-4); }
.et-recherches .sous-titre { margin-bottom: var(--espace-4); }

/* ---------- Rubrique / blog (styles en ligne de maquettes/logement.html) ---------- */
.et-hero-conteneur { padding-top: var(--espace-8); }
.et-hero__titre--rubrique { font-size: clamp(44px, 5vw, 64px); }
.et-hero__titre--long { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; }
.et-hero__chapo--rubrique { color: var(--encre); }
.et-hero__visuel--rubrique { min-height: 340px; }
.et-hero__sticker--compte { right: 0; top: 40px; }
.et-hero__surtitre + .et-hero__titre { margin-top: calc(-1 * var(--espace-2)); }
.et-onglets-conteneur { padding-top: var(--espace-8); }
.et-liste { padding-top: 40px; }
.et-liste__pagination { margin-top: var(--espace-12); }
.et-guides-essentiels .et-carte--mini:last-child { border-bottom: 0; }
.et-guides-essentiels .et-carte__titre { font-size: 17px; }
.et-cta--aside { padding: var(--espace-6); }
.et-cta--aside .et-cta__texte { font-size: 20px; }
.et-hub-section { padding-top: var(--espace-12); }
.et-hub-section .et-faq { max-width: 880px; }
.et-hub-chiffres { padding-top: var(--espace-8); }

/* ---------- Article (styles en ligne de maquettes/article-guide.html) ---------- */
.et-article-partage { margin-top: var(--espace-6); }
.et-article--corps { margin-top: 40px; max-width: var(--largeur-texte); }
.et-article-fin { margin-top: var(--espace-12); max-width: var(--largeur-texte); display: grid; gap: var(--espace-6); }
.et-article-aside { margin-top: var(--espace-24); }
.et-article-meta__item a { color: inherit; }
/* Sommaire : dans la colonne sur ordinateur, avant le corps sur mobile (règle « avant le premier intertitre ») */
.et-sommaire--mobile { display: none; }
@media (max-width: 1023px) {
  .et-sommaire--mobile:not([hidden]) { display: block; margin-top: var(--espace-8); max-width: var(--largeur-texte); }
  .et-article-aside .et-sommaire { display: none; }
  .et-article-aside { margin-top: var(--espace-8); }
  .et-article-aside:not(:has(> :not(.et-sommaire))) { display: none; }
}
/* Pages simples (maquettes/page.html) */
.et-page { padding-block: var(--espace-12); }
.et-page__titre, .et-page__chapo { margin-top: var(--espace-4); }
.et-page__corps { margin-top: 40px; }
.et-page__corps h2 { scroll-margin-top: calc(var(--hauteur-entete) + var(--espace-4)); }

/* Recherche (maquettes/recherche.html) */
.et-recherche-page { padding-block: var(--espace-12); }
.et-recherche-page__surtitre { margin-top: var(--espace-6); }
.et-recherche-page__titre { font-size: clamp(40px, 5vw, 56px); margin-top: var(--espace-2); overflow-wrap: anywhere; }
.et-recherche-page .et-recherche { max-width: 640px; margin-top: var(--espace-6); }
.et-recherche-page__compte, .et-recherche-page__puces { margin-top: var(--espace-4); }
.et-recherche-page__resultats { display: grid; gap: var(--espace-6); margin-top: var(--espace-8); max-width: 960px; }
.et-recherche-page__vide { margin-top: var(--espace-8); max-width: 640px; }

/* 404 (maquettes/404.html) */
.et-page-404 { padding-block: var(--espace-16); }
@media (min-width: 1024px) { .et-hero--404 { grid-template-columns: 1fr 1fr; } }
.et-hero--404 .et-recherche { width: 100%; }
.et-hero--404 .et-arc { color: var(--sur-menthe); }
.et-hero__anneau-404 { left: -20px; top: 0; }
.et-page-404__rubriques { margin-top: var(--espace-12); }

/* Newsletter (maquette : styles en ligne) */
.et-newsletter__texte { margin: 0; font-size: 17px; line-height: 27px; }
.et-newsletter__aide { color: inherit; margin: 0; }
.et-newsletter__visuel .et-arc { position: absolute; left: 10%; right: 10%; bottom: 0; width: auto; color: var(--sur-corail); }
.et-newsletter__anneau { right: -30px; top: 0; }
.et-formulaire-newsletter { display: flex; gap: var(--espace-2); flex-wrap: wrap; }
.et-formulaire-newsletter .et-input { flex: 1 1 220px; min-width: 0; }

/* ---------- Compléments de contenu (pages importées et articles) ---------- */
.et-cta__corps { display: grid; gap: var(--espace-2); max-width: 48ch; }
.et-cta__detail { margin: 0; font-size: 15px; line-height: 22px; }
.et-article .et-cta a.et-bouton--sur, .et-cta a.et-bouton--sur { color: var(--encre); text-decoration: none; }
.et-encadre .et-bouton { margin-top: var(--espace-4); }
.et-article .et-encadre a.et-bouton--primaire { color: var(--sur-bleu); }
.et-encadre .et-aide, .et-carte-offre .et-aide { font-size: 13px; line-height: 18px; color: var(--encre-douce); }
.et-carte-offre__logo .et-picto { width: 56px; height: 56px; }
.et-carte-offre__rang { margin-bottom: var(--espace-1); }
.et-article .et-carte-offre + .et-carte-offre { margin-top: var(--espace-4); }
.et-article .et-carte-offre a.et-bouton--secondaire { color: var(--encre); }
.et-article li .et-bouton { margin-left: var(--espace-2); vertical-align: middle; }
.et-article li .et-badge { vertical-align: 2px; }
.et-tableau .et-note__etoiles { width: 80px; height: 16px; -webkit-mask-size: 80px 16px; mask-size: 80px 16px; vertical-align: middle; }
.et-articles-lies small { font-family: var(--font-texte); font-size: 13px; font-weight: 500; color: var(--encre-douce); margin-left: var(--espace-1); }
.et-reseau-fin { padding-inline: 0; }
.et-sources { font-size: 15px; line-height: 22px; color: var(--encre-douce); }
.et-sources li + li { margin-top: var(--espace-1); }
.et-sources a { color: var(--encre); }
.et-selection__titre { font-family: var(--font-display); font-size: 22px; line-height: 1.25; font-weight: 700; }
.et-partenaire-hero .et-chiffre__valeur { font-size: clamp(48px, 6vw, 72px); }
.et-liste-deals { display: grid; gap: var(--espace-4); }
.et-liste-deals .et-carte-offre__nom { font-size: 22px; }

/* Notes en étoiles sans style en ligne : <span class="et-note__etoiles" data-note="4.8" …> */
.et-note__etoiles[data-note="0.0"]{--pct:0%} .et-note__etoiles[data-note="0"]{--pct:0%}
.et-note__etoiles[data-note="0.1"]{--pct:2%}
.et-note__etoiles[data-note="0.2"]{--pct:4%}
.et-note__etoiles[data-note="0.3"]{--pct:6%}
.et-note__etoiles[data-note="0.4"]{--pct:8%}
.et-note__etoiles[data-note="0.5"]{--pct:10%}
.et-note__etoiles[data-note="0.6"]{--pct:12%}
.et-note__etoiles[data-note="0.7"]{--pct:14%}
.et-note__etoiles[data-note="0.8"]{--pct:16%}
.et-note__etoiles[data-note="0.9"]{--pct:18%}
.et-note__etoiles[data-note="1.0"]{--pct:20%} .et-note__etoiles[data-note="1"]{--pct:20%}
.et-note__etoiles[data-note="1.1"]{--pct:22%}
.et-note__etoiles[data-note="1.2"]{--pct:24%}
.et-note__etoiles[data-note="1.3"]{--pct:26%}
.et-note__etoiles[data-note="1.4"]{--pct:28%}
.et-note__etoiles[data-note="1.5"]{--pct:30%}
.et-note__etoiles[data-note="1.6"]{--pct:32%}
.et-note__etoiles[data-note="1.7"]{--pct:34%}
.et-note__etoiles[data-note="1.8"]{--pct:36%}
.et-note__etoiles[data-note="1.9"]{--pct:38%}
.et-note__etoiles[data-note="2.0"]{--pct:40%} .et-note__etoiles[data-note="2"]{--pct:40%}
.et-note__etoiles[data-note="2.1"]{--pct:42%}
.et-note__etoiles[data-note="2.2"]{--pct:44%}
.et-note__etoiles[data-note="2.3"]{--pct:46%}
.et-note__etoiles[data-note="2.4"]{--pct:48%}
.et-note__etoiles[data-note="2.5"]{--pct:50%}
.et-note__etoiles[data-note="2.6"]{--pct:52%}
.et-note__etoiles[data-note="2.7"]{--pct:54%}
.et-note__etoiles[data-note="2.8"]{--pct:56%}
.et-note__etoiles[data-note="2.9"]{--pct:58%}
.et-note__etoiles[data-note="3.0"]{--pct:60%} .et-note__etoiles[data-note="3"]{--pct:60%}
.et-note__etoiles[data-note="3.1"]{--pct:62%}
.et-note__etoiles[data-note="3.2"]{--pct:64%}
.et-note__etoiles[data-note="3.3"]{--pct:66%}
.et-note__etoiles[data-note="3.4"]{--pct:68%}
.et-note__etoiles[data-note="3.5"]{--pct:70%}
.et-note__etoiles[data-note="3.6"]{--pct:72%}
.et-note__etoiles[data-note="3.7"]{--pct:74%}
.et-note__etoiles[data-note="3.8"]{--pct:76%}
.et-note__etoiles[data-note="3.9"]{--pct:78%}
.et-note__etoiles[data-note="4.0"]{--pct:80%} .et-note__etoiles[data-note="4"]{--pct:80%}
.et-note__etoiles[data-note="4.1"]{--pct:82%}
.et-note__etoiles[data-note="4.2"]{--pct:84%}
.et-note__etoiles[data-note="4.3"]{--pct:86%}
.et-note__etoiles[data-note="4.4"]{--pct:88%}
.et-note__etoiles[data-note="4.5"]{--pct:90%}
.et-note__etoiles[data-note="4.6"]{--pct:92%}
.et-note__etoiles[data-note="4.7"]{--pct:94%}
.et-note__etoiles[data-note="4.8"]{--pct:96%}
.et-note__etoiles[data-note="4.9"]{--pct:98%}
.et-note__etoiles[data-note="5.0"]{--pct:100%} .et-note__etoiles[data-note="5"]{--pct:100%}

/* ---------- Accueil : compléments ---------- */
.et-hero__titre-sous { display: block; margin-top: var(--espace-4); font-family: var(--font-texte); font-size: 15px; line-height: 22px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--encre-douce); }
.et-hero__visuel--accueil .et-hero__sticker { left: 0; right: auto; top: 60px; }
.et-hero__visuel--accueil .et-hero__anneau { left: -16px; right: auto; top: 0; }
.et-hero__encart .et-aide { margin: 0; }
.et-bandeau__outils { display: grid; gap: var(--espace-3); width: min(100%, 520px); }

/* ---------- Contact ---------- */
.et-contact__grille { margin-top: 40px; }
.et-contact__carte .et-carte__titre { font-size: 22px; }
.et-contact__carte .et-bouton, .et-contact__carte .et-lien-fleche { align-self: flex-start; }
.et-contact__univers .et-encadre__titre::before { display: none; }
.et-contact__univers a { color: var(--encre); }
.et-contact__fondateurs .et-grille { align-items: stretch; }
.et-contact__fondateur { grid-template-columns: 64px 1fr; }
.et-contact__fondateur .et-auteur__photo { width: 64px; height: 64px; }
.et-contact__liens a { color: var(--bleu); }
.et-contact .et-section { padding-bottom: 0; }

/* Grilles : les colonnes « fr » ne doivent pas s'élargir à la taille intrinsèque des photos */
.et-grille--une { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 1023px) { .et-grille--une { grid-template-columns: minmax(0, 1fr); } }
.et-carte__image, .et-article-une img { max-width: 100%; }
.et-articles-lies li { font-size: 15px; line-height: 22px; color: var(--encre-douce); }
.et-articles-lies__detail { display: block; padding-left: calc(1em + var(--espace-2)); }

/* Listes à coches : rendu identique au DS, mais robuste au texte mis en forme (gras, liens) dans un élément */
.et-checklist li { display: block; position: relative; padding-left: calc(24px + var(--espace-3)); }
.et-checklist li::before { position: absolute; left: 0; top: 2px; }
.et-carte-offre__points li { display: block; position: relative; padding-left: calc(18px + var(--espace-2)); }
.et-carte-offre__points li::before { position: absolute; left: 0; top: 2px; margin-top: 0; }

/* Blog (page transverse, sans rubrique) : teinte et arc bleus comme les pages transverses du DS */
.et-hero--rubrique:not([class*="et-r-"]) { background: var(--bleu-teinte); }
.et-hero--rubrique:not([class*="et-r-"]) .et-arc { background: var(--bleu); }
/* « Les plus lus » : cartes mini dans un encadré Sommaire, sans le compteur du sommaire (défaut de la maquette logement) */
.et-guides-essentiels .et-carte__titre a { display: inline; padding: 0; border-radius: 0; font-size: inherit; line-height: inherit; }
.et-guides-essentiels .et-carte__titre a::before { content: none; }
.et-guides-essentiels .et-carte__titre a:hover { background: none; }
.et-contact__fondateur > div:first-child { grid-column: 1 / -1; }
.et-carte-offre__logo { overflow: hidden; overflow-wrap: anywhere; text-align: center; line-height: 1.1; }
@media (max-width: 767px) { .et-carte-offre__logo { font-size: 10px; overflow-wrap: normal; } }
.et-etapes > li > .et-etapes__texte:first-child { margin-top: 0; padding-top: 10px; }
.et-article .et-carte-offre__nom { margin-top: 0; }
.et-hero__visuel--accueil .et-arc__fenetre { left: 60%; }
@media (max-width: 1023px) { .et-hero__visuel--accueil .et-arc__fenetre { left: 50%; } }

/* ---------- Ajouts de l'agent éditorial (mfr-agent) dans les contenus existants ---------- */
p.mfr-lire-aussi { padding: var(--espace-4) var(--espace-6); border-radius: var(--rayon-grand); background: var(--r-teinte, var(--bleu-teinte)); font-family: var(--font-display); font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--encre); }
p.mfr-lire-aussi a { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
p.mfr-photo-credit { font-size: 13px; line-height: 18px; color: var(--encre-douce); }
p.mfr-photo-credit small { font-size: inherit; }
p.mfr-photo-credit a { color: inherit; }
/* ajoutés en fin de page importée (hors des conteneurs du gabarit) : mêmes marges que le texte */
main > .et-articles-lies, main > p.mfr-lire-aussi, main > p.mfr-photo-credit, main > p:not([class]) { width: min(var(--largeur-texte), calc(100% - 2 * var(--marge-page))); margin: var(--espace-8) auto; }
