/*
Theme Name: ITCYBER
Theme URI: https://itcyber.ma
Author: ITCYBER
Description: Thème sur mesure ITCYBER — Cabinet de Conseil IT & Transformation Digitale au Maroc. Inclut les pages Services, Produits (Solutions Applicatives & Infrastructure/Sécurité), Formation, Financement, Partenaires et Contact.
Version: 1.49.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: itcyber
*/

:root { --orange:#EE5B0C; --orange2:#F76507; --orange3:#FF8400; }
  * { box-sizing:border-box; }
  body { margin:0; font-family:'Poppins',sans-serif; background:#FFFFFF; }
  a { color:var(--orange); text-decoration:none; }
  a:hover { color:var(--orange2); }
  img { max-width:100%; display:block; }
  p { text-align:justify; }
  input, textarea, select { font-family:'Poppins',sans-serif; }
  input::placeholder, textarea::placeholder { color:#A8A8A8; }

  /* ---- Header ---- */
  .itc-header { position:relative; width:100%; background:#FFFFFF; border-bottom:1px solid #F0F0F0; z-index:100; }
  .itc-header-inner { max-width:1280px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; padding:14px 16px; gap:8px; }
  .itc-logo { display:flex; align-items:center; gap:8px; font-weight:900; font-size:18px; letter-spacing:-0.5px; flex-shrink:0; }
  /* Hard caps so the mark can never render oversized, whatever the source image is. */
  .itc-logo-mark { height:32px; max-height:32px; width:auto; max-width:32px; object-fit:contain; display:block; }
  .itc-logo-text { display:flex; align-items:baseline; gap:1px; line-height:1; }
  .itc-logo-custom img, .itc-logo-custom .custom-logo { height:auto; max-height:40px; width:auto; max-width:190px; object-fit:contain; display:block; }
  .itc-nav { display:flex; align-items:center; gap:8px; white-space:nowrap; min-width:0; }
  .itc-nav > a { font-size:13px; padding:6px 4px; }
  .itc-dropdown { position:relative; }
  .itc-dropdown-label { font-size:13px; cursor:pointer; display:flex; align-items:center; gap:3px; white-space:nowrap; padding:6px 4px; }
  /* Panels size to their content: the nav's white-space:nowrap must not leak in,
     otherwise long French labels overflow outside the white box. */
  .itc-dropdown-panel { display:none; position:absolute; top:32px; left:-20px; background:#FFFFFF; border-radius:16px; box-shadow:0 16px 40px rgba(0,0,0,0.14); padding:10px; z-index:200; white-space:normal; box-sizing:border-box; }
  .itc-dropdown:hover .itc-dropdown-panel, .itc-dropdown.itc-open .itc-dropdown-panel { display:flex; flex-direction:column; }
  .itc-panel-single { width:max-content; min-width:280px; max-width:min(94vw, 460px); }
  .itc-panel-single a, .itc-panel-grid a { padding:12px 16px; border-radius:10px; font-size:14px; font-weight:500; color:#000000; white-space:normal; overflow-wrap:break-word; }
  .itc-panel-single a:hover, .itc-panel-grid a:hover { background:#FFF4EC; color:var(--orange); }
  .itc-panel-grid { width:max-content; max-width:min(94vw, 800px); display:none; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:24px; left:-40px; }
  .itc-dropdown:hover .itc-panel-grid, .itc-dropdown.itc-open .itc-panel-grid { display:grid; }
  /* navigation.js flips a panel to the right edge when it would overflow the viewport */
  .itc-dropdown-panel.itc-panel-flip { left:auto; right:-20px; }
  .itc-panel-heading { font-size:12px; font-weight:700; color:var(--orange); text-transform:uppercase; letter-spacing:0.6px; padding:6px 16px 10px; }
  .itc-panel-grid a { display:block; padding:9px 16px; font-size:13.5px; }
  .itc-panel-viewall { grid-column:1 / -1; text-align:center; padding:10px; border-radius:10px; background:#FFF7F2; font-size:13px; font-weight:700; color:var(--orange) !important; }
  .itc-cta { background:linear-gradient(90deg,var(--orange),var(--orange2)); color:#FFFFFF !important; font-weight:700; font-size:12px; padding:10px 18px; border-radius:999px; white-space:nowrap; flex-shrink:0; }
  .itc-cta:hover { background:linear-gradient(90deg,var(--orange2),var(--orange3)); }
  .itc-burger { display:none; background:none; border:none; padding:6px; cursor:pointer; flex-direction:column; gap:5px; flex-shrink:0; }
  .itc-burger span { width:22px; height:2px; background:#000000; display:block; }

  /* ---- Sélecteur de langue (dropdown) ---- */
  .itc-lang-dropdown { margin-inline-start:6px; padding-inline-start:14px; border-inline-start:1px solid #EFEFEF; }
  .itc-lang-dropdown .itc-dropdown-label { gap:6px; }
  .itc-lang-dropdown .itc-dropdown-panel.itc-lang-panel { left:auto; right:-10px; min-width:170px; }
  .itc-lang-panel a { display:flex !important; align-items:center; justify-content:space-between; gap:10px; }
  .itc-lang-panel a.itc-lang-active { color:var(--orange) !important; font-weight:700; background:#FFF4EC; }
  .itc-lang-check { color:var(--orange); font-weight:700; }

  @media (max-width:900px) {
    .itc-nav { display:none; position:absolute; top:100%; left:0; right:0; background:#FFFFFF; border-bottom:1px solid #F0F0F0; box-shadow:0 16px 30px rgba(0,0,0,0.08); padding:16px; flex-direction:column; align-items:stretch; gap:4px; max-height:80vh; overflow-y:auto; }
    .itc-nav.itc-nav-open { display:flex; }
    .itc-nav > a { font-size:15px; padding:12px 10px; }
    .itc-dropdown-label { font-size:15px; padding:12px 10px; justify-content:space-between; }
    .itc-dropdown-panel { display:none !important; position:static; box-shadow:none; width:auto !important; padding:0 0 0 16px; grid-template-columns:1fr !important; }
    .itc-dropdown.itc-open .itc-dropdown-panel { display:flex !important; }
    .itc-dropdown.itc-open .itc-panel-grid { display:flex !important; }
    .itc-panel-single a, .itc-panel-grid a { padding:10px; font-size:14px; color:#3A3A3A; }
    .itc-cta { display:none; }
    .itc-burger { display:flex; }
    .itc-lang-dropdown { margin:8px 0 0; padding:12px 10px 0; border-inline-start:none; border-top:1px solid #F0F0F0; }
    .itc-lang-dropdown .itc-dropdown-panel.itc-lang-panel { min-width:0; }
  }

  /* ---- Footer ---- */
  .itc-footer { background:#000000; color:#FFFFFF; padding:72px 40px 28px; }
  .itc-footer-grid { max-width:1280px; margin:0 auto; display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:48px; }
  .itc-footer-logo { font-weight:900; font-size:26px; margin-bottom:16px; display:flex; align-items:center; gap:10px; }
  .itc-footer-logo-mark { height:38px; max-height:38px; width:auto; max-width:38px; object-fit:contain; display:block; }
  .itc-footer-desc { font-size:14px; line-height:1.7; color:#B8B8B8; max-width:300px; margin:0 0 20px; }
  .itc-social { display:flex; gap:12px; }
  .itc-social-btn { width:38px; height:38px; border-radius:50%; background:#1A1A1A; display:flex; align-items:center; justify-content:center; }
  .itc-social-btn:hover { background:var(--orange); }
  .itc-footer-heading { font-weight:700; font-size:14px; color:var(--orange); text-transform:uppercase; letter-spacing:0.6px; margin-bottom:18px; }
  .itc-footer-links { display:flex; flex-direction:column; gap:12px; }
  .itc-footer-links a { color:#D8D8D8; font-size:14px; }
  .itc-footer-links a:hover { color:var(--orange); }
  .itc-footer-contact { display:flex; flex-direction:column; gap:14px; font-size:14px; color:#D8D8D8; }
  .itc-footer-legal { color:#7A7A7A; font-size:12.5px; }
  .itc-footer-bottom { max-width:1280px; margin:48px auto 0; padding-top:24px; border-top:1px solid #232323; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:12.5px; color:#7A7A7A; }
  @media (max-width:900px) { .itc-footer-grid { grid-template-columns:1fr 1fr; } }
  @media (max-width:600px) { .itc-footer-grid { grid-template-columns:1fr; } }

  /* ---- Image placeholder ---- */
  .itc-img-slot { background:#F4F4F4 repeating-linear-gradient(45deg,#F4F4F4,#F4F4F4 10px,#EEEEEE 10px,#EEEEEE 20px); border:1.5px dashed #D8D8D8; display:flex; align-items:center; justify-content:center; text-align:center; color:#9A9A9A; font-size:13px; font-weight:600; padding:16px; width:100%; }

  /* ---- Nav active state (WordPress) ---- */
  .itc-nav > a, .itc-dropdown-label { font-weight:500; color:#000000; }
  .itc-nav > a.itc-nav-active, .itc-dropdown-label.itc-nav-active { font-weight:700; color:#EE5B0C; }
  .itc-nav > a:hover, .itc-dropdown-label:hover { color:#EE5B0C; }

  /* ---- WordPress core / editor content ---- */
  .itc-post-content h2 { font-size:26px; font-weight:800; color:#000000; margin:36px 0 14px; }
  .itc-post-content h3 { font-size:20px; font-weight:800; color:#000000; margin:28px 0 12px; }
  .itc-post-content img { border-radius:16px; margin:20px 0; }
  .itc-post-content ul, .itc-post-content ol { padding-left:22px; }
  .itc-post-content li { margin-bottom:8px; }
  .alignleft { float:left; margin:0 20px 20px 0; }
  .alignright { float:right; margin:0 0 20px 20px; }
  .aligncenter { margin-left:auto; margin-right:auto; }
  .screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }
  .pagination, .nav-links { display:flex; gap:10px; flex-wrap:wrap; font-weight:600; }
  .pagination .page-numbers, .nav-links .page-numbers { padding:10px 16px; border-radius:999px; border:1.5px solid #EFEFEF; color:#000000; }
  .pagination .page-numbers.current, .nav-links .page-numbers.current { background:#EE5B0C; color:#FFFFFF; border-color:#EE5B0C; }

  /* ---- RTL (Arabe) ---- */
  html[dir="rtl"] body { font-family:'Cairo','Poppins',sans-serif; }
  html[dir="rtl"] .itc-dropdown-panel { left:auto; right:-20px; }
  html[dir="rtl"] .itc-panel-grid { left:auto; right:-40px; }
  html[dir="rtl"] .itc-dropdown-panel.itc-panel-flip { right:auto; left:-20px; }
  html[dir="rtl"] .itc-lang-panel { right:auto; left:-10px; }
  html[dir="rtl"] .itc-post-content ul, html[dir="rtl"] .itc-post-content ol { padding-left:0; padding-right:22px; }
  html[dir="rtl"] .alignleft { float:right; margin:0 0 20px 20px; }
  html[dir="rtl"] .alignright { float:left; margin:0 20px 20px 0; }

