/* =========================================================================
   AAZ Meeting — feuille de style
   Palette : bleu nuit (barre laterale, salle), bleu AAZ (actions), fond clair.
   ========================================================================= */

:root {
    /* Charte du cabinet AAZ : marine #1F3357, rouge #C74646, Poppins */
    --marine: #1F3357;
    --rouge-aaz: #C74646;
    --rouge-aaz-clair: #E36B6B;
    --nuit: #1F3357;
    --nuit-2: #263d66;
    --nuit-3: #2f4a7a;
    --bleu: #1F3357;
    --bleu-fonce: #172743;
    --bleu-clair: #e9eef7;
    --bleu-texte: #1F3357;
    --vert: #16a34a;
    --vert-clair: #e6f7ec;
    --orange: #f59e0b;
    --orange-clair: #fef3e2;
    --violet: #7c3aed;
    --violet-clair: #f1ebff;
    --rouge: #C74646;
    --rouge-clair: #f9e6e6;
    --texte: #0f172a;
    --texte-2: #475569;
    --texte-3: #94a3b8;
    --fond: #f3f6fb;
    --carte: #ffffff;
    --bordure: #e5e9f2;
    --rayon: 14px;
    --ombre: 0 1px 2px rgb(15 23 42 / .04), 0 8px 24px -12px rgb(15 23 42 / .12);
    --police: "Poppins", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--police);
    font-size: 14.5px;
    line-height: 1.5;
    background: var(--fond);
    color: var(--texte);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
.icone { flex: none; }

/* -- Boutons --------------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .6rem 1rem; border-radius: 10px; border: 1px solid transparent;
    font-size: .9rem; font-weight: 600; line-height: 1.2; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .05s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primaire { background: var(--bleu); color: #fff; }
.btn-primaire:hover { background: var(--bleu-fonce); }
.btn-secondaire { background: #fff; color: var(--texte); border-color: var(--bordure); }
.btn-secondaire:hover { border-color: #c9d2e3; background: #fafbfe; }
.btn-doux { background: var(--bleu-clair); color: var(--bleu-texte); }
.btn-doux:hover { background: #dbe6ff; }
.btn-danger { background: var(--rouge); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-lien { background: none; color: var(--bleu-texte); padding: .3rem .4rem; }
.btn-sm { padding: .45rem .8rem; font-size: .82rem; border-radius: 8px; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; border-radius: 12px; }
.btn-bloc { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* -- Badges ---------------------------------------------------------------- */

.badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .2rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 600;
}
.badge-bleu { background: var(--bleu-clair); color: var(--bleu-texte); }
.badge-vert { background: var(--vert-clair); color: var(--vert); }
.badge-orange { background: var(--orange-clair); color: #b45309; }
.badge-violet { background: var(--violet-clair); color: var(--violet); }
.badge-gris { background: #eef2f7; color: var(--texte-2); }
.badge-rouge { background: var(--rouge-clair); color: var(--rouge); }
.badge .point { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* -- Cartes ---------------------------------------------------------------- */

.carte {
    background: var(--carte); border: 1px solid var(--bordure);
    border-radius: var(--rayon); box-shadow: var(--ombre);
}
.carte-entete {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--bordure);
}
.carte-entete h2 { font-size: 1rem; font-weight: 700; }
.carte-corps { padding: 1.25rem; }

/* -- Formulaires ----------------------------------------------------------- */

.champ { margin-bottom: 1.1rem; }
.champ > label, .etiquette { display: block; font-size: .82rem; font-weight: 600; color: var(--texte); margin-bottom: .4rem; }
.champ .aide { display: block; font-size: .78rem; color: var(--texte-3); margin-top: .35rem; }
.champ .requis { color: var(--rouge); }
.saisie, .champ input[type="text"], .champ input[type="email"], .champ input[type="password"],
.champ input[type="datetime-local"], .champ input[type="date"], .champ input[type="time"],
.champ input[type="number"], .champ select, .champ textarea {
    width: 100%; padding: .65rem .85rem; border: 1px solid var(--bordure); border-radius: 10px;
    font: inherit; font-size: .92rem; background: #fff; color: var(--texte);
    transition: border-color .15s, box-shadow .15s;
}
.champ input:focus, .champ select:focus, .champ textarea:focus, .saisie:focus {
    outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgb(29 94 242 / .15);
}
.champ textarea { min-height: 96px; resize: vertical; }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.case {
    display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem;
    border: 1px solid var(--bordure); border-radius: 10px; font-size: .88rem; color: var(--texte-2);
    cursor: pointer; background: #fff;
}
.case input { accent-color: var(--bleu); width: 16px; height: 16px; }
.erreur { color: var(--rouge); font-size: .8rem; margin-top: .35rem; }

.choix-type { display: flex; gap: .6rem; flex-wrap: wrap; }
.choix-type label {
    display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem;
    border: 1px solid var(--bordure); border-radius: 999px; font-size: .85rem; cursor: pointer;
    color: var(--texte-2); background: #fff;
}
.choix-type input { accent-color: var(--bleu); }
.choix-type label:has(input:checked) { border-color: var(--bleu); color: var(--bleu-texte); background: var(--bleu-clair); }

.puces { display: flex; flex-direction: column; gap: .5rem; }
.puce-participant {
    display: flex; align-items: center; gap: .7rem; padding: .5rem .7rem;
    border: 1px solid var(--bordure); border-radius: 10px; background: #fafbfe; font-size: .88rem;
}
.puce-participant .avatar { width: 28px; height: 28px; font-size: .7rem; }
.puce-participant span { flex: 1; }
.puce-participant button { background: none; border: 0; color: var(--texte-3); cursor: pointer; display: flex; }
.puce-participant button:hover { color: var(--rouge); }

.alerte { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: 10px; font-size: .88rem; margin-bottom: 1.25rem; }
.alerte-succes { background: var(--vert-clair); color: #15803d; }
.alerte-avertissement { background: var(--orange-clair); color: #b45309; }

/* -- Avatars --------------------------------------------------------------- */

.avatar {
    width: 36px; height: 36px; border-radius: 999px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--marine); color: #fff;
    font-weight: 700; font-size: .8rem; letter-spacing: .02em;
}
.avatar-sm { width: 28px; height: 28px; font-size: .68rem; }
.avatar-gris { background: #e2e8f0; color: var(--texte-2); }

/* =========================================================================
   Shell application : barre laterale + barre superieure
   ========================================================================= */

.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }

.laterale {
    background: var(--nuit); color: #c7d2ee; display: flex; flex-direction: column;
    padding: 1.1rem .9rem; position: sticky; top: 0; height: 100vh;
}
.marque { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.15rem; padding: .3rem .5rem 1.2rem; letter-spacing: -.02em; }
.logo-aaz { display: inline-flex; align-items: center; gap: .7rem; }
.logo-aaz-texte { display: flex; flex-direction: column; line-height: 1; }
.logo-aaz-texte small { font-size: .6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .28em; color: var(--texte-3); }
.logo-aaz-texte strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; margin-top: .25rem; color: var(--marine); }
.logo-aaz-texte em { font-style: normal; font-size: .62rem; letter-spacing: .18em; color: var(--texte-3); margin-top: .35rem; font-weight: 500; }
.logo-aaz-clair .logo-aaz-texte small, .logo-aaz-clair .logo-aaz-texte em { color: rgb(255 255 255 / .7); }
.logo-aaz-clair .logo-aaz-texte strong { color: #fff; }

.nav { display: flex; flex-direction: column; gap: .2rem; }
.nav a {
    display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border-radius: 10px;
    font-size: .9rem; font-weight: 500; color: #b4c0e3; transition: background .15s, color .15s;
}
.nav a:hover { background: rgb(255 255 255 / .06); color: #fff; }
.nav a.actif { background: rgb(255 255 255 / .12); color: #fff; box-shadow: inset 3px 0 0 var(--rouge-aaz); }
.nav a .icone { opacity: .9; }
.nav .section { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #5f6f9b; padding: 1rem .8rem .35rem; font-weight: 700; }

.laterale-pied { margin-top: auto; }
.carte-central {
    display: flex; align-items: center; gap: .7rem; padding: .8rem; border-radius: 12px;
    background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); color: #fff;
}
.carte-central .logo { width: 34px; height: 34px; border-radius: 9px; background: rgb(255 255 255 / .1); display: grid; place-items: center; }
.carte-central strong { display: block; font-size: .85rem; }
.carte-central span { font-size: .72rem; color: #9fb1dc; }

.principal { display: flex; flex-direction: column; min-width: 0; }

.barre-haute {
    display: flex; align-items: center; gap: 1rem; padding: .85rem 1.75rem;
    background: #fff; border-bottom: 1px solid var(--bordure); position: sticky; top: 0; z-index: 10;
}
.recherche {
    flex: 1; max-width: 460px; display: flex; align-items: center; gap: .6rem;
    padding: .55rem .9rem; border: 1px solid var(--bordure); border-radius: 10px; background: #f8fafc; color: var(--texte-3);
}
.recherche input { border: 0; background: none; outline: none; flex: 1; font: inherit; font-size: .88rem; color: var(--texte); }
.barre-haute-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.btn-rond {
    width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--bordure); background: #fff;
    display: grid; place-items: center; color: var(--texte-2); cursor: pointer; position: relative;
}
.btn-rond:hover { background: #f8fafc; }
.btn-rond .pastille { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 999px; background: var(--rouge); border: 2px solid #fff; }
.profil { display: flex; align-items: center; gap: .7rem; padding-left: .6rem; border-left: 1px solid var(--bordure); }
.profil .nom { font-size: .86rem; font-weight: 600; line-height: 1.2; }
.profil .role { font-size: .72rem; color: var(--texte-3); }
.profil form button { background: none; border: 0; color: var(--texte-3); cursor: pointer; display: flex; padding: .3rem; border-radius: 6px; }
.profil form button:hover { color: var(--rouge); background: var(--rouge-clair); }

.contenu { padding: 1.75rem; max-width: 1240px; width: 100%; margin: 0 auto; }
.contenu-etroit { max-width: 820px; }

.entete-page { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.entete-page h1 { font-size: 1.5rem; font-weight: 800; }
.entete-page .sous { color: var(--texte-2); margin-top: .25rem; font-size: .92rem; }
.entete-page .actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.fil { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--texte-3); margin-bottom: .6rem; }

/* -- Tableau de bord ------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.stat .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.stat .libelle { font-size: .8rem; color: var(--texte-2); font-weight: 500; }
.stat .valeur { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat .tendance { font-size: .76rem; color: var(--texte-3); }
.stat .tendance.vert { color: var(--vert); }
.ico-bleu { background: var(--bleu-clair); color: var(--bleu); }
.ico-vert { background: var(--vert-clair); color: var(--vert); }
.ico-violet { background: var(--violet-clair); color: var(--violet); }
.ico-orange { background: var(--orange-clair); color: var(--orange); }

.deux-colonnes { display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem; align-items: start; }

.liste-reunions { display: flex; flex-direction: column; }
.ligne-reunion {
    display: grid; grid-template-columns: 92px 1fr auto auto; gap: 1rem; align-items: center;
    padding: .9rem 1.25rem; border-bottom: 1px solid var(--bordure);
}
.ligne-reunion:last-child { border-bottom: 0; }
.ligne-reunion .heure { font-weight: 700; font-size: .9rem; }
.ligne-reunion .heure small { display: block; font-weight: 500; color: var(--texte-3); font-size: .74rem; }
.ligne-reunion .titre { font-weight: 600; }
.ligne-reunion .meta { display: flex; align-items: center; gap: .5rem; color: var(--texte-3); font-size: .78rem; margin-top: .15rem; flex-wrap: wrap; }
.ligne-reunion .meta .sep { width: 3px; height: 3px; border-radius: 999px; background: var(--texte-3); }
.ligne-reunion .actions { display: flex; gap: .4rem; }

/* Reunion imminente ou en cours : on la distingue au premier coup d'oeil. */
.ligne-reunion.imminente { background: linear-gradient(90deg, rgb(234 88 12 / .05), transparent 45%); box-shadow: inset 3px 0 0 var(--orange, #ea580c); }
.ligne-reunion .en-attente { color: #b45309; font-weight: 600; }

/* Invitations recues : l'hote prend la place de l'heure, avec ses initiales. */
.ligne-invitation { grid-template-columns: 44px 1fr auto auto; }
.ligne-invitation .pastille-hote {
    width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
    background: var(--bleu-clair, #e0edff); color: var(--bleu-texte, #1d4ed8);
    font-weight: 700; font-size: .84rem; letter-spacing: .02em;
}
.carte-invitations { margin-bottom: 1.25rem; padding: 1.25rem 0 0; }
.carte-invitations .carte-entete, .carte-invitations > .sous { padding-left: 1.25rem; padding-right: 1.25rem; }
.carte-invitations .carte-entete h2 { display: inline-flex; align-items: center; gap: .45rem; }

/* Pastille de comptage sur l'onglet « Invitations recues ». */
.pastille-onglet {
    display: inline-block; margin-left: .35rem; padding: 0 .4rem; border-radius: 999px;
    background: var(--rouge-aaz, #b91c1c); color: #fff; font-size: .68rem; font-weight: 700; line-height: 1.5;
}

/* Retour visuel du bouton « Copier le lien ». */
.copier-lien.copie { background: var(--vert-clair, #dcfce7); color: #15803d; border-color: #86efac; }

.acces-rapide { display: flex; flex-direction: column; }
.acces-rapide a {
    display: flex; align-items: center; gap: .8rem; padding: .8rem 1.25rem;
    border-bottom: 1px solid var(--bordure); font-size: .9rem; font-weight: 500; color: var(--texte);
}
.acces-rapide a:last-child { border-bottom: 0; }
.acces-rapide a:hover { background: #fafbfe; }
.acces-rapide .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--bleu-clair); color: var(--bleu); }
.acces-rapide .fleche { margin-left: auto; color: var(--texte-3); }

.bandeau-central {
    margin-top: 1.25rem; padding: 1.25rem; border-radius: var(--rayon); color: #fff;
    background: linear-gradient(135deg, var(--nuit-3), var(--nuit)); display: flex; align-items: center; gap: 1rem;
}
.bandeau-central strong { display: block; font-size: 1rem; }
.bandeau-central p { color: #a9b8e0; font-size: .82rem; margin-top: .15rem; }

.etat-vide { text-align: center; padding: 2.5rem 1.5rem; color: var(--texte-2); }
.etat-vide .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--bleu-clair); color: var(--bleu); display: grid; place-items: center; margin: 0 auto .9rem; }
.etat-vide h3 { font-size: 1rem; margin-bottom: .3rem; color: var(--texte); }
.etat-vide p { font-size: .88rem; }

.onglets { display: flex; gap: .25rem; border-bottom: 1px solid var(--bordure); margin-bottom: 1.25rem; }
.onglets a, .onglets button {
    padding: .7rem 1rem; font-size: .9rem; font-weight: 600; color: var(--texte-2); border: 0; background: none; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: inherit;
}
.onglets a.actif, .onglets button.actif { color: var(--bleu-texte); border-color: var(--bleu); }

.tableau { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tableau th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); padding: .75rem 1.25rem; border-bottom: 1px solid var(--bordure); font-weight: 700; }
.tableau td { padding: .85rem 1.25rem; border-bottom: 1px solid var(--bordure); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau tr:hover td { background: #fafbfe; }

/* -- Confirmation ---------------------------------------------------------- */

.confirmation { text-align: center; padding: 2.5rem 2rem 1.5rem; }
.confirmation .coche { width: 64px; height: 64px; border-radius: 999px; background: var(--vert-clair); color: var(--vert); display: grid; place-items: center; margin: 0 auto 1rem; }
.confirmation h1 { font-size: 1.4rem; font-weight: 800; }
.confirmation p { color: var(--texte-2); margin-top: .3rem; }
.boite-lien { display: flex; gap: .6rem; align-items: center; margin-top: .5rem; }
.boite-lien .saisie { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; background: #f8fafc; color: var(--texte-2); }
.detail-liste { display: grid; gap: .8rem; }
.detail-liste .ligne { display: flex; align-items: center; gap: .8rem; font-size: .9rem; }
.detail-liste .ligne .icone { color: var(--texte-3); }

/* -- Compte rendu ---------------------------------------------------------- */

.meta-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.meta-grille .cle { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); font-weight: 700; }
.meta-grille .val { font-weight: 600; margin-top: .2rem; }
.actions-liste { display: flex; flex-direction: column; gap: .6rem; }
.action-ligne { display: flex; align-items: flex-start; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--bordure); border-radius: 10px; background: #fff; }
.action-ligne.fait { opacity: .6; }
.action-ligne.fait .titre { text-decoration: line-through; }
.action-ligne form { display: flex; }
.action-ligne button.cocher { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #cbd5e1; background: #fff; cursor: pointer; display: grid; place-items: center; color: #fff; }
.action-ligne.fait button.cocher { background: var(--vert); border-color: var(--vert); }
.action-ligne .titre { font-weight: 600; }
.action-ligne .sous { font-size: .78rem; color: var(--texte-3); margin-top: .15rem; }
.transcription-ligne { display: flex; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--bordure); font-size: .9rem; }
.transcription-ligne:last-child { border-bottom: 0; }
.transcription-ligne .heure { color: var(--texte-3); font-size: .78rem; width: 44px; flex: none; padding-top: .15rem; }
.transcription-ligne strong { display: block; font-size: .8rem; color: var(--texte-2); }

.note-info { display: flex; gap: .7rem; padding: .9rem 1rem; background: var(--bleu-clair); color: var(--bleu-texte); border-radius: 10px; font-size: .86rem; }
.note-info .icone { flex: none; margin-top: .1rem; }

/* -- Module en preparation ------------------------------------------------- */

.module-vide { max-width: 560px; margin: 3rem auto; text-align: center; padding: 2.5rem; }
.module-vide .ico { width: 64px; height: 64px; border-radius: 18px; background: var(--bleu-clair); color: var(--bleu); display: grid; place-items: center; margin: 0 auto 1rem; }
.module-vide h1 { font-size: 1.3rem; font-weight: 800; }
.module-vide p { color: var(--texte-2); margin-top: .5rem; }

/* =========================================================================
   Site public
   ========================================================================= */

.site-entete { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2.5rem; background: var(--nuit); }
.site-entete .marque { padding: 0; }
.site-entete nav { display: flex; gap: .6rem; }
.btn-contour-clair { background: transparent; color: #fff; border-color: rgb(255 255 255 / .25); }
.btn-contour-clair:hover { background: rgb(255 255 255 / .08); }

.heros { background: radial-gradient(ellipse at 15% 0%, #2f4a7a 0%, var(--marine) 55%); color: #fff; padding: 4.5rem 2.5rem 5rem; }
.heros-int { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.heros h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.1; }
.heros h1 span { color: var(--rouge-aaz-clair); }
.heros .devise { color: #9fb1dc; font-weight: 600; margin: 1rem 0 1.25rem; letter-spacing: .02em; }
.heros .devise i { font-style: normal; margin: 0 .5rem; color: #4f6db3; }
.heros .texte { color: #c7d2ee; font-size: 1.05rem; line-height: 1.65; max-width: 540px; }
.heros .actions { display: flex; gap: .8rem; margin-top: 1.75rem; flex-wrap: wrap; }
.heros .gages { display: flex; gap: 1.5rem; margin-top: 2.25rem; flex-wrap: wrap; }
.heros .gage { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: #c7d2ee; }
.heros .gage .icone { color: var(--rouge-aaz-clair); }
.apercu-photo { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6); border: 1px solid rgb(255 255 255 / .12); }
.apercu-photo img { display: block; width: 100%; height: 440px; object-fit: cover; }
.apercu-flottant { position: absolute; left: 1.1rem; bottom: 1.1rem; display: inline-flex; align-items: center; gap: .5rem; background: rgb(255 255 255 / .96); color: var(--texte); padding: .6rem 1rem; border-radius: 10px; font-size: .82rem; font-weight: 600; box-shadow: var(--ombre); }
.point-direct { width: 8px; height: 8px; border-radius: 999px; background: var(--rouge-aaz); box-shadow: 0 0 0 3px rgb(199 70 70 / .25); }

.fonctions { max-width: 1140px; margin: -2.5rem auto 4rem; padding: 0 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.fonction { padding: 1.5rem; }
.fonction .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem; }
.fonction h3 { font-size: 1rem; margin-bottom: .35rem; }
.fonction p { color: var(--texte-2); font-size: .9rem; }

.etapes { max-width: 1140px; margin: 0 auto 5rem; padding: 2.5rem; border-radius: 20px; background: var(--nuit); color: #fff; }
.etapes h2 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.etapes ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.etapes li { display: flex; flex-direction: column; gap: .5rem; }
.etapes .num { width: 32px; height: 32px; border-radius: 999px; background: var(--rouge-aaz); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.etapes strong { font-size: .92rem; }
.etapes span { font-size: .8rem; color: #9fb1dc; }

.page-auth { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 2rem 1.25rem; }
.carte-auth { width: 100%; max-width: 440px; padding: 2rem; }
.carte-auth h1 { font-size: 1.35rem; font-weight: 800; }
.carte-auth .sous { color: var(--texte-2); margin: .3rem 0 1.5rem; font-size: .92rem; }
.pied-auth { text-align: center; font-size: .86rem; color: var(--texte-2); margin-top: 1.25rem; }
.pied-auth a { color: var(--bleu-texte); font-weight: 600; }

/* =========================================================================
   Salle de reunion
   ========================================================================= */

.salle { display: grid; grid-template-columns: 1fr 340px 62px; height: 100vh; background: #14233d; color: #fff; overflow: hidden; transition: grid-template-columns .18s ease; }
.salle:has(.salle-panneau:not(.ouvert)) { grid-template-columns: 1fr 0 62px; }
.salle-principale { display: flex; flex-direction: column; min-width: 0; }

.salle-entete { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.25rem; border-bottom: 1px solid rgb(255 255 255 / .06); }
.salle-entete .marque { padding: 0; font-size: 1rem; }
.salle-entete .marque .logo { width: 28px; height: 28px; }
.salle-entete .titre { font-weight: 600; font-size: .95rem; padding-left: 1rem; border-left: 1px solid rgb(255 255 255 / .12); }
.salle-entete .droite { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.minuteur { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 8px; background: rgb(255 255 255 / .06); font-variant-numeric: tabular-nums; font-size: .85rem; color: #c7d2ee; }
.minuteur .point { width: 8px; height: 8px; border-radius: 999px; background: var(--rouge); box-shadow: 0 0 0 3px rgb(220 38 38 / .25); }
.btn-salle { background: rgb(255 255 255 / .08); color: #fff; border-color: transparent; }
.btn-salle:hover { background: rgb(255 255 255 / .14); }

.salle-grille {
    flex: 1; display: grid; gap: .75rem; padding: 1rem 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); grid-auto-rows: minmax(180px, 1fr); align-content: center; overflow: auto;
}
.salle-grille.solo { grid-template-columns: minmax(0, 900px); justify-content: center; }
.salle-grille.avec-vedette { grid-template-columns: 1fr; grid-auto-rows: auto; align-content: start; }
.salle-grille.avec-vedette .tuile:not(.en-vedette) { display: none; }
.rangee-miniatures { display: flex; gap: .6rem; padding: 0 1.25rem .5rem; overflow-x: auto; }
.rangee-miniatures .tuile { width: 180px; min-height: 100px; flex: none; }

.tuile { position: relative; background: #24395f; border-radius: 14px; overflow: hidden; display: grid; place-items: center; min-height: 160px; border: 2px solid transparent; transition: border-color .2s; }
.tuile.parle { border-color: var(--rouge-aaz-clair); }
.tuile.en-vedette { min-height: 55vh; }
.tuile .media { position: absolute; inset: 0; display: grid; place-items: center; }
.tuile video { width: 100%; height: 100%; object-fit: cover; }
.tuile.en-vedette video, .tuile.partage video { object-fit: contain; background: #000; }
.tuile .initiales { width: 72px; height: 72px; border-radius: 999px; background: var(--marine); border: 2px solid rgb(255 255 255 / .18); display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; }
.tuile .plaque {
    position: absolute; left: .7rem; bottom: .7rem; display: inline-flex; align-items: center; gap: .45rem;
    padding: .3rem .65rem; border-radius: 8px; background: rgb(0 0 0 / .55); backdrop-filter: blur(6px); font-size: .8rem; font-weight: 500;
}
.tuile .plaque .icone { width: 14px; height: 14px; color: #c7d2ee; }
.tuile .plaque .coupe { color: #f87171; }
.tuile .main-levee { position: absolute; top: .7rem; right: .7rem; width: 32px; height: 32px; border-radius: 999px; background: var(--orange); display: grid; place-items: center; color: #fff; }
.tuile .role { position: absolute; top: .7rem; left: .7rem; padding: .2rem .55rem; border-radius: 6px; background: var(--rouge-aaz); font-size: .7rem; font-weight: 700; }

.salle-avis { grid-column: 1 / -1; text-align: center; color: #9fb1dc; padding: 3rem 1rem; }
.salle-avis .spinner { width: 34px; height: 34px; border-radius: 999px; border: 3px solid rgb(255 255 255 / .12); border-top-color: var(--bleu); margin: 0 auto 1rem; animation: tourner .8s linear infinite; }
@keyframes tourner { to { transform: rotate(360deg); } }

.barre-controles { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem 1.25rem 1.25rem; border-top: 1px solid rgb(255 255 255 / .06); }
.controle { display: flex; flex-direction: column; align-items: center; gap: .35rem; background: none; border: 0; color: #c7d2ee; cursor: pointer; padding: 0 .4rem; font-size: .7rem; font-weight: 500; }
.controle .rond { width: 50px; height: 50px; border-radius: 999px; background: rgb(255 255 255 / .09); display: grid; place-items: center; color: #fff; transition: background .15s; }
.controle:hover .rond { background: rgb(255 255 255 / .16); }
.controle.eteint .rond { background: var(--rouge); }
.controle.actif .rond { background: rgb(255 255 255 / .18); }
.controle.danger .rond { background: var(--rouge); width: 64px; border-radius: 26px; }
.controle .compteur { position: absolute; top: -4px; right: -2px; background: var(--bleu); color: #fff; font-size: .62rem; padding: .1rem .35rem; border-radius: 999px; font-weight: 700; }
.controle .rond-wrap { position: relative; }
.separateur-v { width: 1px; height: 36px; background: rgb(255 255 255 / .1); margin: 0 .4rem; }

.menu-plus { position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%); background: #1F3357; border: 1px solid rgb(255 255 255 / .1); border-radius: 12px; padding: .4rem; min-width: 220px; box-shadow: 0 20px 40px -10px rgb(0 0 0 / .6); z-index: 30; }
.menu-plus button, .menu-plus a { display: flex; align-items: center; gap: .6rem; width: 100%; background: none; border: 0; color: #fff; padding: .6rem .8rem; border-radius: 8px; cursor: pointer; font-size: .86rem; text-align: left; font-family: inherit; }
.menu-plus button:hover, .menu-plus a:hover { background: rgb(255 255 255 / .08); }
.menu-plus .danger { color: #f87171; }
.menu-plus[hidden] { display: none; }

.salle-panneau { background: #1a2d4f; border-left: 1px solid rgb(255 255 255 / .06); display: flex; flex-direction: column; min-height: 0; }
.panneau-onglets { display: flex; padding: .6rem .6rem 0; gap: .25rem; border-bottom: 1px solid rgb(255 255 255 / .06); }
.panneau-onglets button { flex: 1; background: none; border: 0; color: #9fb1dc; padding: .7rem .5rem; font-size: .84rem; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-family: inherit; }
.panneau-onglets button.actif { color: #fff; border-color: var(--rouge-aaz-clair); }
.panneau-onglets .nb { background: rgb(255 255 255 / .1); border-radius: 999px; padding: 0 .4rem; font-size: .7rem; }
.panneau-corps { flex: 1; overflow-y: auto; padding: .9rem; min-height: 0; }
.panneau-titre { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #6f82b8; font-weight: 700; margin: .2rem 0 .6rem; }

.participant-ligne { display: flex; align-items: center; gap: .7rem; padding: .55rem .5rem; border-radius: 10px; }
.participant-ligne:hover { background: rgb(255 255 255 / .04); }
.participant-ligne .nom { font-size: .88rem; font-weight: 500; }
.participant-ligne .sous { font-size: .72rem; color: #6f82b8; }
.participant-ligne .etats { margin-left: auto; display: flex; gap: .4rem; color: #6f82b8; }
.participant-ligne .etats .coupe { color: #f87171; }
.participant-ligne .etats .actif { color: #7ea2ff; }

.message { margin-bottom: .9rem; }
.message .entete { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .2rem; }
.message .auteur { font-size: .8rem; font-weight: 700; color: #c7d2ee; }
.message .heure { font-size: .7rem; color: #6f82b8; }
.message .bulle { display: inline-block; background: rgb(255 255 255 / .07); padding: .5rem .75rem; border-radius: 0 12px 12px 12px; font-size: .86rem; line-height: 1.45; max-width: 100%; overflow-wrap: anywhere; }
.message.moi .bulle { background: var(--rouge-aaz); border-radius: 12px 0 12px 12px; }
.message.moi { text-align: right; }
.message.systeme { text-align: center; font-size: .74rem; color: #6f82b8; }

.panneau-pied { padding: .75rem; border-top: 1px solid rgb(255 255 255 / .06); display: flex; gap: .5rem; }
.panneau-pied input { flex: 1; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); border-radius: 10px; padding: .6rem .8rem; color: #fff; font: inherit; font-size: .86rem; }
.panneau-pied input:focus { outline: none; border-color: var(--bleu); }
.panneau-pied button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--rouge-aaz); color: #fff; display: grid; place-items: center; cursor: pointer; }

/* -- Rail d'icones et vues du panneau (salle) ------------------------------ */

.salle-panneau { overflow: hidden; transition: opacity .18s ease; }
.salle-panneau:not(.ouvert) { opacity: 0; pointer-events: none; }

.panneau-entete { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .95rem 1rem; border-bottom: 1px solid rgb(255 255 255 / .07); flex: none; }
.panneau-entete strong { font-size: .92rem; }
.panneau-fermer { background: none; border: 0; color: #9fb1dc; cursor: pointer; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; }
.panneau-fermer:hover { background: rgb(255 255 255 / .08); color: #fff; }

/* Une seule vue affichee a la fois, chacune occupant toute la hauteur utile. */
.panneau-vue { display: none; flex-direction: column; min-height: 0; flex: 1; }
.panneau-vue.actif { display: flex; }
.panneau-vue .panneau-corps { flex: 1; overflow-y: auto; }

.panneau-texte { font-size: .84rem; line-height: 1.55; color: #c7d2ee; white-space: pre-line; }
.panneau-texte.discret { color: #8195c4; }

.liste-invites { display: flex; flex-direction: column; gap: .3rem; }
.ligne-invite { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: .5rem; padding: .45rem .5rem; border-radius: 9px; background: rgb(255 255 255 / .04); font-size: .8rem; }
.ligne-invite .jeton-etat { color: var(--orange); display: grid; place-items: center; }
.ligne-invite.venu .jeton-etat { color: #4ade80; }
.ligne-invite .courriel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #dbe4f7; }
.ligne-invite .etat { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: #8195c4; font-weight: 600; }
.ligne-invite.venu .etat { color: #4ade80; }

.ligne-action { display: grid; grid-template-columns: 22px 1fr; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid rgb(255 255 255 / .06); }
.ligne-action .jeton-etat { color: #8195c4; display: grid; place-items: center; padding-top: 2px; }
.ligne-action.faite .jeton-etat { color: #4ade80; }
.ligne-action .intitule { font-size: .85rem; font-weight: 600; color: #fff; }
.ligne-action.faite .intitule { text-decoration: line-through; color: #8195c4; }
.ligne-action .detail { font-size: .74rem; color: #8195c4; margin-top: .1rem; }

.fiche .ligne { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid rgb(255 255 255 / .06); font-size: .83rem; }
.fiche .ligne span:first-child { color: #8195c4; }
.fiche .ligne span:last-child { color: #fff; font-weight: 500; text-align: right; }
.panneau-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

.salle-rail { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .9rem .5rem; background: #16294a; border-left: 1px solid rgb(255 255 255 / .06); }
.rail-bouton { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: #9fb1dc; cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
.rail-bouton:hover { background: rgb(255 255 255 / .08); color: #fff; }
.rail-bouton.actif { background: var(--rouge-aaz); color: #fff; }
.rail-bouton .nombre { position: absolute; top: 2px; right: 2px; min-width: 17px; padding: 0 .2rem; border-radius: 999px; background: var(--bleu-fonce); color: #fff; font-size: .62rem; font-weight: 700; line-height: 17px; }
.rail-bouton.actif .nombre { background: #fff; color: var(--rouge-aaz); }


.avis-serveur { max-width: 520px; margin: 4rem auto; text-align: center; padding: 2.5rem; border-radius: 18px; background: #131f4a; color: #fff; }
.avis-serveur code { background: rgb(255 255 255 / .1); padding: .1rem .4rem; border-radius: 4px; font-size: .85em; }

.toast { position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--texte); padding: .7rem 1rem; border-radius: 10px; box-shadow: 0 20px 40px -10px rgb(0 0 0 / .5); font-size: .86rem; font-weight: 500; z-index: 50; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.visible { opacity: 1; }

/* -- Responsive ------------------------------------------------------------ */

@media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .deux-colonnes { grid-template-columns: 1fr; }
    .fonctions { grid-template-columns: 1fr; }
    .etapes ol { grid-template-columns: repeat(2, 1fr); }
    .heros-int { grid-template-columns: 1fr; }
    .apercu-photo { display: none; }
}

@media (max-width: 900px) {
    .app { grid-template-columns: 1fr; }
    .laterale { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
    .laterale.ouverte { transform: none; }
    .btn-menu { display: grid !important; }
    .recherche { display: none; }
    .contenu { padding: 1.25rem; }
    .ligne-reunion { grid-template-columns: 1fr; gap: .5rem; }
    .grille-2 { grid-template-columns: 1fr; }
    .salle, .salle:has(.salle-panneau:not(.ouvert)) { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
    .salle-panneau { display: none; }
    .salle-panneau.ouvert { display: flex; position: fixed; inset: 0; z-index: 30; opacity: 1; pointer-events: auto; }
    .salle-rail { flex-direction: row; justify-content: center; border-left: 0; border-top: 1px solid rgb(255 255 255 / .06); padding: .5rem; }
    .controle span.lib { display: none; }
    .stats { grid-template-columns: 1fr; }
}

.btn-menu { display: none; }

/* -- Reunion rapide sans compte (accueil) --------------------------------- */

.reunion-rapide { display: grid; grid-template-columns: 1fr auto; gap: .6rem; margin-top: 1.75rem; padding: 1rem; border-radius: 14px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); max-width: 560px; }
.reunion-rapide .etiquette { grid-column: 1 / -1; color: #fff; font-size: .85rem; font-weight: 600; margin: 0; }
.reunion-rapide input { padding: .7rem .9rem; border-radius: 10px; border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .1); color: #fff; font: inherit; }
.reunion-rapide input::placeholder { color: rgb(255 255 255 / .55); }
.reunion-rapide input:focus { outline: none; border-color: var(--rouge-aaz-clair); }
.reunion-rapide .aide { grid-column: 1 / -1; color: rgb(255 255 255 / .6); font-size: .78rem; }
.btn-accent { background: var(--rouge-aaz); color: #fff; }
.btn-accent:hover { background: #a93838; }
.salle-entete .minuteur .point { background: var(--rouge-aaz-clair); box-shadow: 0 0 0 3px rgb(227 107 107 / .25); }
