/* assets/css/style.css - Styles principaux */

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5f7a 100%);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
}

/* ===== MENU HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #2a5f7a 0%, #1a3a5c 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ===== SEARCH BOX ===== */
.search-box {
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-box form {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
}

.search-box button {
    padding: 15px 30px;
    background: #ffd700;
    color: #1a3a5c;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #ffed4a;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: #ffd700;
    color: #1a3a5c;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary:hover {
    background: #ffed4a;
}

.btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid #fff;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 16px;
}

.btn-secondary:hover {
    background: #fff;
    color: #1a3a5c;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FORMULAIRE ===== */
.form-section {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.form-section h2 {
    color: #1a3a5c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2f7;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.form-group label .optional {
    font-weight: normal;
    color: #888;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e5ec;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2a5f7a;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group .help-text {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

/* ===== POINTS GPS ===== */
.gps-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gps-point {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e0e5ec;
}

.gps-point .point-name {
    font-weight: bold;
    color: #2a5f7a;
    margin-bottom: 10px;
}

.gps-point .coord {
    font-family: monospace;
    font-size: 14px;
    color: #555;
    margin: 5px 0;
}

.btn-geoloc {
    background: #2a5f7a;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
}

.btn-geoloc:hover {
    background: #1a3a5c;
}

/* ===== SUPERFICIE ===== */
.superficie-resultat {
    background: #e8f0fe;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #1a3a5c;
}

/* ===== UPLOAD ===== */
.upload-area {
    border: 2px dashed #e0e5ec;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: #2a5f7a;
}

.upload-area .upload-icon {
    font-size: 40px;
    color: #2a5f7a;
}

.upload-area p {
    color: #888;
    margin-top: 10px;
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.upload-preview .preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e5ec;
}

.upload-preview .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview .preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,0,0,0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== VOISINS ===== */
.voisin-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* ===== RESULTATS DE RECHERCHE ===== */
.dossier-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.dossier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #eef2f7;
    margin-bottom: 15px;
}

.dossier-header h3 {
    color: #1a3a5c;
}

.badge {
    background: #2a5f7a;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
}

.info-row .label {
    font-weight: 600;
    min-width: 150px;
    color: #555;
}

.photos-thumbnails {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.photos-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e5ec;
}

/* ===== AVOCATS ===== */
.avocats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.avocat-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.avocat-card:hover {
    transform: translateY(-5px);
}

.avocat-header h3 {
    color: #1a3a5c;
}

.avocat-header .cabinet {
    color: #888;
    font-size: 14px;
}

.avocat-body p {
    margin: 8px 0;
}

.avocat-body .label {
    font-weight: 600;
    margin-right: 5px;
}

/* ===== PAIEMENT ===== */
.options-paiement {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.btn-paiement {
    display: block;
    padding: 30px;
    text-align: center;
    background: #fff;
    border: 2px solid #e0e5ec;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.btn-paiement:hover {
    border-color: #2a5f7a;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-paiement .icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.btn-paiement .label {
    font-size: 20px;
    font-weight: 600;
    display: block;
}

.btn-paiement .description {
    font-size: 14px;
    color: #888;
}

.montant {
    text-align: center;
    padding: 20px;
    background: #e8f0fe;
    border-radius: 10px;
    margin: 20px 0;
}

.montant .label {
    font-size: 18px;
    color: #555;
}

.montant .prix {
    font-size: 28px;
    font-weight: bold;
    color: #1a3a5c;
    margin-left: 15px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== FOOTER ===== */
footer {
    background: #1a3a5c;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #1a3a5c;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    }
    
    nav ul.open {
        display: flex;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .search-box form {
        flex-direction: column;
    }
    
    .search-box button {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .gps-points {
        grid-template-columns: 1fr;
    }
    
    .voisin-row {
        grid-template-columns: 1fr;
    }
    
    .options-paiement {
        grid-template-columns: 1fr;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-row .label {
        min-width: auto;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .dossier-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 25px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}
/* Dans assets/css/style.css */
.logo-hero {
    max-width: 250px;   /* Ajustez selon la taille souhaitée */
    height: auto;       /* Maintient les proportions */
    display: block;
    margin: 0 auto 20px; /* Centré avec marge en bas */
}

/* Version mobile */
@media (max-width: 768px) {
    .logo-hero {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .logo-hero {
        max-width: 140px;
    }
}
/* Correction du texte du bouton */
.btn-primary {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-secondary {
    color: #1a3a5c !important;
    font-weight: 600 !important;
}

/* Bouton Payer maintenant */
.btn-payer {
    background: #28a745 !important;
    color: #ffffff !important;
    font-size: 20px !important;
    padding: 20px 50px !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-payer:hover {
    background: #218838 !important;
}