/* ============================================================
   0. VARIABLES — Palette Oregano Athletics
   ============================================================ */
:root {
  --oa-blue: #1b91ae;
  --oa-green: #53ac5a;
  --oa-dark: #0d2e36;
  --oa-light: #f7f9fa;
  --oa-grey: #6f7a82;

  --h1-size: 2.2rem;
  --h2-size: 1.7rem;
  --h3-size: 1.25rem;
  --text-size: 1rem;

  --section-space: 60px;
  --container-width: 1100px;
}

/* ============================================================
   1. RESET
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: white;
  color: var(--oa-dark);
  line-height: 1.6;
  font-size: var(--text-size);
}

/* ============================================================
   2. TYPOGRAPHIE
   ============================================================ */
h1, h2, h3 { font-weight: 700; color: var(--oa-dark); }
h1 { font-size: var(--h1-size); margin-bottom: 18px; }
h2 { font-size: var(--h2-size); margin-bottom: 14px; }
h3 { font-size: var(--h3-size); margin-bottom: 10px; }

p { margin-bottom: 16px; color: var(--oa-dark); }

/* ============================================================
   3. LAYOUT GLOBAL
   ============================================================ */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: auto;
}

section { padding: var(--section-space) 0; }

.grid-2, .grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ============================================================
   4. HEADER — NAVBAR PREMIUM
   ============================================================ */
header {
  width: 100%;
  background: white;
  border-bottom: 1px solid #e0e6e8;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.oa-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.oa-logo img {
  height: 46px;
  display: block;
}

/* NAV DESKTOP */
.oa-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.oa-nav a {
  text-decoration: none;
  color: var(--oa-dark);
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color .25s ease;
}

.oa-nav a:hover { color: var(--oa-blue); }

.oa-btn-contact {
  background: var(--oa-blue);
  color: white !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 700 !important;
  transition: background .25s ease;
}

.oa-btn-contact:hover { background: #147a8e; }

/* Langues */
.oa-lang { font-size: .9rem; opacity: 0.8; display: flex; gap: 6px; }
.oa-lang a { color: var(--oa-dark); text-decoration: none; }
.oa-lang a:hover { color: var(--oa-blue); }

/* BURGER */
.oa-burger { display: none; font-size: 2rem; cursor: pointer; }

/* MOBILE NAV */
@media(max-width: 900px) {
  .oa-burger { display: block; }

  .oa-nav {
    position: absolute;
    top: 72px; right: 20px;
    background: white;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 5px 16px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    gap: 18px;
    min-width: 210px;
    animation: fadeIn .25s ease-out;
  }

  .oa-nav.active { display: flex; }
  .oa-btn-contact { width: 100%; text-align: center; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}




/* ============================================================
   5. FOOTER
   ============================================================ */
footer {
  background: var(--oa-dark);
  color: white;
  padding: 40px 0;
  margin-top: 60px;
}

footer a {
  color: var(--oa-green);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover { opacity: 0.8; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ============================================================
   6. BOUTONS
   ============================================================ */
.btn,
.btn-secondary,
.btn-large,
.btn-small {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s ease;
  font-size: 0.95rem;
}

.btn { background: var(--oa-blue); color: white; }
.btn:hover { opacity: 0.9; }

.btn-secondary {
  background: white;
  border: 2px solid var(--oa-blue);
  color: var(--oa-blue);
}
.btn-secondary:hover { background: var(--oa-blue); color: white; }

.btn-large {
  background: var(--oa-green);
  color: white;
  padding: 16px 34px;
  font-size: 1.05rem;
}
.btn-large:hover { opacity: 0.88; }

.btn-small { font-size: 0.9rem; padding: 8px 18px; }

/* ============================================================
   7. CARTES / BLOCS — VERSION PREMIUM
   ============================================================ */

.story-item,
.method-item,
.faq-item,
.process-steps .step,
.pillar-item { /* ⭐ élargissement cohérent */
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    padding: 26px;
    border-radius: 14px;

    border: 1px solid rgba(27,145,174,0.18);
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);

    transition: transform .25s ease, box-shadow .25s ease;
}

.story-item:hover,
.method-item:hover,
.faq-item:hover,
.process-steps .step:hover,
.pillar-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.story-item img,
.focus-photos img,
.method-photo img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}

/* ============================================================
   8. HERO VIDÉO — HOME
   ============================================================ */

.home-hero {
    position: relative;
    height: 95vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding-top: 40px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.hero-media video,
.hero-media img {
    position: absolute;
    top: 50%; left: 50%;
    width: 120%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(10, 25, 30, 0.35),
        rgba(10, 25, 30, 0.6)
    );
    z-index: 2;
}

/* Contenu */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 720px;
    text-align: left;
    color: white;
}

.hero-content h1 { font-size: 3rem; font-weight: 800; }
.hero-content p { font-size: 1.2rem; opacity: 0.9; }

/* ============================
   PILIERS — version minimaliste (Option C)
   ============================ */

.home-pillars {
    margin-top: 0px;
    margin-bottom: 0px; /* espace AVANT les boutons */
}

.pillars-container {
    display: grid;
    gap: 6px;
}

/* Style texte des piliers */
.pillar-line {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    opacity: 0.88;
    line-height: 1.35;
    text-align: center;
}

/* Desktop : aligné à gauche, effet éditorial premium */
@media(min-width: 900px) {
    .pillars-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 720px;
        padding-left: 0;
        gap: 12px;
    }

    .pillar-line {
        text-align: left;
        margin: 0;
    }
}

/* Espace entre les piliers et boutons CTA */
.hero-content .cta-group {
    margin-top: 0px !important;
}

/* =========================================
   HERO AVEC VIDÉO — LISIBILITÉ TEXTE
   ========================================= */

.home-hero.has-video .hero-content h1,
.home-hero.has-video .hero-content p {
    color: var(--oa-light);
}

/* Sous-titre légèrement adouci */
.home-hero.has-video .hero-content p {
    opacity: 0.95;
}

/* Optionnel : micro-ombre pour le titre (premium, discret) */
.home-hero.has-video .hero-content h1 {
    text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

/* Idem pour les piliers si présents */
.home-hero.has-video .pillar-line,
.home-hero.has-video .pillar-item p {
    color: var(--oa-light);
    opacity: 0.9;
}



/* ============================================================
   10. CTA sous le HERO
   ============================================================ */

.hero-cta-group {
    margin-top: 18px; /* ⭐ pour éviter que le CTA colle */
}

/* ============================================================
   11. SECTIONS HOME
   ============================================================ */

.home-forwho-intro {
    max-width: 760px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.home-card {
    background: var(--oa-light);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid var(--oa-blue);
    transition: 0.3s ease;
}

.home-card:hover { transform: translateY(-4px); }

.home-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
}

/* ============================================================
   12. RESPONSIVE DESKTOP
   ============================================================ */

@media(min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}


/* ============================
   FIX MOBILE HERO HEIGHT
   ============================ */
@media(max-width: 768px) {

    .home-hero {
        height: auto !important;
        min-height: auto !important;
        padding-bottom: 40px; /* pour respirer */
    }

    .hero-content {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* Piliers lisibles mais pas énormes */
    .pillar-line {
        font-size: 0.95rem;     /* rehausser légèrement */
        line-height: 1.35;
        padding: 0 10px;
        opacity: 0.95;
    }

    /* On rapproche légèrement les CTA */
    .hero-content .cta-group {
        margin-top: 20px !important;
    }
}


/* =========================================================
   CONTACT — Formulaire premium (scope: .contact-page)
   ========================================================= */

.contact-page {
  padding-top: 30px;
}

.contact-hero {
  padding: 40px 20px 10px;
}

.contact-hero h1 {
  margin-bottom: 10px;
}

.contact-hero .contact-lead {
  max-width: 780px;
  color: var(--oa-gray-light);
  font-size: 1.1rem;
}

/* Alertes */
.contact-alert {
  max-width: 900px;
  margin: 20px auto 30px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-left: 4px solid var(--oa-green-light);
}
.contact-alert.is-error { border-left-color: #d33; }
.contact-alert p { margin: 0 0 10px; }
.contact-alert ul { margin: 0; padding-left: 18px; }
.contact-alert li { margin: 6px 0; }

/* Bloc formulaire */
.contact-form-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.contact-form {
  background: var(--oa-white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.04);
}

/* Grille simple */
.contact-form .form-row {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--oa-blue-dark);
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--oa-font);
  font-size: 1rem;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(0,0,0,0.45);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(27,145,174,0.55); /* --oa-blue */
  box-shadow: 0 0 0 4px rgba(27,145,174,0.12);
}

/* Champ requis / hints */
.contact-form .hint {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--oa-gray-light);
}

/* Consent + checkbox */
.contact-form .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 6px;
}
.contact-form .consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}
.contact-form .consent-row label {
  margin: 0;
  font-weight: 500;
  color: var(--oa-gray);
}

/* Actions */
.contact-form .form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 18px;
}

.contact-form .btn {
  border-radius: 12px;
  padding: 12px 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form { padding: 20px; }
  .contact-form .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-form .btn { width: 100%; text-align: center; }
}

/* Empêche les images d'apparaître en taille réelle / de déborder */
img { max-width: 100%; height: auto; display: block; }

/* À propos — portraits équipe : taille maîtrisée */
.about-team .story-item img{
  height: 240px;
  object-fit: cover;
}

.programmes-hero { display:flex; gap:24px; align-items:center; }
.programmes-hero-media { flex: 0 0 38%; }
.programmes-hero-media img { width:100%; height:auto; border-radius:16px; }
@media (max-width: 900px){
  .programmes-hero { flex-direction:column; }
  .programmes-hero-media { width:100%; }
}
.faq-item { border:1px solid rgba(0,0,0,.08); border-radius:14px; padding:12px 14px; margin:10px 0; }
.faq-item summary { cursor:pointer; font-weight:600; }
.faq-answer { margin-top:10px; }


/* =========================
   Collaborations (Services)
   ========================= */
.collaboration-block{
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 24px;
}

.collaboration-photo{
  flex: 0 0 120px;
}

.collaboration-photo img{
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
}

.collaboration-content{
  flex: 1;
}

.collaboration-note{
  margin-top: 8px;
  font-size: 0.95em;
  color: #555;
}

@media (max-width: 700px){
  .collaboration-block{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .collaboration-photo{
    flex: none;
  }
}



/* FIN CSS */
