/*==================================================
  =          SWISSNORTON           =
  ==================================
	
  Créé le : 17.12.2025
  Mis à jour le : 12.02.2026
  Par : Rui Dos Santos
  
  page : ./assets/css/pages_texte.css
==================================================*/

/* =====================================
	CONTENEUR PRINCIPAL
===================================== */
.espace-texte {
	max-width: var(--container-width);
    margin: var(--margin-top) auto;
    padding: 0 2rem;
	line-height: var(--line-height-normal);
}

/* Titre principal */
.espace-texte-header h1 {
    color: var(--primary-red);
    font-size: var(--font-size-3xl);
    text-align: center;
}
.espace-texte-header h1::after {
  content: "";
  display: block;
  width: 50%;
  margin: 0 auto;
  border-bottom: 3px solid var(--primary-red);
}

.espace-texte-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 2.5rem 0;
}

.page_texte {
	min-height: calc(100vh - 200px);
    padding: 0 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}

/* Date de mise à jour */
.date-maj {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Sections */
.texte-section {
    margin-bottom: 2rem;
}

.texte-section h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
}

.texte-section h3 {
    color: #666;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

/* Paragraphes */
.texte-section p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Listes */
.texte-section ul {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.7;
}

.texte-section li {
    color: #444;
    margin-bottom: 0.5rem;
}

/* Mise en évidence */
.texte-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Section de téléchargement */
.download-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.download-box {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c62828 100%);
    color: var(--text-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.3);
}

.download-box svg {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.download-box h3 {
    color: var(--text-light) !important;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0 !important;
    border: none !important;
    padding: 0 !important;
    font-weight: 600;
}

.download-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    padding: 0 !important;
    line-height: 1.5;
}

.download-box .btn {
    display: inline-block;
    padding: 0.75rem 1rem;
    background-color: var(--text-light);
    color: var(--primary-red);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition-standard);
    border: 2px solid transparent;
}

.download-box .btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.3);
}

.download-box .btn:focus-visible {
    outline: 2px solid var(--text-light);
    outline-offset: 2px;
}

/* Lien spécial rouge dans le texte */
a.lien-rouge {
    color: var(--accent-red);
    font-weight: 600;
}

/* ========================================
   RESPONSIVE TABLETTE (768px et moins)
======================================== */
@media screen and (max-width: 768px) {
    .page_texte {
        max-width: 95%;
        margin: calc(55px + 20px) auto 20px;
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .page_texte h1 {
        font-size: 1.75rem;
        margin-bottom: 0.875rem;
        padding-bottom: 0.875rem;
        border-bottom-width: 2px;
    }
    
    .date-maj {
        font-size: 0.85rem;
        margin-bottom: 1.75rem;
    }
    
    .texte-section {
        margin-bottom: 1.5rem;
    }
    
    .texte-section h2 {
        font-size: 1.4rem;
        margin-bottom: 0.875rem;
        padding-bottom: 0.5rem;
    }
    
    .texte-section h3 {
        font-size: 1.2rem;
        margin: 1.25rem 0 0.625rem 0;
    }
    
    .texte-section p {
        font-size: 0.95rem;
        line-height: 1.65;
    }
    
    .texte-section ul {
        margin: 0.875rem 0 0.875rem 1.5rem;
        line-height: 1.65;
    }
    
    .texte-section li {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .download-section {
        margin-top: 2rem;
    }
    
    .download-box {
        padding: 1.5rem;
    }
    
    .download-box h3 {
        font-size: 1.3rem;
    }
    
    .download-box .btn {
        width: 80%;
        padding: 0.5rem 0.875rem;
    }
}

/* ========================================
   RESPONSIVE MOBILE (480px et moins)
======================================== */
@media screen and (max-width: 480px) {
    .page_texte {
        max-width: 100%;
        margin: calc(50px + 10px) 0.5rem 20px;
        padding: 1.25rem;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .page_texte h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .date-maj {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .texte-section {
        margin-bottom: 1.25rem;
    }
    
    .texte-section h2 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.4rem;
    }
    
    .texte-section h3 {
        font-size: 1.15rem;
        margin: 1rem 0 0.5rem 0;
    }
    
    .texte-section p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 0.875rem;
    }
    
    .texte-section ul {
        margin: 0.75rem 0 0.75rem 1.25rem;
        line-height: 1.7;
    }
    
    .texte-section li {
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
    }
    
    .download-section {
        margin-top: 1.5rem;
    }
    
    .download-box {
        padding: 1.25rem;
    }
    
    .download-box svg {
        width: 40px;
        height: 40px;
    }
    
    .download-box h3 {
        font-size: 1.2rem;
    }
    
    .download-box p {
        font-size: 0.9rem;
    }
}

/* ========================================
   RESPONSIVE TRÈS PETIT (360px et moins)
======================================== */
@media screen and (max-width: 360px) {
    .page_texte {
        margin: calc(48px + 10px) 0.25rem 15px;
        padding: 1rem;
        border-radius: 4px;
    }
    
    .page_texte h1 {
        font-size: 1.35rem;
        padding-bottom: 0.625rem;
    }
    
    .date-maj {
        font-size: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    .texte-section h2 {
        font-size: 1.2rem;
    }
    
    .texte-section h3 {
        font-size: 1.05rem;
    }
    
    .texte-section p {
        font-size: 0.85rem;
    }
    
    .texte-section ul {
        margin: 0.625rem 0 0.625rem 1rem;
    }
    
    .texte-section li {
        font-size: 0.85rem;
    }
    
    .download-box {
        padding: 1rem;
    }
    
    .download-box h3 {
        font-size: 1.1rem;
    }
}

/* ========================================
   IMPRESSION
======================================== */
@media print {
    .page_texte {
        max-width: 100%;
        margin: 0;
        padding: 1rem;
        box-shadow: none;
        border: none;
    }
    
    .page_texte h1 {
        color: #000;
        border-bottom-color: #000;
    }
    
    .texte-section h2 {
        color: #000;
        page-break-after: avoid;
    }
    
    .texte-section h3 {
        page-break-after: avoid;
    }
    
    .texte-section {
        page-break-inside: avoid;
    }
    
    .download-box {
        display: none;
    }
    
    .texte-section a {
        color: #000;
        text-decoration: underline;
    }
    
    .texte-section a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}