/* ============================================
   STYLES POUR PAGES INTERNES
   (Terms, Privacy, Contact, etc.)
   ============================================ */

/* ============================================
   POLICES POUR PAGES INTERNES
   ============================================ */

/* Surcharge pour utiliser des polices système plus lisibles */
.page-container,
.page-container p,
.page-container li {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ============================================
   CONTAINERS ET LAYOUT
   ============================================ */

/* Container principal */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 300px);
}

/* Wrapper pour le contenu (limité en largeur) */
.page-content-wrapper {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
}

/* ============================================
   EN-TÊTE DE PAGE
   ============================================ */

.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #00d4ff 0%, #9b59b6 100%) 1;
    max-width: 100%;
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-family: 'TitleFont', 'Impact', sans-serif;
    color: white;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

body.light-mode .page-header h1 {
    color: #2d2d2d;
    filter: none;
}

.page-header p {
    font-size: 1.1em;
    color: #aaa;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body.light-mode .page-header p {
    color: #666;
}

/* ============================================
   SECTIONS DE CONTENU
   ============================================ */

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    font-family: 'TitleFont', 'Impact', sans-serif;
    color: white;
}

body.light-mode .content-section h2 {
    color: #2d2d2d;
}

.content-section h3 {
    font-size: 1.4em;
    margin: 25px 0 15px 0;
    font-family: 'TitleFont', 'Impact', sans-serif;
    color: white;
}

body.light-mode .content-section h3 {
    color: #2d2d2d;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-section ul, 
.content-section ol {
    margin: 15px 0 15px 30px;
    line-height: 1.8;
}

.content-section li {
    margin-bottom: 10px;
}

/* ============================================
   PAGE CONTACT - LAYOUT 2/3 - 1/3
   ============================================ */

/* Layout avec formulaire à gauche et infos à droite */
.contact-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    width: 100%;
}

.contact-form-section {
    flex: 2;
    min-width: 0;
    overflow-wrap: break-word;
}

.contact-info-section {
    flex: 1;
    overflow-y: auto;
    max-height: 450px;
    padding-right: 10px;
    min-width: 0;
    overflow-wrap: break-word;
}

.contact-info-section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    font-family: 'TitleFont', 'Impact', sans-serif;
    color: white;
}

body.light-mode .contact-info-section h2 {
    color: #2d2d2d;
}

.contact-info-section .info-box {
    margin-bottom: 15px;
}

.contact-info-section .info-box h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
    font-family: 'TitleFont', 'Impact', sans-serif;
    color: white;
}

body.light-mode .contact-info-section .info-box h3 {
    color: #2d2d2d;
}

.contact-info-section .info-box p {
    margin: 0;
    font-size: 0.95em;
}

/* ============================================
   FORMULAIRE DE CONTACT
   ============================================ */

.contact-form {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

body.light-mode .contact-form {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-family: 'TitleFont', 'Impact', sans-serif;
    color: white;
}

body.light-mode .form-group label {
    color: #2d2d2d;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    font-family: inherit;
    font-size: 1em;
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: white;
    color: #2d2d2d;
    border-color: #ccc;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Bouton de soumission */
.submit-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #9b59b6 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.5);
}

/* ============================================
   BOÎTES D'INFORMATION
   ============================================ */

/* Boîte info générale (bleue) */
.info-box {
    background: rgba(0, 212, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #00d4ff;
    margin: 20px 0;
}

body.light-mode .info-box {
    background: rgba(0, 212, 255, 0.15);
}

/* Boîte CTA (jaune) */
.cta-section {
    background: rgba(255, 215, 0, 0.08);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
    margin: 20px 0;
}

body.light-mode .cta-section {
    background: rgba(255, 215, 0, 0.12);
}

.cta-section p {
    line-height: 1.6;
    margin: 0;
}

/* Boîte warning (orange) */
.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

/* Boîte succès (verte) */
.success-box {
    background: rgba(76, 175, 80, 0.1);
    border-left-color: #4caf50;
}

/* ============================================
   SCROLLBAR PERSONNALISÉE
   ============================================ */

.contact-info-section::-webkit-scrollbar {
    width: 8px;
}

.contact-info-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.contact-info-section::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 10px;
}

.contact-info-section::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* ============================================
   CALCULATRICE (PAGE BLOPEUR)
   ============================================ */

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.calculator-input,
.calculator-output {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

body.light-mode .calculator-input,
body.light-mode .calculator-output {
    background: rgba(255, 255, 255, 0.5);
}

.calculator-output h3 {
    color: #00d4ff;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-value {
    font-weight: bold;
    color: #9b59b6;
}

/* ============================================
   RESPONSIVE POUR PAGES INTERNES
   ============================================ */

/* Tablettes (968px et moins) */
@media (max-width: 968px) {
    .contact-layout {
        flex-direction: column;
    }
    
    .contact-form-section,
    .contact-info-section {
        flex: 1;
    }
}

/* Mobiles (768px et moins) */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2em;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 20px;
    }
}
