/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

:root {
    --primary-color: #0B2545;
    --secondary-color: #8DA9C4;
    --bg-color: #F4F0E6;
    --text-color: #333;
    --text-light: #ccc;
    --text-dark: #555;
    --text-muted: #888;
    --white: #fff;
    --black: #000;
    --success-color: #27ae60;
    --hover-color: #1a4a8a;
    --border-color: #ddd;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-color);
}

/* --- HEADER (BANDEAU BLEU NUIT EN HAUT) --- */
header {
    background-color: #0b2d4f; 
    color: white;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 5px solid #A3CDE8;
}

/* --- TITRE ("TXIKITECH" DANS HEADER) --- */
@font-face {
    font-family: 'ElectricFont';  
    src: url('Font/electrIc\ kIckS.ttf'); 
}

.grand-titre {
    font-family: 'ElectricFont', sans-serif; 
    font-size: 70px;
    letter-spacing: 5px;
    margin: 0px;
}

/* --- LOGO (DANS HEADER) --- */
.logo {
    background-color: white; 
    margin-left: 50px;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 3px 6px;       
    border-radius: 15px;   
    display: flex;
    align-items: center;
}

.image-logo {
    height: 80px;    
    width: 100px; 
}

/* --- BOUTON POUR SE CONNECTER (DANS HEADER) --- */
.bouton-connexion {
    display: inline-block;       
    background-color: #A3CDE8;   
    border: 2px solid #0B2D4F;   
    border-radius: 10px;   
    margin-right: 30px;       
    
    color: #0B2D4F;                    
    font-family: 'Asap', sans-serif; 
    font-weight: bold;           
    font-size: 20px;             
    padding: 15px 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.bouton-connexion:hover {
    background-color: #8DA9C4;
    transform: scale(1.05);
}

/* --- INFO UTILISATEUR CONNECTÉ --- */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 30px;
}

.user-name {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

/* Main */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
}

/* Simulateur */
.simulateur-container {
    background-color: var(--primary-color);
    color: var(--white);
    width: 100%;
    max-width: 37.5rem;
    padding: 1.875rem;
    border-radius: 0.9375rem;
    box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.2);
    text-align: center;
}

.simulateur-container h2 {
    margin-bottom: 0.625rem;
    text-decoration: underline;
}

.simulateur-container > p {
    color: var(--text-light);
    margin-bottom: 1.875rem;
    font-size: 0.875rem;
}

/* Fieldset */
fieldset {
    border: 1px solid var(--secondary-color);
    border-radius: 0.5rem;
    padding: 0.9375rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

legend {
    font-weight: bold;
    color: var(--secondary-color);
    padding: 0 0.625rem;
}

fieldset > label {
    display: block;
    margin-bottom: 0.3125rem;
    font-weight: 500;
}

select {
    width: 100%;
    padding: 0.625rem;
    margin-bottom: 0.9375rem;
    border: 1px solid var(--text-light);
    border-radius: 0.3125rem;
    background-color: #f9f9f9;
    font-size: 0.875rem;
    color: var(--text-color);
}

optgroup {
    font-weight: bold;
    color: var(--primary-color);
}

/* Radio buttons */
.liste-choix {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.625rem;
    align-items: center;
}

.liste-choix input {
    cursor: pointer;
}

.liste-choix label {
    cursor: pointer;
}

/* Output */
.resultat-offre {
    display: block;
    width: 100%;
    background-color: var(--white);
    padding: 1.25rem;
    border-radius: 0.625rem;
    margin-top: 1.25rem;
    color: var(--black);
}

.resultat-offre h3 {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.3125rem;
}

.prix {
    font-size: 2rem;
    font-weight: bold;
    color: var(--success-color);
    margin: 0.625rem 0;
}

.btn-valider {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.875rem;
    border-radius: 0.3125rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-valider:hover {
    background-color: var(--hover-color);
}

.mentions-legales {
    margin-top: 0.625rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    min-height: 6.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.9375rem;
    padding: 1rem 2.5%;
}

footer > section,
footer > address {
    background-color: var(--secondary-color);
    border-radius: 0.625rem;
    min-height: 5rem;
    box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.625rem;
}

.bloc-gauche,
.bloc-droite {
    flex: 1;
}

.bloc-gauche {
    flex-direction: column;
}

.bloc-milieu {
    flex: 2.5;
    display: grid;
    grid-template-rows: auto repeat(3, auto);
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: column;
    align-content: center;
}

.bloc-milieu h3 {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0.125rem;
}

.bloc-droite {
    flex-direction: row;
    gap: 0.9375rem;
}

/* Footer typography */
footer h3 {
    font-size: 0.75rem;
    margin-bottom: 0.125rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: underline;
}

footer p {
    font-size: 0.625rem;
    line-height: 1.2;
    color: var(--black);
}

.titre-role {
    font-weight: bold;
    text-decoration: underline;
    font-size: 0.6875rem;
    color: var(--primary-color);
}

/* Social links */
footer a {
    text-decoration: none;
    color: var(--black);
    font-size: 0.625rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3125rem;
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    object-fit: contain;
}
