/*
 * ============================================================
 * RaspiDomo - Feuille de style principale
 * ============================================================
 */

/* ------------------------------------------------------------
   RESET
   ------------------------------------------------------------ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #212224;
    color: #222;
    line-height: 1.6;
}


/* ------------------------------------------------------------
   LIENS
   ------------------------------------------------------------ */

a {
    color: #1565c0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------
   HEADER RASPIDOMO
   ------------------------------------------------------------ */

.RaspiDomo-header {
    width: 100%;
    height: 280px;
    min-height: 280px;
    max-width: 100%;
    background: url("/_Ressources/Images_site/Donotique_banner.png")
                center center
                no-repeat;

    background-size: 100% 100%;
    display: flex;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    box-sizing: border-box;
}

.header-overlay {
    width: 100%;
    height: 100%;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.55) 35%,
        rgba(0, 0, 0, 0.15) 100%
    );

    color: #ffffff;
}

.header-overlay h1 {
    margin: 0 0 15px;
    font-size: 2.4rem;
    font-weight: 700;
}

.header-overlay p {
    margin: 0;
    max-width: 550px;
    font-size: 1.1rem;
    line-height: 1.6;
}
/* ------------------------------------------------------------
   MENU PRINCIPAL
   ------------------------------------------------------------ */

.menu {
    width: 100%;
    background: #293950;
    border-bottom: 3px solid #338784;
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 65px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */

.menu-logo {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;

    transition: color 0.25s ease;
}

.menu-logo:hover {
    color: #38bdf8;
    text-decoration: none;
}

/* Liens du menu */

.menu-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-links a {
    display: block;

    padding: 10px 16px;

    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;

    text-decoration: none;
    border-radius: 6px;

    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

/* Passage de la souris */

.menu-links a:hover {
    color: #38bdf8;
    background-color: #338784;
    text-decoration: none;
}

/* Lien actif */

.menu-links a.active {
    color: #ed760d;
    background-color: #338784;
}

/* ------------------------------------------------------------
   CONTENU PRINCIPAL
   ------------------------------------------------------------ */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 140px);
}

.page {
    background: #e3e3e3;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page h1 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.page h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.page h3 {
    margin-bottom: 10px;
}

.page p {
    margin-bottom: 15px;
}


/* ------------------------------------------------------------
   APPAREILS
   ------------------------------------------------------------ */

.appareils {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.appareil {
    padding: 25px;
    background: #f8fafc;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.appareil h2 {
    margin-bottom: 10px;
}


/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */

.footer {
    width: 100%;
    background: #1f2937;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.footer p {
    margin: 0;
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 700px) {

    .menu-container {
        flex-direction: column;
        justify-content: center;
        padding: 15px 20px;
    }

    .menu-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .main-content {
        padding: 20px 15px;
    }

    .page {
        padding: 20px;
    }

    .page h1 {
        font-size: 1.6rem;
    }

    .appareils {
        grid-template-columns: 1fr;
    }
}
/* hr: ligne couleur */
.hr-blue {
    border: 0;
    height: 1px;
    background: #4da3ff;
    margin: 10px 0;
}

.hr-orange {
    border: 0;
    height: 1px;
    background: #d97916;
    margin: 10px 0;
}
.hr-green {
    border: 0;
    height: 1px;
    background: #3c971f;
    margin: 10px 0;
}
.hr-yellow {
    border: 0;
    height: 1px;
    background: #d9ca16;
    margin: 10px 0;
}
.hr-red {
    border: 0;
    height: 1px;
    background: #ff4d4d;
    margin: 10px 0;
}
hr.small{border-style:dashed;width:50%}

/* ============================================================
   FORMULAIRE APPAREIL
   ============================================================ */

.form-appareil {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;

    background: #e3cece;
    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

    box-sizing: border-box;
}


/* ------------------------------------------------------------
   GROUPES
   ------------------------------------------------------------ */

.form-group {
    margin-bottom: 20px;
}


/* ------------------------------------------------------------
   LABELS
   ------------------------------------------------------------ */

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-weight: 600;
    color: #1f2937;
}


/* ------------------------------------------------------------
   CHAMPS
   ------------------------------------------------------------ */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 11px 13px;

    font-family: inherit;
    font-size: 1rem;

    color: #1f2937;

    background: #ffffff;

    border: 1px solid #d1d5db;
    border-radius: 6px;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* ------------------------------------------------------------
   FOCUS
   ------------------------------------------------------------ */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;

    border-color: #38bdf8;

    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}


/* ------------------------------------------------------------
   TEXTAREA
   ------------------------------------------------------------ */

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}


/* ------------------------------------------------------------
   OPTGROUP
   ------------------------------------------------------------ */

.form-group optgroup {
    font-weight: 700;
    color: #1f2937;
}


/* ------------------------------------------------------------
   BOUTONS
   ------------------------------------------------------------ */

.form-actions {
    display: flex;
    gap: 12px;

    margin-top: 30px;
}


/* Bouton principal */

.button {
    display: inline-block;

    padding: 11px 20px;

    font-size: 1rem;
    font-weight: 600;

    color: #ffffff;
    background: #2563eb;

    border: none;
    border-radius: 6px;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    background: #1d4ed8;

    transform: translateY(-1px);

    text-decoration: none;
}


/* Bouton secondaire */

.button.secondary {
    color: #374151;
    background: #e5e7eb;
}

.button.secondary:hover {
    background: #d1d5db;
}

/* Bouton retour */
.back{
    display:inline-block;
    margin:10px 0;
    padding:8px 12px;
    background:#a54a1d;
    color:white;
    border-radius:8px;
    text-decoration:none;
}
.back:hover{
    background:#e58b5e;
    color:black;
}

/* ACTIONS */
.btn{
padding:10px 15px;
border-radius:8px;
background:#1db954;
color:black;
font-weight:bold;
text-decoration:none;
transition:.2s;
}

.btn:hover{
    background:#124e27;
    transform:scale(1.05);
    color:white;
}

.btn.danger{
background:#e74c3c;
color:white;
}

/* Bouton annule */

.button_annule{
    padding:10px 15px;
    border-radius:8px;
    color: white;
    background: #d90a0a;
    font-weight:bold;
    text-decoration:none;
    transition:.2s;
}
.button_annule:hover {
    background: #df6868;
}
/* ------------------------------------------------------------
   MESSAGE D'ERREUR
   ------------------------------------------------------------ */

.message.erreur {
    max-width: 800px;

    margin: 20px auto;
    padding: 15px 18px;

    color: #991b1b;
    background: #fee2e2;

    border: 1px solid #fecaca;
    border-radius: 8px;

    box-sizing: border-box;
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 700px) {

    .form-appareil {
        margin: 20px 10px;
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

.statut {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;

    font-size: 0.85rem;
    font-weight: 700;
}

.statut.actif {
    color: #ffffff;
    background: #16a34a;
}

.statut.inactif {
    color: #ffffff;
    background: #dc2626;
}

/* ============================================================
   PORTAIL RASPIDOMO
   ============================================================ */

.portail-cases {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;

    width: 100%;

    margin: 40px auto;
}


/* ============================================================
   CASE
   ============================================================ */

.portail-case {
    aspect-ratio: 1 / 1;

    min-height: 220px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    text-decoration: none;

    background: #ffffff;

    border: 2px solid #ddd;

    border-radius: 12px;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.12);

    color: #222;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* ============================================================
   ICÔNE
   ============================================================ */

.portail-case-icon {
    font-size: 55px;

    margin-bottom: 18px;
}


/* ============================================================
   TITRE
   ============================================================ */

.portail-case strong {
    font-size: 23px;

    margin-bottom: 10px;
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.portail-case small {
    max-width: 85%;

    font-size: 14px;

    line-height: 1.4;

    color: #666;
}


/* ============================================================
   SURVOL
   ============================================================ */

.portail-case:hover {

    transform: translateY(-5px);

    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.18);
}


/* ============================================================
   MON COMPTE
   ============================================================ */

.portail-case-compte {
    grid-column: auto;
}


/* ============================================================
   TABLETTE
   ============================================================ */

@media (max-width: 1000px) {

    .portail-cases {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .portail-cases {
        grid-template-columns: 1fr;
    }

}

/* ============================================================
   APPAREILS
   ============================================================ */

.appareils-entete {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;

    margin-bottom: 35px;
}


/* ============================================================
   GRILLE
   ============================================================ */

.appareils-grille {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 25px;

    width: 100%;
}


/* ============================================================
   CARTE
   ============================================================ */

.appareil-card {

    background: #fff;

    border: 1px solid #ddd;

    border-radius: 12px;

    padding: 25px;

    box-sizing: border-box;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.appareil-card:hover {

    transform: translateY(-4px);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.16);
}


/* ============================================================
   EN-TÊTE CARTE
   ============================================================ */

.appareil-card-header {

    display: flex;

    align-items: center;

    gap: 18px;

    margin-bottom: 25px;
}


.appareil-card-icone {

    font-size: 48px;

    flex-shrink: 0;
}


.appareil-card-type {

    font-size: 14px;

    opacity: 0.65;

    margin-bottom: 5px;
}


.appareil-card h2 {

    margin: 0;

    font-size: 22px;
}


/* ============================================================
   INFORMATIONS
   ============================================================ */

.appareil-card-infos {

    display: flex;

    flex-direction: column;

    gap: 12px;
}


.appareil-card-infos > div {

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.appareil-card-infos strong {

    font-size: 13px;

    opacity: 0.65;
}


.appareil-card-infos span {

    font-size: 15px;
}


.appareil-description {

    margin-top: 8px;

    line-height: 1.5;
}


/* ============================================================
   PIED DE CARTE
   ============================================================ */

.appareil-card-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 25px;

    padding-top: 18px;

    border-top: 1px solid #eee;
}


.appareil-actions {

    display: flex;

    gap: 8px;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .appareils-entete {

        flex-direction: column;

        align-items: flex-start;

    }


    .appareils-grille {

        grid-template-columns: 1fr;

    }


    .appareil-card-footer {

        flex-direction: column;

        align-items: flex-start;

    }

}

.pieces-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.pieces-grid .appareil-card {
    min-width: 0;
}

@media (max-width: 1200px) {
    .pieces-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .pieces-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .pieces-grid {
        grid-template-columns: 1fr;
    }
}

