/* ==========================================================================
   Pignon V4 — habillage « contour line »
   Chargé APRÈS styles.css : il ne change que l'apparence, jamais la structure.
   Principe : traits fins (1 px), icônes au trait, presque aucun aplat ni ombre,
   coins discrets, une seule couleur d'accent (terracotta) pour les repères.
   ========================================================================== */
@font-face { font-family: "Inter"; src: url("/polices/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/polices/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/polices/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --fond: #f7f6f3;
  --surface: transparent;
  --bord: #dcd9d2;
  --bord-fort: #1a1b1f;
  --texte: #16171b;
  --texte-doux: #6b6862;
  --accent: #b4532a;
  --accent-fonce: #8f3f1d;
  --accent-clair: transparent;
  --accent-nuit: #e8956d;       /* l'accent, lisible sur fond sombre */
  --nuit: #111216;
  --ligne-nuit: rgba(255, 255, 255, .16);
  --ligne-nuit-forte: rgba(255, 255, 255, .42);
  --succes: #15803d;
  --rayon: 10px;
  --ombre: none;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
}
body { background: var(--fond); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }

/* Icônes au trait */
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }

/* --- Barre du haut ---------------------------------------------------------- */
.barre { border-bottom: 1px solid var(--bord); padding: 14px 40px; }
.marque { font-weight: 600; letter-spacing: -.01em; }
.version { font-variant-numeric: tabular-nums; border: 1px solid var(--bord); border-radius: 99px; padding: 3px 10px; }
main { padding-top: 28px; }

/* --- Boutons : contour fin, rempli seulement au survol ----------------------- */
.btn { border-radius: 8px; font-weight: 500; padding: 11px 20px; gap: 9px; border: 1px solid var(--bord); background: transparent; transition: background .15s, color .15s, border-color .15s; }
.btn:active { transform: none; }
.btn-principal { background: transparent; color: var(--texte); border: 1.5px solid var(--bord-fort); box-shadow: none; }
.btn-principal:hover:not([disabled]) { background: var(--texte); color: var(--fond); }
.btn-secondaire { background: transparent; border-color: var(--bord); }
.btn-secondaire:hover { border-color: var(--bord-fort); }
.btn-grand { font-size: 16px; padding: 14px 26px; }
.btn-blanc { background: transparent; color: var(--texte); border: 1.5px solid var(--bord-fort); }
.btn-blanc:hover:not([disabled]) { background: var(--texte); color: var(--fond); }
.btn-lien { display: inline-flex; align-items: center; gap: 6px; }

/* --- Accueil -------------------------------------------------------------- */
.accueil-hero { background: transparent; border: 1px solid var(--bord); border-radius: 14px; box-shadow: none; }
.accueil-hero h1 { font-weight: 600; letter-spacing: -.035em; }
.titre-section { border-bottom: 1px solid var(--bord); padding-bottom: 12px; }
.titre-section h2 { font-size: 20px; }
.carte-projet { background: transparent; border: 1px solid var(--bord); border-radius: 12px; box-shadow: none; transition: border-color .15s; }
.carte-projet:hover { transform: none; box-shadow: none; border-color: var(--bord-fort); }
.carte-projet h3 { font-size: 16px; font-weight: 600; }

.vignette { border-radius: 8px; box-shadow: none; border: 1px solid var(--bord); }
.eventail .vignette { box-shadow: 0 0 0 1px var(--bord); border: 0; }
.chrome { background: transparent; border-bottom: 1px solid #e4e1db; }
.chrome i { background: transparent; border: 1px solid #c6c2ba; }

/* --- Plein écran (assistant, studio) : nuit, lignes fines -------------------- */
.assistant { background: var(--nuit); }
.assistant-haut { padding: 20px 36px 16px; border-bottom: 1px solid var(--ligne-nuit); }
.assistant-haut .etape-num { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #8f8d97; }
.assistant-haut h1 { font-size: 26px; font-weight: 600; }
.fermer { display: grid; place-items: center; background: transparent; border: 1px solid var(--ligne-nuit-forte); width: 40px; height: 40px; }
.fermer:hover { background: transparent; border-color: #fff; }
.fermer .ico { width: 18px; height: 18px; }
.assistant .btn-principal { color: #fff; border-color: #fff; }
.assistant .btn-principal:hover:not([disabled]) { background: #fff; color: var(--nuit); }
.assistant .btn-secondaire { color: #fff; border-color: var(--ligne-nuit-forte); }

.onglets-types { gap: 8px; }
.onglet-type { border-radius: 10px; border: 1px solid var(--ligne-nuit); background: transparent; }
.onglet-type:hover { background: transparent; border-color: var(--ligne-nuit-forte); }
.onglet-type .icone { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ligne-nuit-forte); border-radius: 8px; font-size: 0; }
.onglet-type .icone .ico { width: 20px; height: 20px; }
.onglet-type b { font-weight: 500; }
.onglet-type[aria-selected="true"] { background: transparent; color: #fff; border-color: #fff; box-shadow: inset 0 0 0 .5px #fff; }
.onglet-type[aria-selected="true"] .icone { border-color: var(--accent-nuit); color: var(--accent-nuit); }

.fenetre { border-radius: 10px; box-shadow: none; border: 1px solid var(--ligne-nuit-forte); }
.fenetre .chrome span { border: 1px solid #e4e1db; display: inline-flex; align-items: center; gap: 6px; }
.fleche { display: grid; place-items: center; background: var(--nuit); color: #fff; border: 1px solid var(--ligne-nuit-forte); box-shadow: none; width: 46px; height: 46px; }
.fleche:hover { border-color: #fff; transform: translateY(-50%); }
.fleche .ico { width: 20px; height: 20px; }

.infos-type .grosse-icone { font-size: 0; color: var(--accent-nuit); }
.infos-type .grosse-icone .ico { width: 44px; height: 44px; stroke-width: 1.2; }
.infos-type h2 { font-weight: 600; }
.infos-type h3 { font-size: 11px; font-weight: 500; border-top: 1px solid var(--ligne-nuit); padding-top: 14px; }
.infos-type li::before { background: transparent; border: 1px solid var(--accent-nuit); color: var(--accent-nuit); font-weight: 400; }
.astuce kbd { background: transparent; border: 1px solid var(--ligne-nuit-forte); }

.nom-corps input { border-radius: 10px; border: 1px solid var(--ligne-nuit-forte); background: transparent; font-weight: 500; }
.nom-corps input:focus { border-color: #fff; }
.nom-corps .vignette { box-shadow: none; border-color: var(--ligne-nuit-forte); }

/* --- Page d'un projet ---------------------------------------------------- */
.projet-tete h1 { font-weight: 600; letter-spacing: -.035em; }
.projet-tete .type { display: inline-flex; align-items: center; gap: 8px; }
.projet-tete .type .ico { color: var(--accent); }
.frise li { font-size: 12px; }
.frise li::before { background: var(--fond); border: 1px solid var(--bord); color: var(--texte-doux); font-weight: 500; width: 28px; height: 28px; z-index: 1; }
.frise li::after { height: 1px; top: 14px; background: var(--bord); }
.frise li.faite::before { background: var(--fond); border-color: var(--bord-fort); color: var(--texte); }
.frise li.faite::after, .frise li.courante::after { background: var(--bord-fort); }
.frise li.courante::before { background: var(--fond); border: 1.5px solid var(--accent); color: var(--accent); box-shadow: none; }

.prochaine-etape { background: transparent; color: var(--texte); border: 1px solid var(--bord-fort); border-radius: 12px; position: relative; padding: 30px 36px; }
.prochaine-etape::before { content: ""; position: absolute; left: -1px; top: 22px; bottom: 22px; width: 3px; background: var(--accent); border-radius: 0 2px 2px 0; }
.prochaine-etape small { color: var(--accent); opacity: 1; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.prochaine-etape h2 { font-weight: 600; }
.prochaine-etape p { opacity: 1; color: var(--texte-doux); }
.prochaine-etape .btn { background: transparent; color: var(--texte); }
.prochaine-etape .btn:hover:not([disabled]) { background: var(--texte); color: var(--fond); }
.prochaine-etape .btn-lien-clair { color: var(--texte-doux); text-decoration: underline; text-underline-offset: 3px; }
.prochaine-etape .btn-lien-clair:hover { color: var(--texte); }
.prochaine-etape-finie { background: transparent; border-color: var(--succes); }
.prochaine-etape-finie::before { background: var(--succes); }
.prochaine-etape-finie small { color: var(--succes); }
.prochaine-etape-finie .btn { color: var(--texte); }

.fiche { background: transparent; border: 1px solid var(--bord); border-radius: 12px; box-shadow: none; }
.fiche h3 { font-size: 16px; font-weight: 600; }
.identite img { background: transparent; border: 1px solid var(--bord); border-radius: 10px; }
.photos-apercu img { border-radius: 6px; }
.couleur i { border-radius: 50%; box-shadow: 0 0 0 1px var(--bord); }

.tuile { background: transparent; border: 1px solid var(--bord); border-radius: 12px; box-shadow: none; transition: border-color .15s; }
.tuile:hover { border-color: var(--bord-fort); transform: none; }
.tuile-depot { border: 1px dashed #b9b5ac; }
.tuile-icone { font-size: 0; color: var(--accent); }
.tuile-icone .ico { width: 30px; height: 30px; stroke-width: 1.3; }
.tuile b { font-size: 17px; font-weight: 600; }

.notice { background: transparent !important; border-radius: 10px; }
.voile-depot { background: rgba(247, 246, 243, .75); }
.voile-depot > div { border: 1.5px dashed var(--accent); box-shadow: none; background: var(--fond); border-radius: 14px; font-size: 0; }
.voile-depot .ico-voile { width: 56px; height: 56px; color: var(--accent); }

.edition-nav a { border-radius: 6px; border-left: 1px solid var(--bord); border-radius: 0; padding: 7px 14px; }
.edition-nav a:hover { background: transparent; border-left-color: var(--accent); color: var(--accent); }
.edition-formulaire .mf-section { background: transparent; border: 1px solid var(--bord); border-radius: 12px; box-shadow: none; }
.edition-barre { background: rgba(247, 246, 243, .94); border-top: 1px solid var(--bord); box-shadow: none; }
.pastille-erreur { background: transparent; color: #c2410c; border: 1px solid #c2410c; font-weight: 600; }

dialog.confirmation { border: 1px solid var(--bord-fort); border-radius: 12px; box-shadow: 0 16px 50px rgba(0, 0, 0, .14); background: var(--fond); }
.dialogue-export input { border-radius: 8px; border: 1px solid var(--bord); background: transparent; }
.dialogue-export input:focus { box-shadow: none; border-color: var(--bord-fort); }

/* --- Studio : choix du design, aperçu, export -------------------------------- */
.pastille-design, .pastille-audacieux, .pastille-doux { background: transparent; border: 1px solid var(--ligne-nuit-forte); border-radius: 8px; color: inherit; }
.onglet-design[aria-selected="true"] .pastille-design { background: transparent; border-color: var(--accent-nuit); color: var(--accent-nuit); }
.echantillon { border: 1px solid rgba(255, 255, 255, .8); }
.roue { border-width: 1.5px; }

.apercu-haut { border-bottom: 1px solid var(--ligne-nuit); padding: 14px 28px; margin-bottom: 12px; }
.appareils { background: transparent; border: 1px solid var(--ligne-nuit); border-radius: 10px; padding: 3px; }
.appareils button { border-radius: 7px; font-weight: 500; padding: 8px 16px; }
.appareils button .ico { width: 17px; height: 17px; }
.appareils button[aria-checked="true"] { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.btn-edition { background: transparent; border: 1px solid var(--ligne-nuit-forte); color: #fff; }
.btn-edition:hover { background: transparent; border-color: #fff; }
.btn-edition-actif { background: transparent; color: var(--accent-nuit); border: 1.5px solid var(--accent-nuit); }
.btn-lien-clair { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.appareil { box-shadow: none; border: 1px solid var(--ligne-nuit-forte); }

.fichier-exporte { background: transparent; border: 1px solid var(--ligne-nuit); border-radius: 10px; }
.fichier-icone { font-size: 0; color: var(--accent-nuit); }
.fichier-icone .ico { width: 30px; height: 30px; stroke-width: 1.3; }
.export-boutons .btn-secondaire { background: transparent; }
.export-suite li::before { background: transparent; border: 1px solid var(--ligne-nuit-forte); font-weight: 500; }

/* Panneau de mise en page */
.panneau-edition { background: transparent; border: 1px solid var(--ligne-nuit); border-radius: 12px; }
.panneau-haut { border-bottom: 1px solid var(--ligne-nuit); padding-bottom: 12px; margin-bottom: 12px; }
.panneau-corps h3 { border-top-color: var(--ligne-nuit); font-weight: 500; }
.panneau-element { background: transparent; border: 1px solid var(--accent-nuit); border-radius: 8px; }
.mini { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 1px solid var(--ligne-nuit); border-radius: 6px; }
.mini .ico { width: 15px; height: 15px; }
.mini:hover:not(:disabled) { background: transparent; border-color: var(--ligne-nuit-forte); }
.mini.est-choisi { background: transparent; border-color: var(--accent-nuit); color: var(--accent-nuit); }
.btn-panneau { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--ligne-nuit); border-radius: 8px; font-weight: 500; }
.btn-panneau:hover { background: transparent; border-color: var(--ligne-nuit-forte); }
.btn-danger { color: #ff9b85; border-color: rgba(255, 155, 133, .4); }
.champ-panneau { background: transparent; border: 1px solid var(--ligne-nuit); border-radius: 6px; }
.champ-panneau:focus { outline: none; border-color: var(--ligne-nuit-forte); }
.reglage-ligne input[type="range"], .interrupteur input { accent-color: var(--accent-nuit); }
.couleur-choix input { border-color: var(--ligne-nuit-forte); }
.forme-choix { background: transparent; border: 1px solid var(--ligne-nuit); border-radius: 8px; }
.forme-choix.est-choisi { background: transparent; border-color: var(--accent-nuit); }
.apercu-forme { background: transparent; border: 1.5px solid var(--accent-nuit); }
.apercu-forme.pe-forme-losange, .apercu-forme.pe-forme-hexagone, .apercu-forme.pe-forme-etoile { border: 0; background: var(--accent-nuit); opacity: .75; }

/* --- Menu « Mon abonnement » ------------------------------------------------ */
.barre-droite { display: flex; align-items: center; gap: 14px; }
.menu-abo { position: relative; font-size: 13px; }
.menu-abo summary { list-style: none; cursor: pointer; padding: 5px 12px; border: 1px solid var(--bord); border-radius: 99px; color: var(--texte); }
.menu-abo summary::-webkit-details-marker { display: none; }
.menu-abo[open] summary, .menu-abo summary:hover { border-color: var(--bord-fort); }
.menu-abo-liste { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 270px; background: #fff; border: 1px solid var(--bord-fort); border-radius: var(--rayon); padding: 6px; }
.menu-abo-liste button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 7px; font: inherit; color: var(--texte); cursor: pointer; }
.menu-abo-liste button:hover { background: #f1efe9; }
.menu-abo-liste small { display: block; color: var(--texte-doux); font-size: 12px; margin-top: 2px; }
.menu-abo-msg { margin: 6px 12px 8px; color: #b42318; font-size: 12px; }


/* ==========================================================================
   0.7 : la « Mise en page » (édition à la souris) mise en avant
   ========================================================================== */
/* Bouton de la barre de l'aperçu : plein, couleur de la marque */
.btn-edition { background: var(--accent); border: 1.5px solid var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(232, 149, 109, .18); font-weight: 600; }
.btn-edition:hover { background: #c75f33; border-color: #c75f33; }
.btn-edition small { font-weight: 400; opacity: .85; font-size: 12px; margin-left: -3px; }
.btn-edition .ico { width: 18px; height: 18px; }
/* Invitation sous la barre de l'aperçu */
.invitation-mep { display: flex; align-items: center; gap: 14px; width: calc(100% - 56px); margin: 0 28px 12px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(232, 149, 109, .45); background: rgba(180, 83, 42, .16); color: #e8e6ee; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.invitation-mep:hover { background: rgba(180, 83, 42, .26); border-color: var(--accent-nuit); }
.invitation-mep b { color: #fff; margin-right: 6px; }
.invitation-mep-icone { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #fff; }
.invitation-mep-icone .ico { width: 18px; height: 18px; }
.invitation-mep > span:nth-child(2) { flex: 1; line-height: 1.45; }
.invitation-mep-cta { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-nuit); font-weight: 600; white-space: nowrap; }
.invitation-mep-cta .ico { width: 15px; height: 15px; }
.apercu-titre { margin-bottom: 8px; }
/* Astuce dans le choix du design */
.astuce-mep { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(232, 149, 109, .45); background: rgba(180, 83, 42, .14); font-size: 13.5px; line-height: 1.45; color: #e8e6ee; }
.astuce-mep .ico { flex: none; width: 20px; height: 20px; color: var(--accent-nuit); margin-top: 1px; }
.astuce-mep b { color: #fff; }
/* Grande tuile sur la page du projet */
.tuile-mep { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 26px; width: 100%; margin: -16px 0 40px; padding: 22px 26px; border-radius: 12px; border: 1.5px solid var(--accent); background: linear-gradient(100deg, #fbf1ea, #fff 70%); font: inherit; color: var(--texte); text-align: left; cursor: pointer; transition: box-shadow .15s; }
.tuile-mep:hover { box-shadow: 0 8px 28px rgba(180, 83, 42, .16); }
.tuile-mep-texte { display: flex; flex-direction: column; gap: 4px; }
.tuile-mep-texte small { color: var(--accent); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.tuile-mep-texte b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.tuile-mep-texte > span { color: var(--texte-doux); font-size: 14.5px; line-height: 1.5; max-width: 640px; }
.tuile-mep .btn-principal { background: var(--accent); color: #fff; border-color: var(--accent); white-space: nowrap; }
.tuile-mep:hover .btn-principal { background: var(--accent-fonce); border-color: var(--accent-fonce); color: #fff; }
.tuile-mep-visuel { position: relative; height: 96px; border-radius: 8px; background: #fff; border: 1px solid var(--bord); overflow: hidden; }
.tuile-mep-visuel i { position: absolute; display: block; }
.tm-bloc { left: 10px; top: 12px; width: 62px; height: 8px; border-radius: 4px; background: #e7e3dc; }
.tm-titre { left: 10px; top: 28px; width: 76px; height: 26px; border-radius: 4px; border: 1.5px dashed var(--accent); background: rgba(180, 83, 42, .08); }
.tm-photo { right: 12px; top: 14px; width: 46px; height: 58px; border-radius: 23px 23px 6px 6px; background: linear-gradient(160deg, #e8b89c, #b4532a); }
.tm-curseur { left: 66px; top: 44px; color: var(--texte); }
.tm-curseur .ico { width: 22px; height: 22px; fill: #fff; stroke-width: 1.6; }
@media (max-width: 900px) { .tuile-mep { grid-template-columns: 1fr; } .tuile-mep-visuel { display: none; } .invitation-mep-cta { display: none; } }

/* Export : rappel des mentions légales à compléter */
.alerte-legal { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; margin: -8px 0 18px; padding: 12px 14px; border-radius: 10px; background: #fff7e0; border: 1px solid #ecd28a; font-size: 13.5px; line-height: 1.45; color: #4a3b12; }
.alerte-legal .btn-lien { padding: 0; margin-top: 4px; color: var(--accent); font-weight: 600; text-decoration: underline; }
