/* Réinitialisation et styles de base - Charte Portulan */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --royal-blue: #0b3c95;
    --royal-dark: #07265f;
    --royal-light: #ebf1fa;
    --text-dark: #1a202c;
    --text-muted: #4a5568;
    --border-color: #e2e8f0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
}

/* Barre de Navigation Supérieure Harmonisée */
nav {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Aligne le logo à gauche et les liens à droite */
    align-items: center;
    padding: 22px 30px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95em;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--royal-blue);
}

/* Badge Status de prélancement dans le menu */
.btn-status {
    background-color: var(--royal-light);
    color: var(--royal-blue);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    border: 1px solid #cce3ff;
    text-transform: uppercase;
}

/* Conteneur principal centré */
.container {
    max-width: 850px;
    margin: auto;
    width: 100%;
    padding: 40px 20px;
}

/* Présentation du Manifeste */
.manifesto-box {
    background-color: var(--royal-light);
    border-left: 5px solid var(--royal-blue);
    padding: 40px;
    border-radius: 0 6px 6px 0;
    text-align: left;
    margin-top: 20px; /* Remplace proprement le sélecteur d'alignement automatique */
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(11, 60, 149, 0.02);
}
.manifesto-box p {
    font-size: 1.15rem;
    color: var(--royal-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}
.manifesto-box p:last-of-type {
    margin-bottom: 0;
}
.manifesto-box p.lead {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--royal-blue);
    line-height: 1.5;
}
.manifesto-box strong {
    color: var(--royal-blue);
    font-weight: 700;
}
.manifesto-box.box-action {
    margin-top: 80px;
    margin-bottom: 60px;
    text-align: center;
    background: transparent; /* Supprime la boîte lourde */
    border: none; /* Élimine les bordures */
    box-shadow: none; /* Zéro relief */
    padding: 0;
}
.manifesto-box.box-action p.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 25px;
}
.manifesto-box.box-action .btn-wrapper {
    display: inline-block;
}
/* Surcharge propre du bouton existant pour cet appel spécifique */
.manifesto-box.box-action .form-submit-btn {
    display: block;
    text-decoration: none;
    padding: 12px 35px;
    height: auto;
    line-height: normal;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color); /* Ajoute de l'assise sur fond blanc */
}


/* Indicateur Exclusif de Lancement */
.badge {
    display: inline-block;
    margin-bottom: 25px; 
    padding: 6px 14px;
    background-color: white;
    color: var(--royal-blue);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Signature de Marque Harmonisée PORTULAN.QUEBEC */
.brand-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}
.brand-title span {
    font-weight: 100;
    font-size: 0.9em;
    opacity: 0.8;
}

/* ==========================================================================
   ARCHITECTURE DU FORMULAIRE DE PRÉLANCEMENT (UX CONSTRASTE UNIQUE)
   ========================================================================== */

/* Accentuation de la boîte d'action principale */
.form-container {
    background-color: var(--royal-dark) !important; /* Force la couleur bleu nuit (#07265f) */
    padding: 55px 50px !important;                 /* Restaure l'enveloppe large d'origine */
    border: none !important;
    border-radius: 6px !important;                  /* Arrondit proprement les coins */
    box-shadow: 0 15px 35px rgba(7, 38, 95, 0.15) !important; /* Recrée l'ombre portée */
    text-align: left !important;
    width: 100% !important;
    
    /* PROTECTION MOBILES UNIFIÉE */
    color-scheme: dark !important;                  /* Bloque définitivement le blanchiment sur Brave mobile */
}


.form-container h2 {
    color: #ffffff !important;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    margin-bottom: 25px;
}

/* Entête et mise en forme des textes du formulaire */
.form-header {
    text-align: center;
    padding: 15px 0 25px 0;
}

.form-header .brand-title {
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.2;
}

/* Entête spécifique et messages de l'écran de confirmation */
.form-merci {
    font-size: 1.5rem;
    line-height: 1.7;
    color: #ffffff;                
    opacity: 0.9;
    margin-top: 0;
    margin-bottom: 20px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.form-merci-small {
    font-size: 1.0rem;
    line-height: 1.7;
    color: #ffffff;                
    opacity: 0.9;
    margin-top: 0;
    margin-bottom: 20px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}


.form-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #ffffff;                
    opacity: 0.9;
    margin-top: 0;
    margin-bottom: 20px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}



.form-lead-in {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;                
    margin-top: 0;
    margin-bottom: 20px;
    text-wrap: balance;
}

/* Alignement en ligne du champ courriel et du bouton */
.form-group-inline {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.form-input-email {
    flex: 1;
    padding: 14px 18px;
    font-size: 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    outline: none;
    background-color: #ffffff;
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.form-input-email:focus {
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 3px rgba(235, 241, 250, 0.2);
}

/* Métamorphose du badge d'ouverture */
/**
.badge {
    display: inline-block;
    margin-bottom: 25px; 
    padding: 6px 14px;
    background-color: var(--royal-blue);
    color: #ffffff;
    font-size: 2.0rem;
    font-weight: 700;
    border-radius: 4px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}
**/






.badge {
    display: inline-block;
    margin-bottom: 25px; 
    padding: 8px 16px;
    background-color: #ffffff;       /* Fond blanc pour un contraste marketing maximal */
    color: var(--royal-blue);
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    animation: pulse-marketing 2s infinite; /* Effet de signal radar actif */
}




@keyframes pulse-marketing {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Cadre de Consentement Légitime (Loi 25) - Déclaration Unique et Étanche */
.law25-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    color: #ffffff;
    opacity: 0.85;
    line-height: 1.5;
}

.law25-consent input[type="checkbox"] {
    color-scheme: light !important; /* Force le navigateur à restituer la case blanche native */
    accent-color: var(--royal-blue); /* Colore le crochet de validation en bleu */
    width: 18px !important;
    height: 18px !important;
    cursor: pointer;
}


.law25-consent input {
    margin-top: 4px;
    cursor: pointer;
}

.law25-consent label {
    cursor: pointer;
}

.law25-consent a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.law25-consent a:hover {
    opacity: 0.8;
}

/* Bouton d'action principal contrasté */
.form-submit-btn {
    background-color: #ffffff;
    color: var(--royal-dark);
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.form-submit-btn:hover {
    background-color: var(--royal-light);
    color: var(--royal-blue);
}


/* Style du footer de prélancement */
footer {
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    background-color: #ffffff;
    text-align: center;
}
.footer-links-inline {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.footer-links-inline a {
    color: var(--royal-blue);
    text-decoration: none;
    font-weight: 500;
}
.footer-links-inline a:hover {
    text-decoration: underline;
}
.copyright-text {
    color: #888888;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* ==========================================================================
   BLOC PERSONAS - GLOBAL (ÉCRANS LARGES ET DE BUREAU)
   ========================================================================== */
.personas-grid-container {
    display: block;
    clear: both;
    margin-top: 40px;
    margin-bottom: 50px;
    width: 100%;
}

/* Rétablissement de l'affichage optimal du titre principal */
.personas-main-title {
    font-size: 1.25rem;
    color: var(--royal-blue);
    font-weight: 700;
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.personas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.persona-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 35px 30px;
    border-radius: 4px;
    text-align: left;
}

/* Ligne d'accroche marketing en tête de boîte (Titre de carte supprimé) */
.persona-card-tagline {
    display: block;                  
    font-size: 1.05rem;              
    color: var(--royal-blue);        
    font-weight: 700;                
    margin-top: 0;                   
    margin-bottom: 15px;             
    letter-spacing: -0.1px;
}

.persona-card-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Bloc d'alerte et de rétroaction des erreurs PHP */
.error-message-box {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
}


/* ==========================================================================
   ADAPTABILITÉ SÉCURISÉE COMPLÈTE - MOBILE & TACTILE (VERSION UNIFIÉE DE RENTRÉE)
   ========================================================================== */

/* Bloque le glissement latéral de droite à gauche sur iPhone et Pixel 6a */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* ==========================================================================
   ADAPTABILITÉ SÉCURISÉE COMPLÈTE - MOBILE & TACTILE (VERSION UNIFIÉE DE RENTRÉE)
   ========================================================================== */

/* Bloque le glissement latéral de droite à gauche sur iPhone et Pixel 6a */
html, body {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    /* 1. RESTAURATION DU MENU DE NAVIGATION ADAPTATIF */
    .nav-container {
        flex-direction: column !important; /* Force l'affichage des liens SOUS le logo */
        gap: 12px !important;
        padding: 15px 10px !important;
    }
    
    .nav-links {
        display: flex !important;
        flex-direction: row !important; /* Aligne les liens sur une seule ligne centrée */
        justify-content: center !important;
        gap: 15px !important;
        width: 100% !important;
        flex-wrap: wrap !important; /* Gère le repli si l'écran est ultra-étroit */
    }
    
    .nav-links a {
        font-size: 0.85em !important;
    }
    
    .nav-links .btn-status {
        padding: 6px 12px !important;
        font-size: 0.8em !important;
    }

    /* 2. ADAPTATION STRUCTURELLE DES CONTENEURS */
    .container {
        padding: 15px !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .manifesto-box { 
        padding: 25px !important; 
    }
    
    .manifesto-box p.lead { font-size: 1.15rem !important; }
    .manifesto-box p { font-size: 1.05rem !important; }
    
    .form-container { 
        padding: 30px 20px !important; 
    }
    
    .form-group-inline { 
        flex-direction: column !important; 
        gap: 15px !important; 
    }
    
    .form-input-email,
    .form-submit-btn { 
        width: 100% !important; 
    }
    
    .footer-links-inline { 
        flex-direction: column !important; 
        gap: 12px !important; 
    }

    /* 3. BLINDAGE DE SÉCURITÉ DE LA ZONE C (FIN DES COLLISIONS ET COMPRESSION) */
    .manifesto-box.box-action {
        height: auto !important;
        padding: 20px !important;
        display: block !important;
    }
    
    .form-merci {
        font-size: 1.25rem !important; /* Réduction légère de la police sur mobile */
        line-height: 1.5 !important;
    }

    .box-action .btn-wrapper {
        position: relative !important;
        margin-top: 20px !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        clear: both !important;
    }

    /* Rend le texte du bouton sécable pour empêcher le débordement horizontal */
    .box-action .form-submit-btn {
        display: block !important;
        width: 100% !important;
        white-space: normal !important; /* Autorise l'enroulement fluide du texte */
        padding: 14px 15px !important;   /* Réduit le padding pour rester dans le cadre */
        text-align: center !important;
        font-size: 0.95rem !important;
        position: relative !important;
    }
}






