:root {
    --bleu-clair1: #6aa9ff;
    --bleu-clair2: #92c7ff;
    --fond-clair: #f4f7fb;
}
body {
    font-family: "Inter", sans-serif;
    margin: 0;
    background: var(--fond-clair);
    color: #1a1a1a;
    position: relative;
    z-index: 0;
}
.order button {
    cursor: pointer;

}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.herault-arnod.fr/wp-content/uploads/2024/11/4-CHIRENS-PHOTO1-L-scaled.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4; 
    z-index: -1;
}

.icon {
    width: 50px;       
    height: 50px;
    border-radius: 50%;
    object-fit: cover;  
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    background: linear-gradient(135deg, var(--bleu-clair1), var(--bleu-clair2));
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    width: auto;
    padding: 5px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meta {
    font-size: 0.9rem;
    color: #666;
}

h1 {
    margin: 0;
    font-size: 1.4rem;
}

main.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

section {
    width: 400px; /* largeur fixe souhaitée */
    min-width: 400px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

aside.panel {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: auto; 
}


h2 {
    margin-top: 0;
    background: linear-gradient(135deg, var(--bleu-clair1), var(--bleu-clair2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.order-add  {
    background: #f8faff;
    border: 1px solid #e0e6f2;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.order-add .title {
    font-weight: 600;
    margin: 0 0 0.3rem 0;
}

.order  {
    background: #f8faff;
    border: 1px solid #e0e6f2;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.order {
    margin: 0 0 0.3rem 0;
}

.priority {
    font-size: 0.9rem;
    color: #444;
}

form.order {
    background: #edf4ff;
}

input[type="text"], textarea, select {
    width: 95%;
    padding: 0.6rem;
    margin: 0.3rem 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
    resize: vertical;
    outline: none;
}

button {
    background: linear-gradient(135deg, var(--bleu-clair1), var(--bleu-clair2));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.15s ease;
}

button:hover {
    transform: scale(1.03);
}

.services {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-card {
    border: 1px solid #e0e6f2;
    border-radius: 12px;
    background: #f9fbff;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.svc-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.svc-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--bleu-clair1), var(--bleu-clair2));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 10px;
    font-size: 1rem;
    padding: 5px;
}

.svc-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.svc-desc {
    margin-top: 0.4rem;
    color: #444;
}

/* Formulaire d’ajout sous chaque service */
.add-info {
    background: #edf4ff;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #d3dcff;
}

.add-info input,
.add-info textarea,
.add-info select {
    margin-bottom: 0.5rem;
}

@media (max-width: 800px) {
    main.grid {
        grid-template-columns: 1fr;
    }
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: calc(100vh - 72px);
}


.container-login {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 400px;
    text-align: center;
}

.container-login select {
    margin-top: 20px;
    width: 100%;
    outline: none;
    text-align: center;
}

.container-login input {
    width:95%;
    margin-top: 5px;      
    padding: 0.6rem;       
    border-radius: 8px;     
    border: 1px solid #ccc; 
    font-family: inherit;
    background: #fff;  
    outline: none;   
    box-shadow: none;       
    display: block;
}


.container-login button {
    margin-top: 10px;
    width: 100%;
    display: none;
}


@media (orientation: portrait) {

    section, aside.panel {
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    main {
        display: grid;
        place-items: center; 
        padding: 20px;
    }
    .container-login {
        width: 300px;
    }
    
}

aside.panel {
    width: 350px; /* largeur fixe souhaitée */
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order {
    width: 100%; /* largeur fixe via le parent panel */
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* pour que le bouton suive la hauteur */
    box-sizing: border-box;
    padding: 1rem;
}

.order-content {
    flex: 1 1 auto; /* prend tout l'espace restant */
    min-width: 0; /* très important pour que le texte ne déborde pas */
    word-break: break-word; /* casse les mots trop longs */
    overflow-wrap: break-word; /* compatibilité */
}

/* Bouton suit la hauteur du parent */
.order .status-btn {
    flex-shrink: 0; /* ne rétrécit pas */
    height: 100%;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

@media (orientation: portrait) {
    aside.panel {
        width: 75%;
        min-width: none;
        max-width: none;
    }
}
