/*
 * Feuille de styles principale basée sur Bootstrap 5 pour la page d'accueil WebRTC.
 * Les règles ci-dessous complètent Bootstrap afin d'obtenir une interface claire,
 * responsive et conforme aux standards d'accessibilité.
 */
body {
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
}

.background-degrade{
  background: #D6EAF2;
background: linear-gradient(46deg,rgba(214, 234, 242, 1) 0%, rgba(242, 236, 233, 1) 80%, rgba(252, 252, 252, 1) 100%);
}

/*
 * Bandeau introductif épuré pour présenter l'application de manière sobre.
 */
 .bg-medinlyon {
     background-color: #3f407c;
 }

.app-hero {
    background-color: #3f407c;
    border-bottom: 1px solid rgba(15, 23, 42, 0.45);
}

.app-hero__title {
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.app-hero__note {
    color: rgba(248, 250, 252, 0.72);
    font-size: 0.95rem;
}

/*
 * Carte vidéo utilisée pour présenter les flux local et distant.
 */
.video-card {
    border-radius: 1.5rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0px 0px 20px lightgrey !important;
}

.video-card .card-header {
    padding: 1.5rem 1.75rem 1.25rem;
}

.video-card .card-body {
    background: #0f172a;
    padding: 1.5rem;
}

.video-card .card-footer {
    padding: 1.25rem 1.75rem 1.5rem;
    background: #ffffff;
}

/*
 * Cadre vidéo sombre avec arrondis pour mettre en avant l'image.
 */
.video-frame {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: radial-gradient(circle at 12% 16%, rgba(59, 130, 246, 0.35), transparent 55%), #0f172a;
}

.video-frame video {
    object-fit: cover;
}

/*
 * Classe ajoutée lorsque l'utilisateur agrandit manuellement une vidéo.
 * La version CSS complète le plein écran natif et sert de repli si indisponible.
 */
.video-frame--zoom {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(95vw, 1280px) !important;
    height: auto !important;
    z-index: 1080 !important;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.45);
}

.video-zoom-active {
    overflow: hidden;
}

/*
 * Bouton circulaire générique utilisé pour les actions contextuelles.
 */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    font-size: 1.1rem;
    border-width: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-icon:hover,
.btn-icon:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.btn-call {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 5rem;
    padding: 1.1rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-call__icon {
    line-height: 1;
    display: inline-flex;
}

.btn-call__label {
    font-size: 0.95rem;
}

.btn-call:hover,
.btn-call:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.22);
}

.btn-call--join {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 0;
}

.btn-call--join:hover,
.btn-call--join:focus-visible {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.btn-call--hangup {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 0;
}

.btn-call--hangup:hover,
.btn-call--hangup:focus-visible {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
}

.btn-call--settings {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.18);
    color: #0f172a;
    min-width: 0;
}

.btn-call--settings:hover,
.btn-call--settings:focus-visible {
    background: rgba(148, 163, 184, 0.1);
}

/*
 * Vignettes d'état média situées dans la carte locale.
 */
.media-icon {
    display: inline-flex;
    width: 2.35rem;
    height: 2.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background-color: rgba(15, 23, 42, 0.08);
    font-size: 1.3rem;
}

.call-meta {
    background: rgba(148, 163, 184, 0.12);
}

/*
 * Panneau latéral pour les paramètres affiché via un léger effet d'overlays.
 */
.settings-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1030;
}

.settings-backdrop.show {
    opacity: 1;
}

.settings-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 28px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 1040;
    display: flex;
    flex-direction: column;
}

.settings-drawer.show {
    transform: translateX(0);
}

.settings-drawer__header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.settings-drawer__body {
    padding: 1.5rem;
    overflow-y: auto;
}

.settings-drawer__close {
    font-size: 1.75rem;
    color: #64748b;
}

.settings-drawer__close:hover,
.settings-drawer__close:focus-visible {
    color: #0f172a;
    text-decoration: none;
}

.settings-open {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .video-card {
        border-radius: 1.25rem;
    }

    .video-card .card-header,
    .video-card .card-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .video-card .card-body {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .video-card .card-header,
    .video-card .card-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .btn-call {
        width: 100%;
    }

    .call-toolbar .d-flex {
        flex-direction: column;
        width: 100%;
    }
}

.btn-call {
    width: 110px;
    height: 110px;
}

.btn-call--settings:hover {
    color: black;
}

.btn-call__icon.raccrocher {
    transform: rotate(134deg);
}
.card{
box-shadow: 0px 0px 20px lightgrey !important;
}

.logo{
    width: 300px;
    margin-bottom: 20px;
}
