/* ==========================================================================
   VARIABLES ET CONFIGURATION
   ========================================================================== */
:root {
    --primary: #003366;    /* Bleu Océan Profond */
    --accent: #fbc02d;     /* Or Premium */
    --secondary: #0056b3;  /* Bleu interactif */
    --light: #f4f7f9;      /* Gris bleuté clair */
    --text: #1a1a1a;       /* Texte principal */
    --text-muted: #666;
    --border: #e0e6ed;
    --white: #ffffff;
    --success: #4caf50;
    --error: #d32f2f;
}

body { 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    color: var(--text); 
    line-height: 1.6; 
    background-color: var(--white); 
}

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

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header { 
    border-bottom: 2px solid var(--accent); 
    padding: 15px 0; 
    background: var(--white); 
}

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

.logo a { 
    font-size: 26px; 
    font-weight: 800; 
    color: var(--primary); 
    text-decoration: none; 
}

.logo span { color: var(--accent); }

.main-nav ul { 
    list-style: none; 
    display: flex; 
    gap: 20px; 
    margin: 0; 
    padding: 0; 
    align-items: center;
}

.main-nav a { 
    text-decoration: none; 
    color: var(--text); 
    font-weight: 600; 
    transition: 0.3s;
}

.main-nav a:hover { color: var(--secondary); }

.btn-pro { 
    background: var(--primary); 
    color: var(--white) !important; 
    padding: 10px 20px; 
    border-radius: 8px; 
    transition: 0.3s;
}

.btn-pro:hover { background: var(--secondary); transform: translateY(-2px); }

/* ==========================================================================
   HERO BANNER (INDEX)
   ========================================================================== */
.hero-banner {
    background: radial-gradient(circle at center, #004080 0%, #00264d 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 3px solid var(--accent);
}

.hero-banner h1 {
    font-size: 3rem;
    font-weight: 850;
    margin: 0;
    letter-spacing: -1.5px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-banner p {
    font-size: 1.3rem;
    margin-top: 15px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   GRILLE ET CARTES (INDEX)
   ========================================================================== */
.pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pro-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.pro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,51,102,0.1);
    border-color: var(--secondary);
}

.card-image { height: 200px; background: #eee; overflow: hidden; position: relative; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.pro-card:hover .card-image img { transform: scale(1.1); }

.card-logo {
    height: 100px; /* Ajusté pour cohérence */
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.card-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.card-body { padding: 20px; flex-grow: 1; }
.card-badge {
    display: inline-block;
    background: #eef4ff;
    color: var(--secondary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.card-body h3 { margin: 0 0 8px 0; font-size: 1.25rem; color: var(--primary); }
.card-location { font-size: 0.95rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

.card-footer {
    padding: 15px 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
    text-align: right;
}

/* ==========================================================================
   RECHERCHE ET TAGS
   ========================================================================== */
.activity-cloud { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 20px 0 40px; }

.tag-link {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.tag-link:hover {
    border-color: var(--accent);
    background: #fffdf0;
    transform: scale(1.05);
}

/* ==========================================================================
   INSCRIPTION ET FORMULAIRES
   ========================================================================== */
.inscription-wrapper { background-color: var(--light); padding: 60px 0; }
.inscription-container { 
    max-width: 850px; margin: 0 auto; padding: 40px; 
    background: var(--white); border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

.form-group { margin-bottom: 25px; }
label { display: block; font-weight: 700; margin-bottom: 10px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea { 
    width: 100%; padding: 14px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; box-sizing: border-box;
}

input:required { border-left: 4px solid #ddd; }
input:required:valid { border-left: 4px solid var(--success); }

.required { color: var(--error); font-weight: bold; margin-left: 4px; }

/* Blocs de réassurance */
.trust-note {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 15px; margin: 15px 0; border-radius: 8px; border-left: 5px solid var(--secondary);
    background: #f0f7ff; font-size: 0.9rem;
}
.trust-note.edit-note { background: #fdf8e4; border-left-color: var(--accent); }
.trust-note.payment-note { background: #f4f4f4; border-left-color: #333; margin-bottom: 30px; }
.trust-note p { margin: 0; }
.trust-note strong { color: var(--primary); }

/* Badge Promo */
.promo-badge {
    background: #fff9c4; border: 2px dashed var(--accent);
    padding: 30px; border-radius: 15px; text-align: center; margin: 30px auto;
    box-shadow: 0 4px 15px rgba(251, 192, 45, 0.2);
}
.new-price { color: var(--error); font-size: 2.5rem; font-weight: 900; }

/* Bouton Validation Océan */
.btn-submit {
    display: block; width: 100%; padding: 20px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #004080 100%);
    color: var(--white); font-size: 1.3rem; font-weight: 800; text-transform: uppercase;
    cursor: pointer; box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3); transition: 0.3s;
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 51, 102, 0.4); }

/* ==========================================================================
   FICHE ENTREPRISE DÉTAILLÉE
   ========================================================================== */
.pro-fiche { padding: 40px 0; }
.fiche-grid { display: grid; grid-template-columns: 1fr 350px; gap: 40px; }
.slider-container { border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15); background: #000; position: relative; }
.slide { width: 100%; height: 500px; object-fit: cover; }

.sticky-card { position: sticky; top: 30px; background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 30px; }

.btn-contact.main { 
    display: block; text-align: center; padding: 15px; background: var(--primary); 
    color: var(--white); text-decoration: none; border-radius: 10px; font-weight: 700; 
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer { background: var(--light); padding: 80px 0 30px; margin-top: 80px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.footer-bottom { text-align: center; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 20px; margin-top: 40px; }
/* ==========================================================================
   PAGE TARIFS & OFFRES (offres-pub.php)
   ========================================================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 25px;
    margin-top: 40px;
    align-items: stretch;
}

.price-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Carte "Saga" mise en avant */
.price-card.featured {
    border: 3px solid var(--accent);
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.15);
    transform: scale(1.05);
    z-index: 10;
}

.badge-featured {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.price-header { margin-bottom: 20px; }
.price-header h3 { color: var(--primary); font-size: 1.4rem; margin: 0 0 10px 0; font-weight: 800; }
.price { font-size: 2.8rem; font-weight: 900; color: var(--text); line-height: 1; }
.price small { font-size: 1rem; color: var(--text-muted); }

/* --- ALIGNEMENT DES ARGUMENTS --- */
.price-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    flex-grow: 1;
}

.price-features li {
    min-height: 42px; /* Force l'alignement horizontal entre les cartes */
    display: flex;
    align-items: center;
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
    color: #444;
    border-bottom: 1px solid rgba(0,0,0,0.03); /* Ligne de lecture subtile */
}

/* L'icône Checkmark */
.price-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 900;
}

/* On cache le checkmark si la ligne est vide (pour l'alignement) */
.price-features li:empty::before { display: none; }

.price-features li strong { color: var(--primary); }

/* Argument Spécifique : Lien fiche pro (le dernier de la liste) */
.price-features li.link-pro {
    border-top: 1px dashed var(--border);
    border-bottom: none;
    padding-top: 10px;
    margin-top: 5px;
    color: var(--secondary);
    font-weight: 600;
}

/* --- BLOCS PROMO --- */
.promo-box {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    min-height: 60px; /* Aligne le bas des blocs promo */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1.3;
    border: 1px dashed var(--accent);
    background: #fffdf0;
}

.promo-box p { font-weight: 800; margin: 0; text-align: center; }

/* Styles spécifiques par offre */
.launching { background: #e3f2fd; border-color: #2196f3; }
.member-offer { background: #fff9c4; border-color: var(--accent); }
.saga-offer { background: #f5f5f5; border-color: #333; }

/* --- BOUTONS --- */
.price-card .btn-submit {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 18px 10px;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    margin-top: auto; /* Pousse le bouton en bas */
    transition: 0.3s;
}

.btn-submit.secondary-btn { background: var(--secondary); color: white; }
.btn-submit.accent-btn { background: var(--accent); color: var(--primary); }

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .price-card.featured { transform: scale(1); margin: 20px 0; }
    .pricing-grid { gap: 20px; padding: 0 10px; }
    .price-features li { min-height: auto; padding: 10px 0 10px 28px; }
}
/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 850px) {
    .fiche-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-banner h1 { font-size: 2.2rem; }
    .slide { height: 300px; }
}