*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #0057A8;
    --blue-dark: #003D7A;
    --blue-light: #E8F2FF;
    --accent: #E8002D;
    --white: #ffffff;
    --gray: #f4f7fb;
    --text: #1a2336;
    --text-muted: #5a6a80;
}

body {
    font-family: 'Barlow', sans-serif;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
}

header {
    background: var(--blue-dark);
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo span {
    color: #6EC6FF;
}

.hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #1a8fd1 100%);
    color: var(--white);
    padding: 4rem 2rem 5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 2px;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.hero h1 em {
    color: #6EC6FF;
    font-style: normal;
}

.hero p {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 580px;
    margin: 0 auto 2rem;
    opacity: 0.92;
    line-height: 1.6;
}

.hero-cta {
    display: inline-block;
    background: var(--white);
    color: var(--blue-dark);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.85rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.hero-cta:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
}

.section {
    padding: 3.5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--blue-dark);
    letter-spacing: 0.04em;
    margin-bottom: 1.4rem;
    border-left: 4px solid var(--accent);
    padding-left: 0.8rem;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.model-card {
    background: var(--blue-light);
    border: 1.5px solid #c2d8f5;
    border-radius: 8px;
    padding: 1.1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.model-card .dot {
    width: 10px;
    height: 10px;
    background: var(--blue);
    border-radius: 50%;
    flex-shrink: 0;
}

.notice {
    background: #fff8e1;
    border-left: 4px solid #f5a623;
    border-radius: 0 6px 6px 0;
    padding: 1rem 1.2rem;
    font-size: 0.93rem;
    color: #7a5500;
    line-height: 1.5;
}

.notice strong {
    color: #5a3a00;
}

.safety-section {
    background: var(--gray);
    padding: 3.5rem 2rem;
}

.safety-inner {
    max-width: 900px;
    margin: 0 auto;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.safety-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.4rem 1.2rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 87, 168, 0.07);
    border-top: 3px solid var(--blue);
}

.safety-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

.safety-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--blue-dark);
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.safety-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-section {
    background: var(--blue-dark);
    padding: 4rem 2rem;
    color: var(--white);
}

.form-inner {
    max-width: 700px;
    margin: 0 auto;
}

.form-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.form-subtitle {
    font-size: 1rem;
    opacity: 0.75;
    margin-bottom: 2rem;
    font-weight: 300;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-error {
    color: #d93025;
    font-size: 0.875rem;
    display: block;
}

label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

input,
select {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: var(--white);
    font-family: 'Barlow', sans-serif;
    font-size: 0.97rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

input::placeholder {
    opacity: 0.45;
}

input:focus,
select:focus {
    border-color: #6EC6FF;
    background: rgba(255, 255, 255, 0.15);
}

select option {
    background: var(--blue-dark);
    color: var(--white);
}

.submit-btn {
    margin-top: 1.5rem;
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 1rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 18px rgba(232, 0, 45, 0.3);
}

.submit-btn:hover {
    background: #c0001e;
    transform: translateY(-2px);
}

.success-msg {
    display: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(110, 198, 255, 0.5);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
}

.success-msg .check {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.success-msg p {
    font-size: 1rem;
    opacity: 0.9;
}

footer {
    background: #0a1a2e;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.83rem;
}

footer a {
    color: #6EC6FF;
    text-decoration: none;
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-switch a {
    text-decoration: none;
    opacity: 0.6;
}

.lang-switch a.active {
    font-weight: bold;
    opacity: 1;
}

.popup-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #38a169; /* vert similaire à Tailwind bg-green-500 */
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}

.popup-error {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #e53e3e; /* rouge similaire à Tailwind bg-red-500 */
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Overlay semi-transparent */
.popup-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

/* Popup centrée avec fond blanc et bordure grise */
.popup-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 12px;
    z-index: 1000;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    width: auto;
    max-width: 500px; /* limite la largeur sur grand écran */
    min-width: 300px; /* largeur minimale */
    padding: 2rem 2.5rem;
    text-align: center;
    position: fixed; /* s'assurer que c'est bien fixe */
}

/* Bouton fermer en haut à droite */
.popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #333333;
    cursor: pointer;
    font-weight: bold;
}

/* Contenu */
.popup-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.popup-icon {
    font-size: 2rem;
}

.address-field, .date-field {
    display: none;
}

@media (max-width: 580px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: 1;
    }
}