/* =========================================================
   STYLEBLOG.CSS — Thème Julien Thevenet (HTML/CSS/PHP pur)
   Palette : Bleu nuit (#1b2140) / Bleu (#2b356a) / Vert avocat (#4a7b57)
   ========================================================= */

/* ---------- Reset & base ---------- */
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  color:#0f172a;
    background:#f9fafc;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;display:block}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
button{font:inherit}

/* ---------- Thème ---------- */
:root{
  --ink:#0f172a;         /* texte principal */
  --ink-2:#334155;       /* texte adouci */
  --muted:#64748b;       /* labels, infos */
  --bg:#f7f8fb;          /* fond page */
  --panel:#ffffff;       /* cartes, panneaux */
  --line:#e5e7eb;        /* séparateurs */

  --navy:#1b2140;        /* bleu nuit (logo) */
  --navy-2:#2b356a;      /* bleu moyen */
  --green:#4a7b57;       /* vert avocat (logo) */

  --brand:var(--navy-2);
  --brand-600:#23305d;
  --accent:var(--green);
  --ok:#16a34a;
  --err:#dc2626;
  --warn:#d97706;

  --radius:16px;
  --radius-sm:12px;
  --shadow:0 14px 34px rgba(2,6,23,.08);
  --shadow-sm:0 6px 18px rgba(2,6,23,.06);
}

/* ---------- Conteneur ---------- */
.container{
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px); /* ← gouttières anti-bord collé */
}


/* =========================================================
   Topbar + Header (navigation)
   ========================================================= */
.topbar{
  background:linear-gradient(180deg, #0c1227 0%, #0f162d 100%);
  color:#cbd5e1;
  font-size:14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbar .container{
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 0;
}
.topbar a.topbar-link{
  color:#e2e8f0;
  padding:6px 12px;border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
}
.topbar a.topbar-link:hover{background:rgba(255,255,255,.08);text-decoration:none}

.site-header{
  position:sticky; top:0; z-index:50;
  background:linear-gradient(180deg, #0f162d 0%, #122043 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.06) inset;
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:18px; padding:16px 0;
}

/* Marque (logo + titres) */
.brand{display:flex;align-items:center;gap:12px;color:#e2e8f0;text-decoration:none}
.brand:hover{text-decoration:none}
.brand-logo{width:88px;height:auto;display:block;filter: drop-shadow(0 2px 3px rgba(0,0,0,.25))}
.brand-text{display:flex;flex-direction:column}
.brand-title{font-weight:800; letter-spacing:.3px; color:#f8fafc; line-height:1.1; font-size:20px}
.brand-sub{font-size:14px; color:#cbd5e1; line-height:1.2; margin-top:2px}

/* Navigation */
.main-nav{display:flex;align-items:center;gap:18px}
.nav-link{color:#e2e8f0; padding:8px 12px; border-radius:12px; border:1px solid transparent; transition:all .15s ease; white-space: nowrap;}
.nav-link:hover{background:rgba(255,255,255,.07); text-decoration:none}
.nav-link.active{background:rgba(255,255,255,.12)}
.btn-ghost{border-color:rgba(255,255,255,.22); background:transparent}
.btn-ghost:hover{background:rgba(255,255,255,.08)}
.btn-accent{background:#3b5599; border:1px solid rgba(255,255,255,.12); color:#fff; font-weight:600; box-shadow: var(--shadow-sm)}
.btn-accent:hover{background:#2e437b}


/* Burger (mobile) */
.nav-toggle{display:none;background:transparent;border:0;cursor:pointer}
.nav-toggle span{display:block;width:26px;height:2px;background:#e2e8f0;margin:6px 0;border-radius:2px}
.mobile-nav{display:none;flex-direction:column;gap:4px;padding:10px 0 16px;border-top:1px solid rgba(255,255,255,.08)}
.mobile-nav .nav-link{display:block;margin:0 16px}

/* =========================================================
   Sections / Cartes (vitrine)
   ========================================================= */
.section{padding:36px 0}
.section-title{font-size:clamp(22px,3.6vw,28px); margin:0 0 10px; color:var(--ink)}
.section-sub{color:var(--muted); margin:0 0 20px}

.card{
  background:var(--panel); border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden;
}
.card-body{padding:18px}
.card-title{margin:0 0 6px; font-size:20px; color:var(--ink)}
.card-text{color:var(--ink-2)}
.card-meta{color:var(--muted); font-size:14px}
.card > img.cover{width:100%; height:220px; object-fit:cover; display:block}

.articles{display:grid; gap:20px; grid-template-columns: repeat(auto-fill, minmax(260px,1fr))}

/* =========================================================
   Boutons
   ========================================================= */
.btn{
  display:inline-flex;align-items:center;justify-content:center; gap:8px;
  height:40px; padding:0 14px; border-radius:12px; border:1px solid var(--line);
  background:var(--panel); color:var(--ink); font-weight:600;
  box-shadow:var(--shadow-sm); transition: all .15s ease;
}
.btn:hover{transform:translateY(-1px); text-decoration:none}
.btn.primary{background:var(--navy-2); border-color:#1f2b54; color:#fff}
.btn.primary:hover{background:#23305d}
.btn.success{background:#eaf7ee; color:#166534; border-color:#cdebd6}
.btn.danger{background:#fef2f2; color:#991b1b; border-color:#fecaca}
.btn.ghost{background:#fff;border-color:#e5e7eb;color:#334155}

/* =========================================================
   Formulaires
   ========================================================= */
form{width:100%}
label{display:block;color:var(--muted);font-size:14px;margin:12px 0 6px}
input[type="text"],input[type="email"],input[type="password"],input[type="file"],textarea,select{
  width:100%; border:1px solid var(--line); background:#fff; color:#0f172a;
  height:44px; padding:10px 12px; border-radius:12px; outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
textarea{min-height:140px; resize:vertical; line-height:1.5}
input:focus, textarea:focus, select:focus{border-color:#cbd5e1; box-shadow:0 0 0 4px rgba(43,53,106,.10)}

.ok,.err,.warn{padding:12px 14px; border-radius:12px; font-weight:600; margin:10px 0; border:1px solid}
.ok{background:#ecfdf5; color:#065f46; border-color:#bbf7d0}
.err{background:#fef2f2; color:#7f1d1d; border-color:#fecaca}
.warn{background:#fff7ed; color:#7c2d12; border-color:#fed7aa}

.wrap{width:min(560px,92vw); margin:26px auto}
.card.form{padding:22px; border-radius:var(--radius); box-shadow:var(--shadow)}
.form-actions{display:flex;gap:10px;align-items:center; margin-top:14px}

/* =========================================================
   Tableaux (admin)
   ========================================================= */
.table{
  width:100%; border-collapse:separate; border-spacing:0; background:var(--panel);
  border:1px solid var(--line); border-radius:14px; overflow:hidden;
  box-shadow:var(--shadow);
}
.table th,.table td{padding:12px 14px; text-align:left; border-bottom:1px solid var(--line)}
.table thead th{background:#f3f6ff; color:#27324d; font-weight:700; letter-spacing:.2px}
.table tbody tr:hover{background:#fafcff}
.table tbody tr:last-child td{border-bottom:none}
.table .actions{display:flex;gap:8px}
.table .actions .btn{height:34px;padding:0 10px;border-radius:10px}
.toolbar{display:flex;align-items:center;justify-content:space-between; gap:10px; margin:16px 0 12px}
.toolbar .search{flex:1}
.search input{height:42px}
.tag{display:inline-flex;align-items:center;gap:6px; padding:6px 10px; border-radius:999px; font-size:12px; border:1px solid var(--line); background:#fff;color:#334155}
.tag.published{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.tag.draft{background:#fff7ed;border-color:#fed7aa;color:#7c2d12}

/* =========================================================
   HERO Accueil — sportif à droite, visible en entier + fondu radial
   ========================================================= */
.hero-banner{
  padding: 26px 0 18px;
  background: radial-gradient(circle at center, #f9fafc 40%, #f8f9fb 80%, #f7f8fa 100%);
}


.hero-banner__inner{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;  /* texte / image */
  align-items: center;
  gap: 26px;
}
.hero-banner__copy h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.12;
}
.hero-banner__copy .lead{color:#475569;margin:0 0 16px}
.hero-banner__copy .actions{display:flex; gap:12px; align-items:center}

/* Image : agrandie pour éliminer le cadre, bords fondus en halo */
/* Conteneur de l'image */
.hero-banner__image{
  justify-self: end;
  max-height: 480px;
  padding-left: 10px;
  display: flex; align-items: center; justify-content: center;

  /* >>> AJOUTS anti-liseré <<< */
  position: relative;
  overflow: hidden;            /* coupe tout débordement */
  border-radius: 18px;         /* le rayon vit ici */
  background: #f9fafc;         /* même fond que la page/hero */
}

.hero-banner__image img{
  width: 135%;              /* ← BEAUCOUP plus grosse */
  height: auto;
  max-height: 600px;        /* ← plus haute */
  object-fit: contain;
  display: block;
}





/* =========================================================
   Pied de page
   ========================================================= */
.site-footer{
  margin-top:40px;
  background:#0f162d; color:#cbd5e1;
  border-top:1px solid rgba(255,255,255,.08);
}
.site-footer .container{
  padding:26px 0; display:flex;flex-wrap:wrap; gap:16px;
  align-items:center; justify-content:space-between;
}
.site-footer a{color:#e2e8f0}
.site-footer a:hover{text-decoration:none; opacity:.9}

/* =========================================================
   Utilitaires
   ========================================================= */
.mt-0{margin-top:0}.mt-1{margin-top:6px}.mt-2{margin-top:10px}.mt-3{margin-top:16px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:6px}.mb-2{margin-bottom:10px}.mb-3{margin-bottom:16px}
.hidden{display:none!important}
.center{display:flex;align-items:center;justify-content:center}
.right{margin-left:auto}
hr{border:0;border-top:1px solid var(--line); margin:18px 0}
.link-btn{background:transparent;border:0;color:#2b356a;padding:0;cursor:pointer}
.link-btn:hover{text-decoration:underline}

/* =========================================================
   À PROPOS — Photo + texte
   ========================================================= */


.apropos-photo {
  float: right;
  margin: 0 0 20px 30px; /* espace entre texte et photo */
}

.photo-avocat {
  max-width: 260px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}


.apropos-texte {
  text-align: left;
  padding-right: 20px;
}

.apropos-bloc::after {
  content: "";
  display: block;
  clear: both;
}




/* Responsive À propos */
@media (max-width: 768px) {
  .apropos-bloc {
    flex-direction: column;
    align-items: center;
  }

  .photo-avocat {
    margin-bottom: 20px;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .main-nav{display:none}
  .nav-toggle{display:block}
  .mobile-nav{display:flex}
  .brand-title{font-size:18px}
  .brand-logo{width:42px}

  .hero-banner__inner{ grid-template-columns: 1fr; }
  .hero-banner__image{ justify-self: center; max-height: 420px; padding-left: 0; }
  .hero-banner__image img{ max-height: 420px; width: 118%; }
}

@media (max-width: 620px){
  .topbar .container{flex-direction:column;gap:8px}
  .header-inner{padding:12px 0}
  .brand-logo{width:40px}
  .brand-sub{display:none}
  .btn,.nav-link{height:44px}

  .hero-banner{ padding: 20px 0 10px; }
  .hero-banner__image{ max-height: 340px; }
  .hero-banner__image img{ max-height: 340px; width: 115%; }
}

/* =========================================================
   FAQ
   ========================================================= */

.faq h3 {
  margin-top: 26px;
  margin-bottom: 8px;
 color: var(--ink); /* noir */
  font-size: 18px;
}

.faq p {
  margin: 0 0 12px;
  line-height: 1.7;
}


.publication-item h3 {
  margin-bottom: 6px;
  color: var(--navy-2);
}

.publication-item .card-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}


/* Bloc texte + image côte à côte */
.domaines-feature {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: stretch;
}

/* Image */
.domaines-feature__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.domaines-feature__image img {
  width: 100%;
  max-width: 260px;
 
}

/* Mobile : image en dessous */
@media (max-width: 900px) {
  .domaines-feature {
    grid-template-columns: 1fr;
  }

  .domaines-feature__image {
    margin-top: 16px;
  }

  .domaines-feature__image img {
    max-width: 220px;
    margin: 0 auto;
  }
}


/* FAQ : premier bloc avec image sur le côté */
.faq-feature {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: stretch;
}

.faq-feature__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-feature__image img {
  width: 100%;
  max-width: 260px; /* ← nettement plus grand */

}



/* Mobile */
@media (max-width: 900px) {
  .faq-feature {
    grid-template-columns: 1fr;
  }

  .faq-feature__image {
    margin-top: 16px;
  }

  .faq-feature__image img {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* =========================================================
   Menu mobile — neutralisé (évite les conflits)
   ========================================================= */

html, body {
  overflow-x: hidden;
}

@media (max-width: 980px) {
  .mobile-nav {
    display: none;
  }

  .mobile-nav.open {
    display: flex;
    flex-direction: column;
  }
}

/* Bouton menu mobile en blanc */
.nav-toggle {
  color: #ffffff;
}

.nav-toggle span {
  background: #ffffff;
}

/* =========================================================
   Responsive – ordre image / texte (FAQ & Domaines)
   ========================================================= */

@media (max-width: 900px) {

  /* Domaines d'activité */
  .domaines-feature {
    display: flex;
    flex-direction: column;
  }

  .domaines-feature__image {
    order: -1; /* image en premier */
  }

  /* FAQ */
  .faq-feature {
    display: flex;
    flex-direction: column;
  }

  .faq-feature__image {
    order: -1; /* image en premier */
  }
}

/* Partie privée – supprimer le bouton écriture plein écran */
#toggleFull {
  display: none !important;
}

/* ===== Domain-style layout (Contact) ===== */

.domain-row{
  display:grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap:40px;
  align-items:stretch;
  margin-top:40px;
}

/* Card principale */
.domain-card{
  background:#ffffff;
  border-radius:28px;
  padding:36px 40px;
  box-shadow:0 20px 40px rgba(15,23,42,.08);
}

.domain-title{
  font-size:1.6rem;
  font-weight:700;
  margin-bottom:16px;
  color:#0f172a;
}

.domain-list{
  margin:16px 0;
  padding-left:18px;
}

.domain-list li{
  margin-bottom:8px;
}

.domain-text{
  color:#475569;
  margin-top:12px;
}

/* Boutons */
.domain-actions{
  display:flex;
  gap:12px;
  margin-top:20px;
  flex-wrap:wrap;
}

/* Illustration discrète */
.domain-illustration{
  background:#f8fafc;
  border-radius:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
}

.domain-illustration img{
  width: 100%;
  max-width: 260px;   /* taille maîtrisée */
  height: auto;
}



/* Responsive */
@media (max-width: 900px){
  .domain-row{
    grid-template-columns:1fr;
  }

  .domain-illustration{
    order:-1;
  }
}

/* Illustration secondaire À propos (bas gauche) */
.apropos-illustration{
  float: left;
  margin: 10px 30px 20px 0; /* espace texte */
}

.apropos-illustration img{
  max-width: 220px;
  width: 100%;
  opacity: 0.35;
  filter: grayscale(100%);
}

/* Image Dopage : alignée vers la gauche (desktop) */
.domaines-feature__image--left{
  justify-content: flex-start;
}

/* Bloc Dopage : image + texte plus rapprochés */
.domaines-feature--tight{
  grid-template-columns: 240px 1fr; /* image plus proche */
  gap: 18px;                        /* espace réduit */
}

/* FAQ — bloc IV : image + texte rapprochés */
.faq-feature--tight{
  grid-template-columns: 240px 1fr;
  gap: 18px;
}

/* Image FAQ alignée à gauche */
.faq-feature__image--left{
  justify-content: flex-start;
}

a[href*="linkedin.com/in/julien-thevenet"]{
  display:inline-block;
  margin-top:12px;
  padding:8px 16px;
  border-radius:8px;
  background:#1b2140; /* bleu nuit du site */
  color:#ffffff !important;
  font-weight:600;
  letter-spacing:0.3px;
  text-decoration:none;
}

a[href*="linkedin.com/in/julien-thevenet"]:hover{
  background:#2b356a;
  text-decoration:none;
}
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
