/* =====================
   VARIABLES GLOBALES
===================== */
:root {
  --primary: #ff6f00;
  --secondary: #009688;
  --accent: #e28307;
  --light: #f9f9f9;
  --dark: #003f7a;
  --font-main: 'Segoe UI', sans-serif;
  --border-radius: 10px;
}

/* =====================
   STYLE GLOBAL
===================== */
body {
  font-family: var(--font-main);
  background: linear-gradient(-45deg, #3e3e7a, #121224, #2a2a40, #1a1a2a);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
  color: #f0f0f5;
  margin: 0;
  padding: 0;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =====================
   POLICES PERSONNALISÉES
===================== */
@font-face {
  font-family: 'Flameregular';
  src: url('vhfpolices/FlameRegular.otf');
}
@font-face {
  font-family: 'Monument';
  src: url('vhfpolices/MonumentExtended-Regular.otf');
}

/* =====================
   HEADER & NAVBAR
===================== */
header {
  background: rgba(18, 18, 36, 0.9);
  border-bottom: 5px solid #ff6f61;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-height: 80%;
  max-width: 100%;
  padding: 0 3em;
}


.vhfimage{
    width: 110px;
    margin: 10px 3em;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: rotate 15s linear infinite;
    transition: margin 0.5s ease-in;
}
.vhfimage:hover{
    margin-left: 7rem;
}
@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Liens */
nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 15px;
  padding: 0;
}

nav ul li a {
  color: #ffab40;
  font-family: 'Monument';
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: white;
}

/* =====================
   MENU BURGER
===================== */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
}

.menu-icon span {
  display: block;
  height: 3px;
  background: #ffab40;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation burger → X */
.menu-toggle:checked + .menu-icon span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle:checked + .menu-icon span:nth-child(2) {
  opacity: 0;
}
.menu-toggle:checked + .menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}


/* ===== SECTION STYLES ===== */
section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

section h1 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 3rem;
}

/* A Propos Section */
.histoire {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.histoire .image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.histoire h2 {
    color: var(--text);
    margin-bottom: 1rem;
}

.histoire p {
    color: #dcdde1;
    margin-bottom: 1rem;
}

.histoire span {
    color: var(--accent);
    font-weight: bold;
}

.valeurs-container {
    text-align: center;
}

.valeurs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.valeurs-title{
color: var(--accent);
}

.valeurs-elements {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.valeurs-elements:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.valeurs-elements h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.valeurs-elements h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 300ms ease;
}

.valeurs-elements:hover h3::after {
    width: 100%;
}

/* Équipe Section */
.profil-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.profil {
    text-align: center;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.profil::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,111,97,0.1));
    opacity: 0;
    transition: opacity 400ms ease;
}

.profil:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.profil:hover::before {
    opacity: 1;
}

.profil img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
    border: 3px solid transparent;
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.profil:hover img {
    transform: scale(1.05);
    border-color: var(--accent);
}

.profil h2 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.profil h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255,255,255,0.03);
    color: var(--text);
    outline: none;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 80, 61, 0.4);
}

/* === BLOG SECTION === */
.blog {
    padding: 6rem 5%;
}

.blog h2 {
    text-align: center;
    color: var(--accent);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 0 auto;
    max-width: 1200px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    color: var(--text);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.blog-content p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.blog-footer span {
    color: var(--muted);
    font-size: 0.9rem;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 300ms ease;
}

.read-more:hover::after {
    width: 100%;
}

/* === TESTIMONIALS SECTION === */
.testimonials {
    padding: 6rem 5%;
    background: linear-gradient(rgba(18, 18, 36, 0.8), rgba(18, 18, 36, 0.9));
}

.testimonials-title {
    text-align: center;
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.testimonial-box::before {
    content: '"';
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-box:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.testimonial-box p {
    color: var(--text);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.client-info h4 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.client-info small {
    color: var(--muted);
}

/* =====================
   FOOTER
===================== */
.footer {
  background-color: rgba(18, 18, 36, 0.95);
  color: white;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  border-top: 2px solid #ff6f61;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-section {
  flex: 1 1 150px;
  margin: 10px;
}
.footer-section h4 {
  border-bottom: 2px solid #00227e;
  padding-bottom: 5px;
  margin-bottom: 4px;
}
.footer-section ul {
  list-style: none;
  padding: 0;
}
.footer-section ul li {
  margin-bottom: 8px;
}
.footer-section ul li a {
  color: #ffab40;
  text-decoration: none;
}
.footer a {
  color: #ffab40;
  text-decoration: none;
  transition: all 0.5s ease;
}
footer a:hover {
  color: #fff;
  text-shadow: 0 0 8px #ff6f61;
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 2px solid #444;
  padding-top: 10px;
  font-size: 14px;
}

/* ===== RESPONSIVE DESIGN ===== */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    /* Responsive Menu */
    .menu-icon {
        display: flex;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 92%;
        left: 0;
        width: 90%;
        background-color: rgba(18, 18, 36, 0.95);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .menu-toggle:checked ~ ul {
        display: flex;
    }
        .vhfimage{
        width: 100px;
        margin: 10px 2em;
        border-radius: 50%;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        animation: rotate 10s linear infinite;
        transition: margin 0.5s ease;
    }
    .vhfimage:hover{
        margin-left: -1rem;
    }
    @keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
    }

    /* Sections */
    .histoire {
        grid-template-columns: 1fr;
    }

    .valeurs {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 4rem 1rem;
    }

    .profil-container {
        grid-template-columns: 1fr;
    }
    }

    /* Reveal animation for sections */
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: all 800ms cubic-bezier(0.4, 0, 0.2, 1);
        will-change: opacity, transform;
    }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: opacity 300ms ease;
        transform: none;
    }
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover / interactive polish */
.valeurs-elements {
    transition: transform 300ms ease, box-shadow 300ms ease;
}
.valeurs-elements:hover,
.profil:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.profil img {
    transition: transform 600ms cubic-bezier(.2,.9,.2,1);
}
.profil:hover img {
    transform: rotate(-6deg) scale(1.03);
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 6px 18px rgba(255,111,97,0.12);
    border: 1px solid rgba(255,111,97,0.18);
}

/* Play button accent glow */
.play-button {
    box-shadow: 0 8px 30px rgba(255,111,97,0.12);
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.play-button:hover {
    transform: translateY(-4px) scale(1.02);
}

/* small utility */
.muted {
    color: var(--muted);
}