/*
Theme Name: SKAL
Theme URI: https://www.skal.tv
Author: SKAL
Description: Thème sur mesure pour SKAL - Livestream & Captations.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: Tous droits réservés
Text Domain: skal
*/

/* ===== SKAL TV - Style Principal ===== */

/* ===== Police Quicksand (hébergée dans le thème, aucune requête vers Google) ===== */
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/quicksand-latin-300-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/quicksand-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/quicksand-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/quicksand-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/quicksand-latin-700-normal.woff2') format('woff2');
}

/* ===== Variables CSS ===== */
:root {
    --color-primary: #800000;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray: #666666;
    --font-title: 'Quicksand', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Header & Navigation ===== */
header {
    background: linear-gradient(135deg, var(--color-black) 0%, #1a1a1a 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}
.header-brand {
    display: flex;
    align-items: flex-end;
	justify-content: flex-start;
    gap: 0.6rem;
}

.header-brand a {
	display: block;
	line-height: 0;
}

.header-tagline {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #bbbbbb;
    padding-left: 0.4rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    line-height: 1.2;
    white-space: nowrap;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

nav a:hover {
    color: var(--color-primary);
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--color-primary);
}

/* Menu mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--color-black) 0%, #1a1a1a 100%);
    color: var(--color-white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(128, 0, 0, 0.1) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    font-family: var(--font-title);
}

.hero h1 .first-letter {
    color: var(--color-primary);
    font-size: 4rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* ===== Main Content ===== */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 60vh;
}

/* Titres avec première lettre stylisée */
h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.6rem;
    font-weight: 500;
}

.first-letter {
    color: var(--color-primary);
    font-size: 1.3em;
}

/* Ligne décorative sous les titres */
h1::after, h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 1rem auto 0;
}

h2::after {
    margin: 1rem 0 0;
}

h2.text-center::after,
.intro-section h2::after {
    margin: 1rem auto 0;
}

/* ===== Sections ===== */
section {
    margin-bottom: 2.5rem;
}

.intro-section {
    text-align: center;
    padding: 1rem 0;
}

.intro-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
    color: #333333;
	font-weight: 400;
}

/* ===== Grille de cartes ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-left: 4px solid var(--color-primary);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(128, 0, 0, 0.2);
}

.card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.card li::before {
    content: '▸';
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}
/* ===== Liste de services ===== */
.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
    margin-top: 2rem;
}

.services-list p {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.services-list p::before {
    content: '●';
    color: var(--color-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ===== Références / Clients ===== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.client-item {
    background: var(--color-gray-light);
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.client-item:hover {
    background: var(--color-white);
    border-color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.1);
}

/* ===== Galerie Photos ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(128, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ===== Formulaire de contact ===== */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-gray-light);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

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

.btn-submit {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: #660000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
}

/* ===== Coordonnées ===== */
.contact-info {
    background:var(--color-black);
    color: var(--color-white);
    padding: 3rem;
    border-radius: 10px;
    margin-top: 3rem;
    text-align: center;
}

.contact-info h3 {
    color: var(--color-white);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: row;
	justify-content: center;
    align-items: center;
	flex-wrap: wrap;
    gap: 4rem;
}

.contact-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-socials {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    max-width: 22rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item a {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: var(--color-primary);
}

/* ===== Footer ===== */
footer {
    background:linear-gradient(135deg, var(--color-black) 0%, #1a1a1a 100%);
    color: var(--color-white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
	margin-bottom: 0.3rem;
}
.footer-section a {
    color: var(--color-white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

/* Contact : le libellé et le lien restent sur la même ligne */
.footer-section p a {
    display: inline;
    margin-bottom: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: var(--color-gray);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #13131313;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        display: none;
    }

    nav ul.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h1 .first-letter {
        font-size: 3rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .services-list {
    grid-template-columns: 1fr;
    }

    .contact-details {
        flex-direction: column;
        gap: 1.5rem;
    }
	.contact-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 1rem;
    }

    .logo {
        height: 45px;
    }

    .hero {
        padding: 4rem 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    main {
        padding: 2.5rem 2rem;
    }

    .contact-container {
        padding: 2rem 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
	.header-tagline {
        font-size: 0.65rem;
        letter-spacing: 1px;
        padding-left: 0.4rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===== Utilitaires ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }


/* ===== Ajouts spécifiques à WordPress ===== */

/* Menu : page courante (WordPress) */
nav .current-menu-item > a,
nav .current_page_item > a,
nav .current-menu-ancestor > a {
    color: var(--color-primary);
}

/* Bouton du menu mobile (élément <button>) */
button.menu-toggle {
    background: none;
    border: 0;
    padding: 0;
}

/* Barre d'administration WordPress (visible uniquement quand vous êtes connecté) */
.admin-bar header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .admin-bar header {
        top: 0;
    }
}

/* Bloc "appel à l'action" (remplace les styles en ligne) */
.card.cta-card {
    background: linear-gradient(135deg, var(--color-black) 0%, #1a1a1a 100%);
    color: var(--color-white);
    text-align: center;
    padding: 3rem;
}

.card.cta-card h2 {
    color: var(--color-white);
}

.card.cta-card p {
    font-size: 1.2rem;
    margin: 2rem 0;
    color: var(--color-white);
}

a.btn-submit {
    display: inline-block;
    text-decoration: none;
}
.card.cta-card h2::after {
    margin: 1rem auto 0;
}

/* Icônes des coordonnées */
.contact-icon {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #bbbbbb;
}

.contact-socials .contact-icon {
    flex: 0 0 6.5rem;
}

/* Formulaire : messages et champ anti-spam */
.form-notice {
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.form-notice-success {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    color: #1b5e20;
}

.form-notice-error {
    background: #fdecea;
    border-left: 4px solid var(--color-primary);
    color: #5f0000;
}

.skal-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Contenu ajouté depuis l'éditeur WordPress */
.page-extra {
    margin-top: 3rem;
}

.page-extra img {
    max-width: 100%;
    height: auto;
}

/* Accueil : 5 cartes sur la même ligne */
.cards-grid.cards-row-5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.cards-row-5 .card {
    padding: 1.5rem 1rem;
}

.cards-row-5 .card h3 {
    font-size: 1.1rem;
}

/* Écrans moyens : 3 par ligne */
@media (max-width: 1100px) {
    .cards-grid.cards-row-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile : 1 par ligne */
@media (max-width: 768px) {
    .cards-grid.cards-row-5 {
        grid-template-columns: 1fr;
    }
}

/* Cartes avec image (page Régies et Caméras) */
.card-with-image {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 1rem;
	max-width: 1200px;
	margin: 0 auto;
}

.card-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .card-with-image {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 220px;
    }
	    .card-with-image .card-body {
        text-align: left;
    }

    .card-with-image .card-body li {
        padding-left: 1.5rem;
        padding-right: 0;
    }

    .card-with-image .card-body li::before {
        content: '▸';
        left: 0;
        right: auto;
    }
}

/* Image à gauche : texte aligné à droite */
.card-with-image .card-body {
    text-align: right;
}

.card-with-image .card-body li {
    padding-left: 0;
    padding-right: 1.5rem;
}

.card-with-image .card-body li::before {
    content: '◂';
    left: auto;
    right: 0;
}


.card-with-image.image-right {
    grid-template-columns: 3fr 2fr;
}

.card-with-image.image-right .card-image {
    order: 2;
}
/* Image à droite : texte aligné à gauche (comportement normal) */
.card-with-image.image-right .card-body {
    text-align: left;
}

.card-with-image.image-right .card-body li {
    padding-left: 1.5rem;
    padding-right: 0;
}

.card-with-image.image-right .card-body li::before {
    content: '▸';
    left: 0;
    right: auto;
}

/* Carte compacte : peu de texte, photo plus petite */
.card-with-image.card-compact {
    grid-template-columns: 1fr 340px;   /* texte | photo (photo à droite) */
    align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.card-with-image.card-compact:not(.image-right) {
    grid-template-columns: 340px 1fr;   /* photo à gauche | texte */
}

.card-with-image.card-compact .card-image {
    height: 220px;
    min-height: 0;
}

@media (max-width: 768px) {
    .card-with-image.card-compact,
    .card-with-image.card-compact:not(.image-right) {
        grid-template-columns: 1fr;
    }
}
