/**
 * app.css
 * Règles CSS pour le site d'inscription aux listes électorales
*/

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

@font-face {
    font-family: 'Cerebri Sans Pro';
    src: url('/assets/fonts/CerebriSansPro-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cerebri Sans Pro';
    src: url('/assets/fonts/CerebriSansPro-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Klein Condensed';
    src: url('/assets/fonts/KleinCondensed-Extrabold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --klein: "Klein Condensed", sans-serif;
    --cerebri: "Cerebri Sans Pro", sans-serif;
    --vert-sapin: #4A7856;
    --vert-printemps: #4AB165;
    --vert-pale: #BDDFBF;
    --gris-violet: #6D6475;
    --violet-profond: #4E1C6F;
    --lavande-claire: #BC9AFF;
    --blanc-pur: #FFFFFF;
    --beige-poudre: #F5E9DD;
    --beige-sable: #D6C6B8;
    --corail-doux: #D48467;
    --rouge-brick: #A94C58;
    --mauve-fume: #9888A1;
}

body {
    font-family: var(--cerebri), sans-serif;
    background: linear-gradient(-123deg, var(--gris-violet) 0%, var(--violet-profond) 100%);
    color: #333;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--klein) !important;
    color: var(--violet-profond) !important;
    font-weight: normal;
}

h2 {
    font-size: 25px !important;
    margin-bottom: 15px;
}

#pdfForm h4 {
    margin-bottom: 10px;
}

#pdfForm label {
    font-size: 13px;
}

#pdfForm input,
#pdfForm select {
    font-size: 13px;
    border-color: var(--violet-profond);
    border-width: 1px;
    border-radius: 15px;
}

.color {
    color: var(--violet-profond);
}

header {
	padding: 20px 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 861px;
	margin: 0 auto;
	margin-bottom: -30px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 0px 0px 15px 15px;
	margin-bottom: 0px;
}

.header-btn {
    background-color: #6b4c8a;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.header-btn:hover {
    background-color: #7d5a99;
}

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

.main-card {
    background-color: var(--beige-poudre);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.intro-card {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.intro-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.intro-content h2 {
	font-size: 25px;
	margin-bottom: 10px;
}

.intro-content p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-primary {
	background-color: var(--violet-profond);
	color: white;
	padding: 12px 30px;
	border-radius: 25px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	font-weight: 600;
	display: inline-block;
	transition: background-color 0.3s;
	margin-bottom: 5px;
}

.btn-primary:hover {
    background-color: #7d5a99;
}

.section {
    margin-top: 50px;
    margin-bottom: 30px;
    color: white !important;
}

.section .white-title {
    font-size: 22px;
    color: white !important;
}

.section .white-desc {
    color: white !important;
}

.section-title {
    
    font-size: 20px;
    margin-bottom: 20px;
    margin-top: 30px;
}

.content-text {
    color: #333;
    line-height: 1.7;
    margin-bottom: 15px;
}

.content-text.form {
    font-size: 13px !important;
    color: #333;
}

hr {
    border: none;
    border-top: 2px solid var(--violet-profond);
    margin: 10px 0;
}

.highlight {
    font-weight: 600;
    color: var(--violet-profond)
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.card-icon {
	width: 24px;
	height: 24px;
	margin-top: -4px;
}

.action-card {
    background-color: #f5f1e8;
    border: 2px solid #d4c4b0;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
}

.action-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.action-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.action-card .btn-primary {
    width: 100%;
    text-align: center;
}

.form-section h3 {
    
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 700;
}

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

.form-group label {
    display: block;
    color: #333;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

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

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

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="file"],
select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #d4c4b0;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    color: #333;
    transition: border-color 0.3s;
}

input:focus,
select:focus {
    outline: none;
    border-color: #6b4c8a;
    box-shadow: 0 0 5px rgba(107, 76, 138, 0.2);
}

.radio-group,
.gender-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-group label,
.gender-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

input[type="radio"] {
    width: auto;
    border: none;
    cursor: pointer;
}

.option-btn {
	display: block;
	width: 100%;
	padding: 15px 15px;
	margin-bottom: 12px;
	border: 3px solid #6b4c8a;
	background-color: white;
	color: #999;
	border-radius: 25px;
	cursor: pointer;
	font-size: 16px;
	text-align: center;
	transition: all 0.3s;
	font-weight: 500;
	font-family: var(--cerebri);
}

.option-btn:hover {
    background-color: #f5f1e8;
}

.option-btn.active {
    background-color: #6b4c8a;
    color: white;
    border-color: #6b4c8a;
}

.gender-btn {
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	border: 3px solid #6b4c8a;
	background-color: white;
	color: #999;
	font-size: 15px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s;
	display: inline-block;
	margin-right: 15px;
	font-family: var(--cerebri);
	padding-top: 3px;
    margin-bottom: 5px;
}

.gender-btn:hover {
    background-color: #f5f1e8;
}

.gender-btn.active {
    background-color: #6b4c8a;
    color: white;
    border-color: #6b4c8a;
}

.note {
    background-color: #f0ead8;
    border-left: 4px solid #6b4c8a;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.submit-btn {
    background-color: var(--violet-profond);
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    font-family: var(--cerebri-pro), sans-serif;
    cursor: pointer;
    margin-top: 30px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #7d5a99;
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.footer-logos img {
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-logos img:hover {
    opacity: 1;
}

footer {
    background-color: #3a2d47;
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 13px;
}

footer a {
    color: #d4c4b0;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.social-footer {
    margin-top: 15px;
}

.social-footer a {
    margin: 0 8px;
}

@media (max-width: 768px) {

    .cards-grid,
    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .intro-card {
        flex-direction: column;
        text-align: center;
    }

    .intro-card img {
        margin: 0 auto;
    }

    .radio-group,
    .gender-group {
        flex-direction: column;
        gap: 10px;
    }

    .footer-logos {
        gap: 15px;
    }

    .header-btn {
        display: none;
    }
}

.modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 1000;
        }

        .modal-content {
            background-color: white;
            margin: 15% auto;
            padding: 20px;
            width: 70%;
            border-radius: 5px;
            text-align: center;
        }
