/**
* Path: css/commun.css
* CSS commun à toutes les pages
*/

body {
    margin: 0;
    display: grid;
    grid-template-areas: 
    "header main";
    background-color: var(--bg-fond-color);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; 
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    height: 100vh;
    /* Sur mobile, 100vh compte aussi la barre d'adresse : le bas de page et le
       profil du menu passaient dessous. 100dvh suit la hauteur réellement visible. */
    height: 100dvh;
    overflow: hidden;
}

.rouge {
    color: var(--danger-color);
}

button, input[type="submit"] {
    border: none;
    padding:15px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    border-radius: 5px;
}

button:disabled, button[disabled], button:disabled:hover, button[disabled]:hover {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}



header a, .grid_container .card a, nav a {
    text-decoration: none;
}

.gras {
    font-weight: 700;
}

/* Main */
main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex:1;
    width: 100%;
    padding: 0 10px;
    color: var(--text-color-main);
    overflow: auto;
}
main .description {
    padding: 10px 10px 15px 10px;
    color: var(--main-color);
}

.contenu {
    display: flex;
    flex-direction: column;
    border-radius: 0 0 0 5px;
    width: 100%;
    flex: 1;
    padding: 20px;
    background-color: var(--bg-fond-color);
}

/* La colonne de contenu : <main> (case de la grille du body), .contenu et .contenu__bloc (éléments flex). Sans
   min-width: 0, leur largeur minimale est celle de leur contenu : un tableau ou un graphique large élargissait toute
   la colonne, et la page avec, sur téléphone (lot « composants », 24/10/2026). Le contenu large défile désormais
   dans son propre cadre (.table-wrapper, .tableau-defilant…). */
main,
.contenu,
.contenu__bloc {
    min-width: 0;
}
.contenu__bloc {
    max-width: 100%;
}

/* Page header */

.contenu__bloc > h1 {
    margin:0 0 5px 0;
    font-size: 1.5em;
}
.contenu__bloc > h1 + h2 {
    margin:5px 0;
    font-size: 1.2em;
    font-weight: normal;
}


/* Container sous forme de grille et cartes */
.grid_container {
    display:grid;
    align-items: stretch;
    gap:20px;
    grid-template-columns: repeat(auto-fit, minmax(100px,370px));
    grid-template-rows: repeat(auto-fit, minmax(100px,1fr));
    margin-top:20px;
    padding:0 10px;
}
.grid_container.left {
    justify-content: start;
}
.grid_container .card {
    min-height: 100px;
}

.grid_container .card a {
    display: flex;
    gap : 20px;
    align-items: flex-start;
    justify-content: center;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    border: 1px solid lightgray;
    border-left: 4px solid var(--main-color);
    color: var(--text-color-primary);
}

.grid_container .card a .card-body {
    flex:1;
    display: flex; flex-direction: column; justify-content: flex-start; gap:10px;
    height: 100%;
}

.grid_container .card a .card-body h1 {
    margin:0;
}
.grid_container .card a .card-body .card-number {
    font-size: 1.2em;
    margin:5px 0;
    text-align: center;
}

.grid_container .card.disabled a, .grid_container .card.disabled a:hover {
    cursor: default;
    color:gray;
    background-color: var(--bg-fond-color);
}
.grid_container .card.alerte a  {
    color: var(--danger-color-text);
    border-left:4px solid var(--danger-color-border);
}

.grid_container .card.alerte a:hover {
    border:1px solid var(--danger-color-hover);
    border-left:4px solid var(--danger-color-hover);
}
.grid_container .card a h1, .grid_container .card a p  {
    color: inherit;
}
.grid_container .card a:hover {
    border:1px solid var(--card-main-color-hover);
    border-left:4px solid var(--card-main-color-hover);
}
.grid_container .card a span {
    background-color: rgba(41, 87, 255, 0.2);
    padding: 7px;
    border-radius: 5px;
    font-size: 30px;
}
.grid_container .card.alerte span {
    background-color: rgb(176, 2, 2, 0.2);
}

.grid_container .card a h1 {
    font-size: clamp(var(--small-text), 3.5vw + 0.5rem, var(--small-title));
}

.grid_container .card a p {
    font-size: var(--small-text);
    color: var(--text-color-main);
}
.grid_container .card .card-text {
    margin: 5px 0;
}

#tableau_degagements #ligne-1 .bouton_suppression{
    display: none;
}
#tableau_degagements #column-niveau {
    width: 80px;
}

/* Container sous forme de liste */
.flex_column {
    display: flex; flex-direction: column;
    width: 100%;
    margin:20px 0; padding:16px;
    background:var(--surface);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-1);
}
.modal-content .form_column {
    background-color: transparent;
    border-radius: none;
    box-shadow: none;
}

.flex_column .row, .form_column .row {
    display:flex;
    align-items: center;
    justify-content: space-between;
    padding:1rem 0;
}
.form_column .card__body .row:first-of-type {
    padding-top: 0;
}
.form_column p + .row {
    padding-top:0;
}
.form_column .row.boutons {
    flex-direction: row;
    gap: 20px;
    justify-content: flex-start;
}
.form_column .row.classement-info p {
    display:flex;
    align-items: center;
    gap:10px;
    margin:0;
}

.flex_column .row__text h1, .form_column .row__text h1 {
    font-size: 1em;
    margin:5px 0;
}
.flex_column .row__text p, .form_column .row__text p {
    font-size: 0.8em;
    margin:10px 0 5px 0;
}

.flex_column .row + .row {
    padding-top: 10px;
    border-top: 1px solid gray;
}

.form_column .row {
    flex-direction: column;
    align-items: flex-start;
}

.flex_column .row__text .row__email, .form_column .row__text .row__email {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap:20px;
}

.flex_column .row.boutons, .form_column .row.boutons {
    flex-direction: row;
    justify-content: start;
    gap: 20px;
}

.flex_column .row h2, .form_column .row h2 {
    font-size: 1.2em;
    margin:5px 0;
}
.flex_column .row h2 + p, .form_column .row h2 + p {
    margin: 5px 0;
}
.flex_column .row.hidden, .form_column .row.hidden {
    display: none;
}

.flex_column .row.columns, .form_column .row.columns {
    flex-direction: row;
    gap: 10px;
    padding: 0;
}
.flex_column .row .col {
    flex: 1;
    border-right:1px solid gray;
    padding: 10px;
}
.flex_column .row .col:last-child {
    border-right:none;
}
.flex_column .row .columns, .form_column .row .columns {
    display:flex;
    flex-direction: row;
    width: 100%;
    gap: 20px;
    align-items: center;
}
.flex_column .row.table-row, .form_column .row.table-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
}
.form_column .classement-info a {
    color: var(--text-color);
    text-decoration: none;
}
.form_column .row .adresse_moa {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes de largeur égale */
    column-gap: 10px; /* Espacement entre les colonnes et les lignes */
}

.form_column .row .adresse_moa div, .form_column .row .adresse_moa input:nth-child(2)  {
    grid-column: span 2; /* Le premier input occupe les deux colonnes */
}

.form_column .row .adresse_moa input:nth-child(3),
.form_column .row .adresse_moa input:nth-child(4) {
    grid-column: span 1; /* Les deux autres inputs occupent une colonne chacun */
}

.form_column #datePC {
    display:none;
}
.form_column #datePC.show {
    display: flex;
}
.form_column #datePC_explication {
    font-size: 0.8em;
    margin: 5px 0;
}


#metier-autre-container {
    display: none;
}
#metier-autre-container.show {
    display: flex;
}

.code_postal_ville {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}
.code_postal_ville .code_postal {
    width: 120px;
}
.code_postal_ville .ville {
    flex: 1;
}

.actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding:0;
}

.actions a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
}
.actions a span.material-symbols-outlined {
    font-size: 2em;
}
.actions a:hover {
    color: var(--link-color-main);
}

.actions_boutons {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    padding-bottom: 15px;
}
.tableau .actions_boutons {
    margin-left:15px;
}

.actions_icones {
    margin: -10px 0 5px -10px;
}

.actions_icones a {
    display: flex;
    gap: 5px;
    align-items: center;
    text-decoration: none;
    color: var(--text-color-main);
}
.actions_icones a:hover {
    color: var(--link-color-main);
}

#erreur_tableau_effectifs {
    display: none;
    color:var(--danger-color);
    font-size: 0.8em;
}
#erreur_tableau_effectifs.show {
    display: block;
}

/* Choix */
.choice {
    display:grid;
    width:100%;
    grid-template-columns: repeat(auto-fit, minmax(50px,200px));
    column-gap: 20px;
    row-gap: 20px;
}
.choice.horizontal {
    display:flex;
    flex-direction: column;
    max-width:750px;
}
.choice input[type="radio"], 
.choice input[type="checkbox"] {
    position: fixed;
    opacity: 0;
}
.choice label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding:10px;
    text-align: center;
    aspect-ratio: 1/1;
    color:var(--text-color-main);
    border-radius: var(--radius);
    border:1px solid var(--line);
}
.choice.horizontal label {
    aspect-ratio: initial;
    align-items: flex-start;
    padding:20px 10px;
    text-align: justify;
}
.choice label span {
    font-size:48px;
    background-color: var(--bg);
    padding: 7px;
    border-radius: 5px;
    color: var(--muted);
}
.choice label p {
    margin:5px;
    font-size:0.9em;
}
.choice label span+p {
    margin-top:10px;
}
.choice label:hover {
    border-color: var(--label-color);
    box-shadow: var(--shadow-1);
}
.choice input[type="radio"]:checked + label, .choice input[type="radio"]:checked + label.checked,
.choice input[type="radio"]:focus + label, .choice input[type="radio"]:focus + label.checked, 
.choice input[type="checkbox"]:checked + label, .choice input[type="checkbox"]:checked + label.checked,
.choice input[type="checkbox"]:hover + label, .choice input[type="checkbox"]:hover + label.checked {
    border-color: var(--label-color);
    color: var(--label-color);
    box-shadow: 0 0 0 2px rgba(41,87,255,0.15);
}
.choice input[type="radio"]:checked + label.firstchecked, 
.choice input[type="radio"]:focus + label.firstchecked, 
.choice input[type="checkbox"]:checked + label.firstchecked, 
.choice input[type="checkbox"]:hover + label.firstchecked {
    border-color: var(--first-choice);
    color: var(--first-choice);
    box-shadow: 0 0 0 2px rgba(188, 128, 52, 0.15);
}
.choice input[type="radio"]:checked + label span,
.choice input[type="checkbox"]:checked + label span {
    background-color: var(--label-color);
    color: white;
}
.choice input[type="radio"]:checked + label.firstchecked span,
.choice input[type="checkbox"]:checked + label.firstchecked span {
    background-color: var(--first-choice);
    color: white;
}
.choice label.danger {
    border:1px solid var(--danger-color-pastel);
    color: var(--danger-color-pastel);
}
.choice label.danger:hover,
.choice input[type="checkbox"]:checked + label.danger,
.choice input[type="checkbox"]:hover + label.danger {
    border:1px solid var(--danger-color);
    color: var(--danger-color);
}
.choice + button {
    margin-top: 40px;
}
.choice input[type="radio"]:disabled + label.disabled,
.choice input[type="checkbox"]:disabled + label.disabled {
    border:1px solid #ccc;
    color:#ccc;
    cursor: not-allowed;
}
.choice label.label_autres {
    border:1px solid transparent;
    flex-direction: row-reverse;
    box-shadow: none;
}
.choice label.label_autres:hover {
    border:1px solid transparent;
}
.choice input[type="radio"]:checked + label.label_autres,
.choice input[type="radio"]:focus + label.label_autres {
    border:2px solid transparent;
    color: black;
}
.choice label.label_autres span {
    background-color: transparent;
}
.row .choice {
    grid-template-columns: repeat(auto-fit, minmax(50px,100px));
}
.row .choice label span {
    font-size:30px;
}
.choice .double-icones, .choice .CTS-icones, .choice .REF-icones {
    position:relative;
    width:48px;
    height:48px;
}
.choice .GA-icones {
    display: flex;
}
.choice .double-icones span, .choice .REF-icones span {
    position: absolute;
    top:-15px;
    left:-7px;
}
.choice .CTS-icones span {
    position: absolute;
    right:0;
}
.choice input[type="checkbox"]:checked + label .double-icones span:first-child,
.choice input[type="checkbox"]:checked + label .REF-icones span:first-child,
.choice .double-icones span:first-child, .choice .REF-icones span:first-child {
    z-index:1;
    font-size: 28px;
    top: -19px;
    left:-9px;
    background: transparent;
}
.choice .REF-icones-detail span:last-child {
    z-index:1;
    font-size: 20px;
    top:-20px;
}
.choice .CTS-icones span:first-child {
    z-index:1;
    font-size: 20px;
    bottom: 0;
    right: -5px;
    background-color: white;
    width: min-content;
}
.choice input.cacher + label {
    display:none;
}
.separator {
    grid-column: 1 / -1; /* Étendre l'élément sur toutes les colonnes */
    height: 1px; /* Hauteur du séparateur */
    background-color: #ccc; /* Couleur du séparateur */
    margin: 10px 0; /* Marge autour du séparateur */
}


.filtres {
    display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr; column-gap: 10px;
    padding:10px 15px;
    width: fit-content;
}
.sous-filtres {
    display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; column-gap: 10px;
    padding:10px 15px;
    border-left: 4px solid var(--main-color);
    width: fit-content;
    margin-top: 10px;
}
@media screen and (max-width: 600px) {
    .filtres {
        grid-template-columns: repeat(6, 1fr);
        width: 100%;
    }
    .filtres a {
        grid-column: span 2;
    }
    .filtres a:nth-last-child(-n+2) {
        grid-column: span 3;
    }
    .sous-filtres {
        grid-template-columns: 1fr 1fr 1fr;
        width: 100%;
    }
}

.filtres a, .sous-filtres a {
    margin: 0;
    display: flex; align-items: center; justify-content: center; gap: 5px; 
    padding:7px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color-main);
    font-size: 0.9em;
}
.filtres a .material-symbols-outlined, .sous-filtres a .material-symbols-outlined {
    font-size: 1.4em;
}

.filtres .filtre_favori:hover, .filtres .filtre_favori.active {
    color: var(--favoris-color);
    background-color: rgba(255, 190, 0, 0.2);
}
.filtres .filtre_site:hover, .filtres .filtre_site.active,
.filtres .filtre_batiment:hover, .filtres .filtre_batiment.active,
.filtres .filtre_groupement:hover, .filtres .filtre_groupement.active,
.sous-filtres .filtre_batiment:hover, .sous-filtres .filtre_batiment.active {
    color: var(--main-color);
    background-color: rgb(41, 87, 255, 0.2);
}
.filtres .filtre_archive:hover, .filtres .filtre_archive.active {
    color: rgb(128, 128, 128);
    background-color: rgba(128, 128, 128, 0.2);
}
.sous-filtres .filtre_erp:hover, .sous-filtres .filtre_erp.active {
    background: rgb(41, 87, 255, 0.2);
    color: rgb(41, 87, 255);
}
.sous-filtres .filtre_habitation:hover, .sous-filtres .filtre_habitation.active {
    background: rgb(193, 17, 17, 0.2);
    color: rgb(193, 17, 17);
}
.sous-filtres .filtre_cdt:hover, .sous-filtres .filtre_cdt.active {
    background: rgb(255, 152, 0, 0.2);
    color: rgb(255, 152, 0);
}
.sous-filtres .filtre_igh:hover, .sous-filtres .filtre_igh.active {
    background: rgb(161, 69, 76, 0.2);
    color: rgb(161, 69, 76);
}
.sous-filtres .filtre_icpe:hover, .sous-filtres .filtre_icpe.active {
    background: rgb(63, 147, 66, 0.2);
    color: rgb(63, 147, 66);
}

#filtre_texte {
    padding: 0 10px;
    height: 20px;
    margin-bottom:10px;
}
#filtre_texte p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
#filtre_texte p span {
    font-size: 1em;
    cursor: pointer;
}
#actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0; padding:15px;
    width:100%;
}
#actions form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    position: relative;
}
#actions form input[type="text"] {
    width: 100%;
    font-size: 1em; 
    margin: 5px 0; padding: 10px 16px;
    background-color: #f5f8fa;
    border: 1.5px solid var(--muted); border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(41,87,255,0.07);
    padding-right: 30px;
}

#actions form input[type="text"]:focus {
    border-color: #2957FF;
    box-shadow: 0 0 0 2px rgba(41,87,255,0.15);
    background-color: #fff;
}
#actions form button .material-symbols-outlined, #actions form a .material-symbols-outlined {
    font-size: 16px;
}
#actions #searchLoader {
    position: absolute;
    right: 110px;
    top: 35%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Tableau de liste */
.tableau {
    margin-top: 5px;
}
table.liste {
    width: 100%;
    border-collapse: collapse;
    margin: 0px 0px 10px 0px;
    font-size:0.9em;
}
table.liste th, table.liste td {
    padding: 5px;
}
table.liste th {
    text-align: left;
    padding: 10px 5px;
    font-weight: 600;
}
table.liste #actions_titre, table.liste #date_titre {
    text-align: center;
}
table.liste th a {
    text-decoration: none;
    color: inherit;
}
table.liste th a.asc::after {
    content: "▲";
    margin-left: 5px;
    font-size: 0.8em;
    color: var(--main-color)
}
table.liste th a.desc::after {
    content: "▼";
    margin-left: 5px;
    font-size: 0.8em;
    color: var(--main-color);
}
table.liste.arrondi tr:first-of-type th:first-child {
    border-top-left-radius: 14px;
    padding-left:15px;
}
table.liste.arrondi tr:first-of-type th:last-child {
    border-top-right-radius: 14px;
}
table.liste tr:first-of-type th .material-symbols-outlined {
    color: transparent;
}
table.liste tr td:first-child {
    padding-left: 15px;
}
table.liste tr:first-of-type th, table.liste tr:first-of-type td {
    border-bottom: 1px solid lightgray;
    color: var(--main-color);
    background-color: rgba(41, 87, 255, 0.2);
}
table.liste tr:nth-child(even) {
    background-color: var(--card-bg-color);
}
table.liste tr:hover {
    background-color: var(--card-hover-bg-color);
}
table.liste tr:first-of-type:hover {
    background-color: transparent;
}
table.liste .nom_classement, table.liste .nom_notice {
    padding-right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
table.liste .nom_batiment {
    padding: 15px 0px;
    display: flex;
    align-items: center;
    gap: 10px;
}
table.liste .aucun_batiment {
    padding: 15px 0px;
}
table.liste .nom_batiment .material-symbols-outlined {
    color: transparent;
}
table.liste .nom_batiment .material-symbols-outlined.filled {
    color: var(--favoris-color);
    font-variation-settings:
    'FILL' 1,
    'wght' 500;
}
table.liste .date_modification {
    text-align: center;
}
table.liste tr.clickable {
    cursor: pointer;
}
table.liste .liste_actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}
table.liste .liste_actions a {
    color: var(--second-color);
}
table.liste .action {
    width: 50px;
}
table.liste .action .material-symbols-outlined, table.liste .liste_actions.actions_membre .material-symbols-outlined, table.liste .liste_actions .material-symbols-outlined {
    font-size: 16px;
}
table.liste .liste_actions.actions_membre {
    justify-content: flex-start;
}
table.liste .actions_membre {
    width: 150px;
}
table.liste .ordre {
    width: 80px;
    text-align: left;
    padding-left: 15px;
}
table.liste th.ordre {
    padding-left: 0;
    text-align: center;
}
table.liste .info_batiment {
    display:flex;
    flex-direction: column;
    gap: 5px;
    font-weight: 600;
    
}
table.liste .info_batiment .badge {
    font-size: 0.8em;
    padding: 4px 6px;
    border-radius: 4px;
    width: max-content;
    font-weight: normal;
}


/* Commentaire */
.feedback, .messages {
    max-width: 1200px;
    margin:0 auto;
    display:flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--text-color-main);
}
.messages {
    flex-direction: column;
    padding: 20px 0;
    gap: 10px;
}

.message__content {
    padding: 10px;
    border-radius: 10px;
    max-width: 75%;
}
.message__content.fichier-joint {
    padding: 5px 10px;
}
.reponse {
    display:flex;
    flex-direction: column;
    max-width: 1200px;
    margin:20px auto;
    align-items: flex-end;
}
.reponse_form {
    display:flex;
    flex-direction: column;
    gap: 10px;
    max-width: 1200px;
    margin:20px auto;
}
.reponse_form form {
    display: flex;
    width: 100%;
}
#reponse {
    width: 100%;
}
#reponse div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.message__date-header {
    font-size: 1em;
    color: var(--date-color);
    clear: both;
    text-align: center;
}
.message__date {
    margin:0;
    font-size: 0.8em;
    text-align: right;
}
.message__contenu {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.fichier-joint .message__contenu {
    margin:0;
}
.message__contenu a {
    color: var(--text-color-secondary);
    text-decoration: none;
}
.message__contenu a:hover {
    text-decoration: underline;
}
.archive {
    padding: 4px 6px;
    border-radius: 5px;
    font-size: 0.7em;
    font-weight: normal;
    margin-left: 5px;
}
#statut-info {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1em;
}
#statut-info.enAttente, .archive {
    color: black;
    background-color: lightgray;
}
#statut-info.enCours {
    color: rgb(182, 100, 0);
    background-color: rgb(255, 207, 118);
}
#statut-info.cloture {
    color: green;
    background-color: lightgreen;
}

.pricing-table-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.pricing-sections {
    margin: 2rem 0;
}

.pricing-section {
    margin-bottom: 3rem;
}

.pricing-section h2 {
    color: #1e40af;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.pricing-card.premium {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #f8faff 0%, #f3f4ff 100%);
}

.pricing-card.default {
    border-color: #6b7280;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1rem;
}

.pricing-header h3 {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 1.125rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
}

.pricing-card.premium .price {
    color: #8b5cf6;
}

.pricing-card.default .price {
    color: #6b7280;
}

.pricing-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

.pricing-note {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    margin-top: 3rem;
}

.pricing-note h3 {
    color: #1e40af;
    margin: 0 0 1rem 0;
}

.pricing-note p {
    margin: 0;
    line-height: 1.6;
    color: #374151;
}

@media (max-width: 768px) {
    .pricing-table-container {
        padding: 1rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        padding: 1rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .grid_container {
        grid-template-columns: 1fr;
    }
}

.alert-warning-forced {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.alert-warning-forced h3 {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-warning-forced .material-symbols-outlined {
    font-size: 32px;
}
/* .form-container : défini une seule fois, dans components/_form-field.css (doublon exact retiré le 19/10/2026). */

/* Footer */
footer {
    padding: 0 10px;
    color: var(--text-color-main);
    width: 100%;
    text-align: left;
}